{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Polly.Types.SpeechMarkType
( SpeechMarkType
( ..,
SpeechMarkType_Sentence,
SpeechMarkType_Ssml,
SpeechMarkType_Viseme,
SpeechMarkType_Word
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype SpeechMarkType = SpeechMarkType'
{ SpeechMarkType -> Text
fromSpeechMarkType ::
Core.Text
}
deriving stock
( Int -> SpeechMarkType -> ShowS
[SpeechMarkType] -> ShowS
SpeechMarkType -> String
(Int -> SpeechMarkType -> ShowS)
-> (SpeechMarkType -> String)
-> ([SpeechMarkType] -> ShowS)
-> Show SpeechMarkType
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]
(Int -> ReadS SpeechMarkType)
-> ReadS [SpeechMarkType]
-> ReadPrec SpeechMarkType
-> ReadPrec [SpeechMarkType]
-> Read 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
(SpeechMarkType -> SpeechMarkType -> Bool)
-> (SpeechMarkType -> SpeechMarkType -> Bool) -> Eq SpeechMarkType
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
Eq SpeechMarkType
-> (SpeechMarkType -> SpeechMarkType -> Ordering)
-> (SpeechMarkType -> SpeechMarkType -> Bool)
-> (SpeechMarkType -> SpeechMarkType -> Bool)
-> (SpeechMarkType -> SpeechMarkType -> Bool)
-> (SpeechMarkType -> SpeechMarkType -> Bool)
-> (SpeechMarkType -> SpeechMarkType -> SpeechMarkType)
-> (SpeechMarkType -> SpeechMarkType -> SpeechMarkType)
-> Ord 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
$cp1Ord :: Eq SpeechMarkType
Prelude.Ord,
(forall x. SpeechMarkType -> Rep SpeechMarkType x)
-> (forall x. Rep SpeechMarkType x -> SpeechMarkType)
-> Generic SpeechMarkType
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
( Int -> SpeechMarkType -> Int
SpeechMarkType -> Int
(Int -> SpeechMarkType -> Int)
-> (SpeechMarkType -> Int) -> Hashable SpeechMarkType
forall 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 -> ()
(SpeechMarkType -> ()) -> NFData SpeechMarkType
forall a. (a -> ()) -> NFData a
rnf :: SpeechMarkType -> ()
$crnf :: SpeechMarkType -> ()
Prelude.NFData,
Text -> Either String SpeechMarkType
(Text -> Either String SpeechMarkType) -> FromText SpeechMarkType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SpeechMarkType
$cfromText :: Text -> Either String SpeechMarkType
Core.FromText,
SpeechMarkType -> Text
(SpeechMarkType -> Text) -> ToText SpeechMarkType
forall a. (a -> Text) -> ToText a
toText :: SpeechMarkType -> Text
$ctoText :: SpeechMarkType -> Text
Core.ToText,
SpeechMarkType -> ByteString
(SpeechMarkType -> ByteString) -> ToByteString SpeechMarkType
forall a. (a -> ByteString) -> ToByteString a
toBS :: SpeechMarkType -> ByteString
$ctoBS :: SpeechMarkType -> ByteString
Core.ToByteString,
SpeechMarkType -> ByteStringBuilder
(SpeechMarkType -> ByteStringBuilder) -> ToLog SpeechMarkType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SpeechMarkType -> ByteStringBuilder
$cbuild :: SpeechMarkType -> ByteStringBuilder
Core.ToLog,
HeaderName -> SpeechMarkType -> [Header]
(HeaderName -> SpeechMarkType -> [Header])
-> ToHeader SpeechMarkType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SpeechMarkType -> [Header]
$ctoHeader :: HeaderName -> SpeechMarkType -> [Header]
Core.ToHeader,
SpeechMarkType -> QueryString
(SpeechMarkType -> QueryString) -> ToQuery SpeechMarkType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SpeechMarkType -> QueryString
$ctoQuery :: SpeechMarkType -> QueryString
Core.ToQuery,
Value -> Parser [SpeechMarkType]
Value -> Parser SpeechMarkType
(Value -> Parser SpeechMarkType)
-> (Value -> Parser [SpeechMarkType]) -> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [SpeechMarkType]
FromJSONKeyFunction SpeechMarkType
FromJSONKeyFunction SpeechMarkType
-> FromJSONKeyFunction [SpeechMarkType]
-> FromJSONKey SpeechMarkType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SpeechMarkType]
$cfromJSONKeyList :: FromJSONKeyFunction [SpeechMarkType]
fromJSONKey :: FromJSONKeyFunction SpeechMarkType
$cfromJSONKey :: FromJSONKeyFunction SpeechMarkType
Core.FromJSONKey,
[SpeechMarkType] -> Encoding
[SpeechMarkType] -> Value
SpeechMarkType -> Encoding
SpeechMarkType -> Value
(SpeechMarkType -> Value)
-> (SpeechMarkType -> Encoding)
-> ([SpeechMarkType] -> Value)
-> ([SpeechMarkType] -> Encoding)
-> ToJSON SpeechMarkType
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
Core.ToJSON,
ToJSONKeyFunction [SpeechMarkType]
ToJSONKeyFunction SpeechMarkType
ToJSONKeyFunction SpeechMarkType
-> ToJSONKeyFunction [SpeechMarkType] -> ToJSONKey SpeechMarkType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SpeechMarkType]
$ctoJSONKeyList :: ToJSONKeyFunction [SpeechMarkType]
toJSONKey :: ToJSONKeyFunction SpeechMarkType
$ctoJSONKey :: ToJSONKeyFunction SpeechMarkType
Core.ToJSONKey,
[Node] -> Either String SpeechMarkType
([Node] -> Either String SpeechMarkType) -> FromXML SpeechMarkType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SpeechMarkType
$cparseXML :: [Node] -> Either String SpeechMarkType
Core.FromXML,
SpeechMarkType -> XML
(SpeechMarkType -> XML) -> ToXML SpeechMarkType
forall a. (a -> XML) -> ToXML a
toXML :: SpeechMarkType -> XML
$ctoXML :: SpeechMarkType -> XML
Core.ToXML
)
pattern SpeechMarkType_Sentence :: SpeechMarkType
pattern $bSpeechMarkType_Sentence :: SpeechMarkType
$mSpeechMarkType_Sentence :: forall r. SpeechMarkType -> (Void# -> r) -> (Void# -> r) -> r
SpeechMarkType_Sentence = SpeechMarkType' "sentence"
pattern SpeechMarkType_Ssml :: SpeechMarkType
pattern $bSpeechMarkType_Ssml :: SpeechMarkType
$mSpeechMarkType_Ssml :: forall r. SpeechMarkType -> (Void# -> r) -> (Void# -> r) -> r
SpeechMarkType_Ssml = SpeechMarkType' "ssml"
pattern SpeechMarkType_Viseme :: SpeechMarkType
pattern $bSpeechMarkType_Viseme :: SpeechMarkType
$mSpeechMarkType_Viseme :: forall r. SpeechMarkType -> (Void# -> r) -> (Void# -> r) -> r
SpeechMarkType_Viseme = SpeechMarkType' "viseme"
pattern SpeechMarkType_Word :: SpeechMarkType
pattern $bSpeechMarkType_Word :: SpeechMarkType
$mSpeechMarkType_Word :: forall r. SpeechMarkType -> (Void# -> r) -> (Void# -> r) -> r
SpeechMarkType_Word = SpeechMarkType' "word"
{-# COMPLETE
SpeechMarkType_Sentence,
SpeechMarkType_Ssml,
SpeechMarkType_Viseme,
SpeechMarkType_Word,
SpeechMarkType'
#-}