{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Polly.Types.SpeechMarkType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Polly.Types.SpeechMarkType
  ( SpeechMarkType
      ( ..,
        SpeechMarkType_Sentence,
        SpeechMarkType_Ssml,
        SpeechMarkType_Viseme,
        SpeechMarkType_Word
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype SpeechMarkType = SpeechMarkType'
  { SpeechMarkType -> Text
fromSpeechMarkType ::
      Data.Text
  }
  deriving stock
    ( Int -> SpeechMarkType -> ShowS
[SpeechMarkType] -> ShowS
SpeechMarkType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SpeechMarkType] -> ShowS
$cshowList :: [SpeechMarkType] -> ShowS
show :: SpeechMarkType -> String
$cshow :: SpeechMarkType -> String
showsPrec :: Int -> SpeechMarkType -> ShowS
$cshowsPrec :: Int -> SpeechMarkType -> ShowS
Prelude.Show,
      ReadPrec [SpeechMarkType]
ReadPrec SpeechMarkType
Int -> ReadS SpeechMarkType
ReadS [SpeechMarkType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SpeechMarkType]
$creadListPrec :: ReadPrec [SpeechMarkType]
readPrec :: ReadPrec SpeechMarkType
$creadPrec :: ReadPrec SpeechMarkType
readList :: ReadS [SpeechMarkType]
$creadList :: ReadS [SpeechMarkType]
readsPrec :: Int -> ReadS SpeechMarkType
$creadsPrec :: Int -> ReadS SpeechMarkType
Prelude.Read,
      SpeechMarkType -> SpeechMarkType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SpeechMarkType -> SpeechMarkType -> Bool
$c/= :: SpeechMarkType -> SpeechMarkType -> Bool
== :: SpeechMarkType -> SpeechMarkType -> Bool
$c== :: SpeechMarkType -> SpeechMarkType -> Bool
Prelude.Eq,
      Eq SpeechMarkType
SpeechMarkType -> SpeechMarkType -> Bool
SpeechMarkType -> SpeechMarkType -> Ordering
SpeechMarkType -> SpeechMarkType -> SpeechMarkType
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: SpeechMarkType -> SpeechMarkType -> SpeechMarkType
$cmin :: SpeechMarkType -> SpeechMarkType -> SpeechMarkType
max :: SpeechMarkType -> SpeechMarkType -> SpeechMarkType
$cmax :: SpeechMarkType -> SpeechMarkType -> SpeechMarkType
>= :: SpeechMarkType -> SpeechMarkType -> Bool
$c>= :: SpeechMarkType -> SpeechMarkType -> Bool
> :: SpeechMarkType -> SpeechMarkType -> Bool
$c> :: SpeechMarkType -> SpeechMarkType -> Bool
<= :: SpeechMarkType -> SpeechMarkType -> Bool
$c<= :: SpeechMarkType -> SpeechMarkType -> Bool
< :: SpeechMarkType -> SpeechMarkType -> Bool
$c< :: SpeechMarkType -> SpeechMarkType -> Bool
compare :: SpeechMarkType -> SpeechMarkType -> Ordering
$ccompare :: SpeechMarkType -> SpeechMarkType -> Ordering
Prelude.Ord,
      forall x. Rep SpeechMarkType x -> SpeechMarkType
forall x. SpeechMarkType -> Rep SpeechMarkType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SpeechMarkType x -> SpeechMarkType
$cfrom :: forall x. SpeechMarkType -> Rep SpeechMarkType x
Prelude.Generic
    )
  deriving newtype
    ( Eq SpeechMarkType
Int -> SpeechMarkType -> Int
SpeechMarkType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: SpeechMarkType -> Int
$chash :: SpeechMarkType -> Int
hashWithSalt :: Int -> SpeechMarkType -> Int
$chashWithSalt :: Int -> SpeechMarkType -> Int
Prelude.Hashable,
      SpeechMarkType -> ()
forall a. (a -> ()) -> NFData a
rnf :: SpeechMarkType -> ()
$crnf :: SpeechMarkType -> ()
Prelude.NFData,
      Text -> Either String SpeechMarkType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SpeechMarkType
$cfromText :: Text -> Either String SpeechMarkType
Data.FromText,
      SpeechMarkType -> Text
forall a. (a -> Text) -> ToText a
toText :: SpeechMarkType -> Text
$ctoText :: SpeechMarkType -> Text
Data.ToText,
      SpeechMarkType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: SpeechMarkType -> ByteString
$ctoBS :: SpeechMarkType -> ByteString
Data.ToByteString,
      SpeechMarkType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SpeechMarkType -> ByteStringBuilder
$cbuild :: SpeechMarkType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> SpeechMarkType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SpeechMarkType -> [Header]
$ctoHeader :: HeaderName -> SpeechMarkType -> [Header]
Data.ToHeader,
      SpeechMarkType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SpeechMarkType -> QueryString
$ctoQuery :: SpeechMarkType -> QueryString
Data.ToQuery,
      Value -> Parser [SpeechMarkType]
Value -> Parser SpeechMarkType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [SpeechMarkType]
$cparseJSONList :: Value -> Parser [SpeechMarkType]
parseJSON :: Value -> Parser SpeechMarkType
$cparseJSON :: Value -> Parser SpeechMarkType
Data.FromJSON,
      FromJSONKeyFunction [SpeechMarkType]
FromJSONKeyFunction SpeechMarkType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SpeechMarkType]
$cfromJSONKeyList :: FromJSONKeyFunction [SpeechMarkType]
fromJSONKey :: FromJSONKeyFunction SpeechMarkType
$cfromJSONKey :: FromJSONKeyFunction SpeechMarkType
Data.FromJSONKey,
      [SpeechMarkType] -> Encoding
[SpeechMarkType] -> Value
SpeechMarkType -> Encoding
SpeechMarkType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [SpeechMarkType] -> Encoding
$ctoEncodingList :: [SpeechMarkType] -> Encoding
toJSONList :: [SpeechMarkType] -> Value
$ctoJSONList :: [SpeechMarkType] -> Value
toEncoding :: SpeechMarkType -> Encoding
$ctoEncoding :: SpeechMarkType -> Encoding
toJSON :: SpeechMarkType -> Value
$ctoJSON :: SpeechMarkType -> Value
Data.ToJSON,
      ToJSONKeyFunction [SpeechMarkType]
ToJSONKeyFunction SpeechMarkType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SpeechMarkType]
$ctoJSONKeyList :: ToJSONKeyFunction [SpeechMarkType]
toJSONKey :: ToJSONKeyFunction SpeechMarkType
$ctoJSONKey :: ToJSONKeyFunction SpeechMarkType
Data.ToJSONKey,
      [Node] -> Either String SpeechMarkType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SpeechMarkType
$cparseXML :: [Node] -> Either String SpeechMarkType
Data.FromXML,
      SpeechMarkType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: SpeechMarkType -> XML
$ctoXML :: SpeechMarkType -> XML
Data.ToXML
    )

