{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Wisdom.Types.AssistantStatus
( AssistantStatus
( ..,
AssistantStatus_ACTIVE,
AssistantStatus_CREATE_FAILED,
AssistantStatus_CREATE_IN_PROGRESS,
AssistantStatus_DELETED,
AssistantStatus_DELETE_FAILED,
AssistantStatus_DELETE_IN_PROGRESS
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype AssistantStatus = AssistantStatus'
{ AssistantStatus -> Text
fromAssistantStatus ::
Core.Text
}
deriving stock
( Int -> AssistantStatus -> ShowS
[AssistantStatus] -> ShowS
AssistantStatus -> String
(Int -> AssistantStatus -> ShowS)
-> (AssistantStatus -> String)
-> ([AssistantStatus] -> ShowS)
-> Show AssistantStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AssistantStatus] -> ShowS
$cshowList :: [AssistantStatus] -> ShowS
show :: AssistantStatus -> String
$cshow :: AssistantStatus -> String
showsPrec :: Int -> AssistantStatus -> ShowS
$cshowsPrec :: Int -> AssistantStatus -> ShowS
Prelude.Show,
ReadPrec [AssistantStatus]
ReadPrec AssistantStatus
Int -> ReadS AssistantStatus
ReadS [AssistantStatus]
(Int -> ReadS AssistantStatus)
-> ReadS [AssistantStatus]
-> ReadPrec AssistantStatus
-> ReadPrec [AssistantStatus]
-> Read AssistantStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AssistantStatus]
$creadListPrec :: ReadPrec [AssistantStatus]
readPrec :: ReadPrec AssistantStatus
$creadPrec :: ReadPrec AssistantStatus
readList :: ReadS [AssistantStatus]
$creadList :: ReadS [AssistantStatus]
readsPrec :: Int -> ReadS AssistantStatus
$creadsPrec :: Int -> ReadS AssistantStatus
Prelude.Read,
AssistantStatus -> AssistantStatus -> Bool
(AssistantStatus -> AssistantStatus -> Bool)
-> (AssistantStatus -> AssistantStatus -> Bool)
-> Eq AssistantStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AssistantStatus -> AssistantStatus -> Bool
$c/= :: AssistantStatus -> AssistantStatus -> Bool
== :: AssistantStatus -> AssistantStatus -> Bool
$c== :: AssistantStatus -> AssistantStatus -> Bool
Prelude.Eq,
Eq AssistantStatus
Eq AssistantStatus
-> (AssistantStatus -> AssistantStatus -> Ordering)
-> (AssistantStatus -> AssistantStatus -> Bool)
-> (AssistantStatus -> AssistantStatus -> Bool)
-> (AssistantStatus -> AssistantStatus -> Bool)
-> (AssistantStatus -> AssistantStatus -> Bool)
-> (AssistantStatus -> AssistantStatus -> AssistantStatus)
-> (AssistantStatus -> AssistantStatus -> AssistantStatus)
-> Ord AssistantStatus
AssistantStatus -> AssistantStatus -> Bool
AssistantStatus -> AssistantStatus -> Ordering
AssistantStatus -> AssistantStatus -> AssistantStatus
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 :: AssistantStatus -> AssistantStatus -> AssistantStatus
$cmin :: AssistantStatus -> AssistantStatus -> AssistantStatus
max :: AssistantStatus -> AssistantStatus -> AssistantStatus
$cmax :: AssistantStatus -> AssistantStatus -> AssistantStatus
>= :: AssistantStatus -> AssistantStatus -> Bool
$c>= :: AssistantStatus -> AssistantStatus -> Bool
> :: AssistantStatus -> AssistantStatus -> Bool
$c> :: AssistantStatus -> AssistantStatus -> Bool
<= :: AssistantStatus -> AssistantStatus -> Bool
$c<= :: AssistantStatus -> AssistantStatus -> Bool
< :: AssistantStatus -> AssistantStatus -> Bool
$c< :: AssistantStatus -> AssistantStatus -> Bool
compare :: AssistantStatus -> AssistantStatus -> Ordering
$ccompare :: AssistantStatus -> AssistantStatus -> Ordering
$cp1Ord :: Eq AssistantStatus
Prelude.Ord,
(forall x. AssistantStatus -> Rep AssistantStatus x)
-> (forall x. Rep AssistantStatus x -> AssistantStatus)
-> Generic AssistantStatus
forall x. Rep AssistantStatus x -> AssistantStatus
forall x. AssistantStatus -> Rep AssistantStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AssistantStatus x -> AssistantStatus
$cfrom :: forall x. AssistantStatus -> Rep AssistantStatus x
Prelude.Generic
)
deriving newtype
( Int -> AssistantStatus -> Int
AssistantStatus -> Int
(Int -> AssistantStatus -> Int)
-> (AssistantStatus -> Int) -> Hashable AssistantStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AssistantStatus -> Int
$chash :: AssistantStatus -> Int
hashWithSalt :: Int -> AssistantStatus -> Int
$chashWithSalt :: Int -> AssistantStatus -> Int
Prelude.Hashable,
AssistantStatus -> ()
(AssistantStatus -> ()) -> NFData AssistantStatus
forall a. (a -> ()) -> NFData a
rnf :: AssistantStatus -> ()
$crnf :: AssistantStatus -> ()
Prelude.NFData,
Text -> Either String AssistantStatus
(Text -> Either String AssistantStatus) -> FromText AssistantStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AssistantStatus
$cfromText :: Text -> Either String AssistantStatus
Core.FromText,
AssistantStatus -> Text
(AssistantStatus -> Text) -> ToText AssistantStatus
forall a. (a -> Text) -> ToText a
toText :: AssistantStatus -> Text
$ctoText :: AssistantStatus -> Text
Core.ToText,
AssistantStatus -> ByteString
(AssistantStatus -> ByteString) -> ToByteString AssistantStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: AssistantStatus -> ByteString
$ctoBS :: AssistantStatus -> ByteString
Core.ToByteString,
AssistantStatus -> ByteStringBuilder
(AssistantStatus -> ByteStringBuilder) -> ToLog AssistantStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AssistantStatus -> ByteStringBuilder
$cbuild :: AssistantStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> AssistantStatus -> [Header]
(HeaderName -> AssistantStatus -> [Header])
-> ToHeader AssistantStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AssistantStatus -> [Header]
$ctoHeader :: HeaderName -> AssistantStatus -> [Header]
Core.ToHeader,
AssistantStatus -> QueryString
(AssistantStatus -> QueryString) -> ToQuery AssistantStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AssistantStatus -> QueryString
$ctoQuery :: AssistantStatus -> QueryString
Core.ToQuery,
Value -> Parser [AssistantStatus]
Value -> Parser AssistantStatus
(Value -> Parser AssistantStatus)
-> (Value -> Parser [AssistantStatus]) -> FromJSON AssistantStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AssistantStatus]
$cparseJSONList :: Value -> Parser [AssistantStatus]
parseJSON :: Value -> Parser AssistantStatus
$cparseJSON :: Value -> Parser AssistantStatus
Core.FromJSON,
FromJSONKeyFunction [AssistantStatus]
FromJSONKeyFunction AssistantStatus
FromJSONKeyFunction AssistantStatus
-> FromJSONKeyFunction [AssistantStatus]
-> FromJSONKey AssistantStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AssistantStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [AssistantStatus]
fromJSONKey :: FromJSONKeyFunction AssistantStatus
$cfromJSONKey :: FromJSONKeyFunction AssistantStatus
Core.FromJSONKey,
[AssistantStatus] -> Encoding
[AssistantStatus] -> Value
AssistantStatus -> Encoding
AssistantStatus -> Value
(AssistantStatus -> Value)
-> (AssistantStatus -> Encoding)
-> ([AssistantStatus] -> Value)
-> ([AssistantStatus] -> Encoding)
-> ToJSON AssistantStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AssistantStatus] -> Encoding
$ctoEncodingList :: [AssistantStatus] -> Encoding
toJSONList :: [AssistantStatus] -> Value
$ctoJSONList :: [AssistantStatus] -> Value
toEncoding :: AssistantStatus -> Encoding
$ctoEncoding :: AssistantStatus -> Encoding
toJSON :: AssistantStatus -> Value
$ctoJSON :: AssistantStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [AssistantStatus]
ToJSONKeyFunction AssistantStatus
ToJSONKeyFunction AssistantStatus
-> ToJSONKeyFunction [AssistantStatus] -> ToJSONKey AssistantStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AssistantStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [AssistantStatus]
toJSONKey :: ToJSONKeyFunction AssistantStatus
$ctoJSONKey :: ToJSONKeyFunction AssistantStatus
Core.ToJSONKey,
[Node] -> Either String AssistantStatus
([Node] -> Either String AssistantStatus)
-> FromXML AssistantStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AssistantStatus
$cparseXML :: [Node] -> Either String AssistantStatus
Core.FromXML,
AssistantStatus -> XML
(AssistantStatus -> XML) -> ToXML AssistantStatus
forall a. (a -> XML) -> ToXML a
toXML :: AssistantStatus -> XML
$ctoXML :: AssistantStatus -> XML
Core.ToXML
)
pattern AssistantStatus_ACTIVE :: AssistantStatus
pattern $bAssistantStatus_ACTIVE :: AssistantStatus
$mAssistantStatus_ACTIVE :: forall r. AssistantStatus -> (Void# -> r) -> (Void# -> r) -> r
AssistantStatus_ACTIVE = AssistantStatus' "ACTIVE"
pattern AssistantStatus_CREATE_FAILED :: AssistantStatus
pattern $bAssistantStatus_CREATE_FAILED :: AssistantStatus
$mAssistantStatus_CREATE_FAILED :: forall r. AssistantStatus -> (Void# -> r) -> (Void# -> r) -> r
AssistantStatus_CREATE_FAILED = AssistantStatus' "CREATE_FAILED"
pattern AssistantStatus_CREATE_IN_PROGRESS :: AssistantStatus
pattern $bAssistantStatus_CREATE_IN_PROGRESS :: AssistantStatus
$mAssistantStatus_CREATE_IN_PROGRESS :: forall r. AssistantStatus -> (Void# -> r) -> (Void# -> r) -> r
AssistantStatus_CREATE_IN_PROGRESS = AssistantStatus' "CREATE_IN_PROGRESS"
pattern AssistantStatus_DELETED :: AssistantStatus
pattern $bAssistantStatus_DELETED :: AssistantStatus
$mAssistantStatus_DELETED :: forall r. AssistantStatus -> (Void# -> r) -> (Void# -> r) -> r
AssistantStatus_DELETED = AssistantStatus' "DELETED"
pattern AssistantStatus_DELETE_FAILED :: AssistantStatus
pattern $bAssistantStatus_DELETE_FAILED :: AssistantStatus
$mAssistantStatus_DELETE_FAILED :: forall r. AssistantStatus -> (Void# -> r) -> (Void# -> r) -> r
AssistantStatus_DELETE_FAILED = AssistantStatus' "DELETE_FAILED"
pattern AssistantStatus_DELETE_IN_PROGRESS :: AssistantStatus
pattern $bAssistantStatus_DELETE_IN_PROGRESS :: AssistantStatus
$mAssistantStatus_DELETE_IN_PROGRESS :: forall r. AssistantStatus -> (Void# -> r) -> (Void# -> r) -> r
AssistantStatus_DELETE_IN_PROGRESS = AssistantStatus' "DELETE_IN_PROGRESS"
{-# COMPLETE
AssistantStatus_ACTIVE,
AssistantStatus_CREATE_FAILED,
AssistantStatus_CREATE_IN_PROGRESS,
AssistantStatus_DELETED,
AssistantStatus_DELETE_FAILED,
AssistantStatus_DELETE_IN_PROGRESS,
AssistantStatus'
#-}