{-# 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.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype SpeakerStatus = SpeakerStatus'
{ SpeakerStatus -> Text
fromSpeakerStatus ::
Data.Text
}
deriving stock
( Int -> SpeakerStatus -> ShowS
[SpeakerStatus] -> ShowS
SpeakerStatus -> String
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]
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
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
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
Prelude.Ord,
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
( Eq SpeakerStatus
Int -> SpeakerStatus -> Int
SpeakerStatus -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: SpeakerStatus -> ()
$crnf :: SpeakerStatus -> ()
Prelude.NFData,
Text -> Either String SpeakerStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SpeakerStatus
$cfromText :: Text -> Either String SpeakerStatus
Data.FromText,
SpeakerStatus -> Text
forall a. (a -> Text) -> ToText a
toText :: SpeakerStatus -> Text
$ctoText :: SpeakerStatus -> Text
Data.ToText,
SpeakerStatus -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: SpeakerStatus -> ByteString
$ctoBS :: SpeakerStatus -> ByteString
Data.ToByteString,
SpeakerStatus -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SpeakerStatus -> ByteStringBuilder
$cbuild :: SpeakerStatus -> ByteStringBuilder
Data.ToLog,
HeaderName -> SpeakerStatus -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SpeakerStatus -> [Header]
$ctoHeader :: HeaderName -> SpeakerStatus -> [Header]
Data.ToHeader,
SpeakerStatus -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SpeakerStatus -> QueryString
$ctoQuery :: SpeakerStatus -> QueryString
Data.ToQuery,
Value -> Parser [SpeakerStatus]
Value -> Parser 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
Data.FromJSON,
FromJSONKeyFunction [SpeakerStatus]
FromJSONKeyFunction SpeakerStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SpeakerStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [SpeakerStatus]
fromJSONKey :: FromJSONKeyFunction SpeakerStatus
$cfromJSONKey :: FromJSONKeyFunction SpeakerStatus
Data.FromJSONKey,
[SpeakerStatus] -> Encoding
[SpeakerStatus] -> Value
SpeakerStatus -> Encoding
SpeakerStatus -> Value
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
Data.ToJSON,
ToJSONKeyFunction [SpeakerStatus]
ToJSONKeyFunction SpeakerStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SpeakerStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [SpeakerStatus]
toJSONKey :: ToJSONKeyFunction SpeakerStatus
$ctoJSONKey :: ToJSONKeyFunction SpeakerStatus
Data.ToJSONKey,
[Node] -> Either String SpeakerStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SpeakerStatus
$cparseXML :: [Node] -> Either String SpeakerStatus
Data.FromXML,
SpeakerStatus -> XML
forall a. (a -> XML) -> ToXML a
toXML :: SpeakerStatus -> XML
$ctoXML :: SpeakerStatus -> XML
Data.ToXML
)
pattern SpeakerStatus_ENROLLED :: SpeakerStatus
pattern $bSpeakerStatus_ENROLLED :: SpeakerStatus
$mSpeakerStatus_ENROLLED :: forall {r}. SpeakerStatus -> ((# #) -> r) -> ((# #) -> r) -> r
SpeakerStatus_ENROLLED = SpeakerStatus' "ENROLLED"
pattern SpeakerStatus_EXPIRED :: SpeakerStatus
pattern $bSpeakerStatus_EXPIRED :: SpeakerStatus
$mSpeakerStatus_EXPIRED :: forall {r}. SpeakerStatus -> ((# #) -> r) -> ((# #) -> r) -> r
SpeakerStatus_EXPIRED = SpeakerStatus' "EXPIRED"
pattern SpeakerStatus_OPTED_OUT :: SpeakerStatus
pattern $bSpeakerStatus_OPTED_OUT :: SpeakerStatus
$mSpeakerStatus_OPTED_OUT :: forall {r}. SpeakerStatus -> ((# #) -> r) -> ((# #) -> r) -> r
SpeakerStatus_OPTED_OUT = SpeakerStatus' "OPTED_OUT"
pattern SpeakerStatus_PENDING :: SpeakerStatus
pattern $bSpeakerStatus_PENDING :: SpeakerStatus
$mSpeakerStatus_PENDING :: forall {r}. SpeakerStatus -> ((# #) -> r) -> ((# #) -> r) -> r
SpeakerStatus_PENDING = SpeakerStatus' "PENDING"
{-# COMPLETE
SpeakerStatus_ENROLLED,
SpeakerStatus_EXPIRED,
SpeakerStatus_OPTED_OUT,
SpeakerStatus_PENDING,
SpeakerStatus'
#-}