pattern SpeechMarkType_Sentence :: SpeechMarkType
pattern $bSpeechMarkType_Sentence :: SpeechMarkType
$mSpeechMarkType_Sentence :: forall {r}. SpeechMarkType -> ((# #) -> r) -> ((# #) -> r) -> r
SpeechMarkType_Sentence = SpeechMarkType' "sentence"

pattern SpeechMarkType_Ssml :: SpeechMarkType
pattern $bSpeechMarkType_Ssml :: SpeechMarkType
$mSpeechMarkType_Ssml :: forall {r}. SpeechMarkType -> ((# #) -> r) -> ((# #) -> r) -> r
SpeechMarkType_Ssml = SpeechMarkType' "ssml"

pattern SpeechMarkType_Viseme :: SpeechMarkType
pattern $bSpeechMarkType_Viseme :: SpeechMarkType
$mSpeechMarkType_Viseme :: forall {r}. SpeechMarkType -> ((# #) -> r) -> ((# #) -> r) -> r
SpeechMarkType_Viseme = SpeechMarkType' "viseme"

pattern SpeechMarkType_Word :: SpeechMarkType
pattern $bSpeechMarkType_Word :: SpeechMarkType
$mSpeechMarkType_Word :: forall {r}. SpeechMarkType -> ((# #) -> r) -> ((# #) -> r) -> r
SpeechMarkType_Word = SpeechMarkType' "word"

{-# COMPLETE
  SpeechMarkType_Sentence,
  SpeechMarkType_Ssml,
  SpeechMarkType_Viseme,
  SpeechMarkType_Word,
  SpeechMarkType'
  #-}