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