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