{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.VoiceId.Types.SpeakerStatus
( SpeakerStatus
( ..,
SpeakerStatus_ENROLLED,
SpeakerStatus_EXPIRED,
SpeakerStatus_OPTED_OUT,
SpeakerStatus_PENDING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype SpeakerStatus = SpeakerStatus'
{ SpeakerStatus -> Text
fromSpeakerStatus ::
Core.Text
}
deriving stock
( Int -> SpeakerStatus -> ShowS
[SpeakerStatus] -> ShowS
SpeakerStatus -> String
(Int -> SpeakerStatus -> ShowS)
-> (SpeakerStatus -> String)
-> ([SpeakerStatus] -> ShowS)
-> Show SpeakerStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SpeakerStatus] -> ShowS
$cshowList :: [SpeakerStatus] -> ShowS
show :: SpeakerStatus -> String
$cshow :: SpeakerStatus -> String
showsPrec :: Int -> SpeakerStatus -> ShowS
$cshowsPrec :: Int -> SpeakerStatus -> ShowS
Prelude.Show,
ReadPrec [SpeakerStatus]
ReadPrec SpeakerStatus
Int -> ReadS SpeakerStatus
ReadS [SpeakerStatus]
(Int -> ReadS SpeakerStatus)
-> ReadS [SpeakerStatus]
-> ReadPrec SpeakerStatus
-> ReadPrec [SpeakerStatus]
-> Read SpeakerStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SpeakerStatus]
$creadListPrec :: ReadPrec [SpeakerStatus]
readPrec :: ReadPrec SpeakerStatus
$creadPrec :: ReadPrec SpeakerStatus
readList :: ReadS [SpeakerStatus]
$creadList :: ReadS [SpeakerStatus]
readsPrec :: Int -> ReadS SpeakerStatus
$creadsPrec :: Int -> ReadS SpeakerStatus
Prelude.Read,
SpeakerStatus -> SpeakerStatus -> Bool
(SpeakerStatus -> SpeakerStatus -> Bool)
-> (SpeakerStatus -> SpeakerStatus -> Bool) -> Eq SpeakerStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SpeakerStatus -> SpeakerStatus -> Bool
$c/= :: SpeakerStatus -> SpeakerStatus -> Bool
== :: SpeakerStatus -> SpeakerStatus -> Bool
$c== :: SpeakerStatus -> SpeakerStatus -> Bool
Prelude.Eq,
Eq SpeakerStatus
Eq SpeakerStatus
-> (SpeakerStatus -> SpeakerStatus -> Ordering)
-> (SpeakerStatus -> SpeakerStatus -> Bool)
-> (SpeakerStatus -> SpeakerStatus -> Bool)
-> (SpeakerStatus -> SpeakerStatus -> Bool)
-> (SpeakerStatus -> SpeakerStatus -> Bool)
-> (SpeakerStatus -> SpeakerStatus -> SpeakerStatus)
-> (SpeakerStatus -> SpeakerStatus -> SpeakerStatus)
-> Ord SpeakerStatus
SpeakerStatus -> SpeakerStatus -> Bool
SpeakerStatus -> SpeakerStatus -> Ordering
SpeakerStatus -> SpeakerStatus -> SpeakerStatus
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 :: SpeakerStatus -> SpeakerStatus -> SpeakerStatus
$cmin :: SpeakerStatus -> SpeakerStatus -> SpeakerStatus
max :: SpeakerStatus -> SpeakerStatus -> SpeakerStatus
$cmax :: SpeakerStatus -> SpeakerStatus -> SpeakerStatus
>= :: SpeakerStatus -> SpeakerStatus -> Bool
$c>= :: SpeakerStatus -> SpeakerStatus -> Bool
> :: SpeakerStatus -> SpeakerStatus -> Bool
$c> :: SpeakerStatus -> SpeakerStatus -> Bool
<= :: SpeakerStatus -> SpeakerStatus -> Bool
$c<= :: SpeakerStatus -> SpeakerStatus -> Bool
< :: SpeakerStatus -> SpeakerStatus -> Bool
$c< :: SpeakerStatus -> SpeakerStatus -> Bool
compare :: SpeakerStatus -> SpeakerStatus -> Ordering
$ccompare :: SpeakerStatus -> SpeakerStatus -> Ordering
$cp1Ord :: Eq SpeakerStatus
Prelude.Ord,
(forall x. SpeakerStatus -> Rep SpeakerStatus x)
-> (forall x. Rep SpeakerStatus x -> SpeakerStatus)
-> Generic SpeakerStatus
forall x. Rep SpeakerStatus x -> SpeakerStatus
forall x. SpeakerStatus -> Rep SpeakerStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SpeakerStatus x -> SpeakerStatus
$cfrom :: forall x. SpeakerStatus -> Rep SpeakerStatus x
Prelude.Generic
)
deriving newtype
( Int -> SpeakerStatus -> Int
SpeakerStatus -> Int
(Int -> SpeakerStatus -> Int)
-> (SpeakerStatus -> Int) -> Hashable SpeakerStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: SpeakerStatus -> Int
$chash :: SpeakerStatus -> Int
hashWithSalt :: Int -> SpeakerStatus -> Int
$chashWithSalt :: Int -> SpeakerStatus -> Int
Prelude.Hashable,
SpeakerStatus -> ()
(SpeakerStatus -> ()) -> NFData SpeakerStatus
forall a. (a -> ()) -> NFData a
rnf :: SpeakerStatus -> ()
$crnf :: SpeakerStatus -> ()
Prelude.NFData,
Text -> Either String SpeakerStatus
(Text -> Either String SpeakerStatus) -> FromText SpeakerStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SpeakerStatus
$cfromText :: Text -> Either String SpeakerStatus
Core.FromText,
SpeakerStatus -> Text
(SpeakerStatus -> Text) -> ToText SpeakerStatus
forall a. (a -> Text) -> ToText a
toText :: SpeakerStatus -> Text
$ctoText :: SpeakerStatus -> Text
Core.ToText,
SpeakerStatus -> ByteString
(SpeakerStatus -> ByteString) -> ToByteString SpeakerStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: SpeakerStatus -> ByteString
$ctoBS :: SpeakerStatus -> ByteString
Core.ToByteString,
SpeakerStatus -> ByteStringBuilder
(SpeakerStatus -> ByteStringBuilder) -> ToLog SpeakerStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SpeakerStatus -> ByteStringBuilder
$cbuild :: SpeakerStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> SpeakerStatus -> [Header]
(HeaderName -> SpeakerStatus -> [Header]) -> ToHeader SpeakerStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SpeakerStatus -> [Header]
$ctoHeader :: HeaderName -> SpeakerStatus -> [Header]
Core.ToHeader,
SpeakerStatus -> QueryString
(SpeakerStatus -> QueryString) -> ToQuery SpeakerStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SpeakerStatus -> QueryString
$ctoQuery :: SpeakerStatus -> QueryString
Core.ToQuery,
Value -> Parser [SpeakerStatus]
Value -> Parser SpeakerStatus
(Value -> Parser SpeakerStatus)
-> (Value -> Parser [SpeakerStatus]) -> FromJSON SpeakerStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [SpeakerStatus]
$cparseJSONList :: Value -> Parser [SpeakerStatus]
parseJSON :: Value -> Parser SpeakerStatus
$cparseJSON :: Value -> Parser SpeakerStatus
Core.FromJSON,
FromJSONKeyFunction [SpeakerStatus]
FromJSONKeyFunction SpeakerStatus
FromJSONKeyFunction SpeakerStatus
-> FromJSONKeyFunction [SpeakerStatus] -> FromJSONKey SpeakerStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SpeakerStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [SpeakerStatus]
fromJSONKey :: FromJSONKeyFunction SpeakerStatus
$cfromJSONKey :: FromJSONKeyFunction SpeakerStatus
Core.FromJSONKey,
[SpeakerStatus] -> Encoding
[SpeakerStatus] -> Value
SpeakerStatus -> Encoding
SpeakerStatus -> Value
(SpeakerStatus -> Value)
-> (SpeakerStatus -> Encoding)
-> ([SpeakerStatus] -> Value)
-> ([SpeakerStatus] -> Encoding)
-> ToJSON SpeakerStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [SpeakerStatus] -> Encoding
$ctoEncodingList :: [SpeakerStatus] -> Encoding
toJSONList :: [SpeakerStatus] -> Value
$ctoJSONList :: [SpeakerStatus] -> Value
toEncoding :: SpeakerStatus -> Encoding
$ctoEncoding :: SpeakerStatus -> Encoding
toJSON :: SpeakerStatus -> Value
$ctoJSON :: SpeakerStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [SpeakerStatus]
ToJSONKeyFunction SpeakerStatus
ToJSONKeyFunction SpeakerStatus
-> ToJSONKeyFunction [SpeakerStatus] -> ToJSONKey SpeakerStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SpeakerStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [SpeakerStatus]
toJSONKey :: ToJSONKeyFunction SpeakerStatus
$ctoJSONKey :: ToJSONKeyFunction SpeakerStatus
Core.ToJSONKey,
[Node] -> Either String SpeakerStatus
([Node] -> Either String SpeakerStatus) -> FromXML SpeakerStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SpeakerStatus
$cparseXML :: [Node] -> Either String SpeakerStatus
Core.FromXML,
SpeakerStatus -> XML
(SpeakerStatus -> XML) -> ToXML SpeakerStatus
forall a. (a -> XML) -> ToXML a
toXML :: SpeakerStatus -> XML
$ctoXML :: SpeakerStatus -> XML
Core.ToXML
)
pattern SpeakerStatus_ENROLLED :: SpeakerStatus
pattern $bSpeakerStatus_ENROLLED :: SpeakerStatus
$mSpeakerStatus_ENROLLED :: forall r. SpeakerStatus -> (Void# -> r) -> (Void# -> r) -> r
SpeakerStatus_ENROLLED = SpeakerStatus' "ENROLLED"
pattern SpeakerStatus_EXPIRED :: SpeakerStatus
pattern $bSpeakerStatus_EXPIRED :: SpeakerStatus
$mSpeakerStatus_EXPIRED :: forall r. SpeakerStatus -> (Void# -> r) -> (Void# -> r) -> r
SpeakerStatus_EXPIRED = SpeakerStatus' "EXPIRED"
pattern SpeakerStatus_OPTED_OUT :: SpeakerStatus
pattern $bSpeakerStatus_OPTED_OUT :: SpeakerStatus
$mSpeakerStatus_OPTED_OUT :: forall r. SpeakerStatus -> (Void# -> r) -> (Void# -> r) -> r
SpeakerStatus_OPTED_OUT = SpeakerStatus' "OPTED_OUT"
pattern SpeakerStatus_PENDING :: SpeakerStatus
pattern $bSpeakerStatus_PENDING :: SpeakerStatus
$mSpeakerStatus_PENDING :: forall r. SpeakerStatus -> (Void# -> r) -> (Void# -> r) -> r
SpeakerStatus_PENDING = SpeakerStatus' "PENDING"
{-# COMPLETE
SpeakerStatus_ENROLLED,
SpeakerStatus_EXPIRED,
SpeakerStatus_OPTED_OUT,
SpeakerStatus_PENDING,
SpeakerStatus'
#-}