{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.FraudDetector.Types.AsyncJobStatus
( AsyncJobStatus
( ..,
AsyncJobStatus_CANCELED,
AsyncJobStatus_CANCEL_IN_PROGRESS,
AsyncJobStatus_COMPLETE,
AsyncJobStatus_FAILED,
AsyncJobStatus_IN_PROGRESS,
AsyncJobStatus_IN_PROGRESS_INITIALIZING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype AsyncJobStatus = AsyncJobStatus'
{ AsyncJobStatus -> Text
fromAsyncJobStatus ::
Data.Text
}
deriving stock
( Int -> AsyncJobStatus -> ShowS
[AsyncJobStatus] -> ShowS
AsyncJobStatus -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AsyncJobStatus] -> ShowS
$cshowList :: [AsyncJobStatus] -> ShowS
show :: AsyncJobStatus -> String
$cshow :: AsyncJobStatus -> String
showsPrec :: Int -> AsyncJobStatus -> ShowS
$cshowsPrec :: Int -> AsyncJobStatus -> ShowS
Prelude.Show,
ReadPrec [AsyncJobStatus]
ReadPrec AsyncJobStatus
Int -> ReadS AsyncJobStatus
ReadS [AsyncJobStatus]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AsyncJobStatus]
$creadListPrec :: ReadPrec [AsyncJobStatus]
readPrec :: ReadPrec AsyncJobStatus
$creadPrec :: ReadPrec AsyncJobStatus
readList :: ReadS [AsyncJobStatus]
$creadList :: ReadS [AsyncJobStatus]
readsPrec :: Int -> ReadS AsyncJobStatus
$creadsPrec :: Int -> ReadS AsyncJobStatus
Prelude.Read,
AsyncJobStatus -> AsyncJobStatus -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AsyncJobStatus -> AsyncJobStatus -> Bool
$c/= :: AsyncJobStatus -> AsyncJobStatus -> Bool
== :: AsyncJobStatus -> AsyncJobStatus -> Bool
$c== :: AsyncJobStatus -> AsyncJobStatus -> Bool
Prelude.Eq,
Eq AsyncJobStatus
AsyncJobStatus -> AsyncJobStatus -> Bool
AsyncJobStatus -> AsyncJobStatus -> Ordering
AsyncJobStatus -> AsyncJobStatus -> AsyncJobStatus
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 :: AsyncJobStatus -> AsyncJobStatus -> AsyncJobStatus
$cmin :: AsyncJobStatus -> AsyncJobStatus -> AsyncJobStatus
max :: AsyncJobStatus -> AsyncJobStatus -> AsyncJobStatus
$cmax :: AsyncJobStatus -> AsyncJobStatus -> AsyncJobStatus
>= :: AsyncJobStatus -> AsyncJobStatus -> Bool
$c>= :: AsyncJobStatus -> AsyncJobStatus -> Bool
> :: AsyncJobStatus -> AsyncJobStatus -> Bool
$c> :: AsyncJobStatus -> AsyncJobStatus -> Bool
<= :: AsyncJobStatus -> AsyncJobStatus -> Bool
$c<= :: AsyncJobStatus -> AsyncJobStatus -> Bool
< :: AsyncJobStatus -> AsyncJobStatus -> Bool
$c< :: AsyncJobStatus -> AsyncJobStatus -> Bool
compare :: AsyncJobStatus -> AsyncJobStatus -> Ordering
$ccompare :: AsyncJobStatus -> AsyncJobStatus -> Ordering
Prelude.Ord,
forall x. Rep AsyncJobStatus x -> AsyncJobStatus
forall x. AsyncJobStatus -> Rep AsyncJobStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AsyncJobStatus x -> AsyncJobStatus
$cfrom :: forall x. AsyncJobStatus -> Rep AsyncJobStatus x
Prelude.Generic
)
deriving newtype
( Eq AsyncJobStatus
Int -> AsyncJobStatus -> Int
AsyncJobStatus -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AsyncJobStatus -> Int
$chash :: AsyncJobStatus -> Int
hashWithSalt :: Int -> AsyncJobStatus -> Int
$chashWithSalt :: Int -> AsyncJobStatus -> Int
Prelude.Hashable,
AsyncJobStatus -> ()
forall a. (a -> ()) -> NFData a
rnf :: AsyncJobStatus -> ()
$crnf :: AsyncJobStatus -> ()
Prelude.NFData,
Text -> Either String AsyncJobStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AsyncJobStatus
$cfromText :: Text -> Either String AsyncJobStatus
Data.FromText,
AsyncJobStatus -> Text
forall a. (a -> Text) -> ToText a
toText :: AsyncJobStatus -> Text
$ctoText :: AsyncJobStatus -> Text
Data.ToText,
AsyncJobStatus -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: AsyncJobStatus -> ByteString
$ctoBS :: AsyncJobStatus -> ByteString
Data.ToByteString,
AsyncJobStatus -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AsyncJobStatus -> ByteStringBuilder
$cbuild :: AsyncJobStatus -> ByteStringBuilder
Data.ToLog,
HeaderName -> AsyncJobStatus -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AsyncJobStatus -> [Header]
$ctoHeader :: HeaderName -> AsyncJobStatus -> [Header]
Data.ToHeader,
AsyncJobStatus -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AsyncJobStatus -> QueryString
$ctoQuery :: AsyncJobStatus -> QueryString
Data.ToQuery,
Value -> Parser [AsyncJobStatus]
Value -> Parser AsyncJobStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AsyncJobStatus]
$cparseJSONList :: Value -> Parser [AsyncJobStatus]
parseJSON :: Value -> Parser AsyncJobStatus
$cparseJSON :: Value -> Parser AsyncJobStatus
Data.FromJSON,
FromJSONKeyFunction [AsyncJobStatus]
FromJSONKeyFunction AsyncJobStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AsyncJobStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [AsyncJobStatus]
fromJSONKey :: FromJSONKeyFunction AsyncJobStatus
$cfromJSONKey :: FromJSONKeyFunction AsyncJobStatus
Data.FromJSONKey,
[AsyncJobStatus] -> Encoding
[AsyncJobStatus] -> Value
AsyncJobStatus -> Encoding
AsyncJobStatus -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AsyncJobStatus] -> Encoding
$ctoEncodingList :: [AsyncJobStatus] -> Encoding
toJSONList :: [AsyncJobStatus] -> Value
$ctoJSONList :: [AsyncJobStatus] -> Value
toEncoding :: AsyncJobStatus -> Encoding
$ctoEncoding :: AsyncJobStatus -> Encoding
toJSON :: AsyncJobStatus -> Value
$ctoJSON :: AsyncJobStatus -> Value
Data.ToJSON,
ToJSONKeyFunction [AsyncJobStatus]
ToJSONKeyFunction AsyncJobStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AsyncJobStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [AsyncJobStatus]
toJSONKey :: ToJSONKeyFunction AsyncJobStatus
$ctoJSONKey :: ToJSONKeyFunction AsyncJobStatus
Data.ToJSONKey,
[Node] -> Either String AsyncJobStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AsyncJobStatus
$cparseXML :: [Node] -> Either String AsyncJobStatus
Data.FromXML,
AsyncJobStatus -> XML
forall a. (a -> XML) -> ToXML a
toXML :: AsyncJobStatus -> XML
$ctoXML :: AsyncJobStatus -> XML
Data.ToXML
)
pattern AsyncJobStatus_CANCELED :: AsyncJobStatus
pattern $bAsyncJobStatus_CANCELED :: AsyncJobStatus
$mAsyncJobStatus_CANCELED :: forall {r}. AsyncJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AsyncJobStatus_CANCELED = AsyncJobStatus' "CANCELED"
pattern AsyncJobStatus_CANCEL_IN_PROGRESS :: AsyncJobStatus
pattern $bAsyncJobStatus_CANCEL_IN_PROGRESS :: AsyncJobStatus
$mAsyncJobStatus_CANCEL_IN_PROGRESS :: forall {r}. AsyncJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AsyncJobStatus_CANCEL_IN_PROGRESS = AsyncJobStatus' "CANCEL_IN_PROGRESS"
pattern AsyncJobStatus_COMPLETE :: AsyncJobStatus
pattern $bAsyncJobStatus_COMPLETE :: AsyncJobStatus
$mAsyncJobStatus_COMPLETE :: forall {r}. AsyncJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AsyncJobStatus_COMPLETE = AsyncJobStatus' "COMPLETE"
pattern AsyncJobStatus_FAILED :: AsyncJobStatus
pattern $bAsyncJobStatus_FAILED :: AsyncJobStatus
$mAsyncJobStatus_FAILED :: forall {r}. AsyncJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AsyncJobStatus_FAILED = AsyncJobStatus' "FAILED"
pattern AsyncJobStatus_IN_PROGRESS :: AsyncJobStatus
pattern $bAsyncJobStatus_IN_PROGRESS :: AsyncJobStatus
$mAsyncJobStatus_IN_PROGRESS :: forall {r}. AsyncJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AsyncJobStatus_IN_PROGRESS = AsyncJobStatus' "IN_PROGRESS"
pattern AsyncJobStatus_IN_PROGRESS_INITIALIZING :: AsyncJobStatus
pattern $bAsyncJobStatus_IN_PROGRESS_INITIALIZING :: AsyncJobStatus
$mAsyncJobStatus_IN_PROGRESS_INITIALIZING :: forall {r}. AsyncJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AsyncJobStatus_IN_PROGRESS_INITIALIZING = AsyncJobStatus' "IN_PROGRESS_INITIALIZING"
{-# COMPLETE
AsyncJobStatus_CANCELED,
AsyncJobStatus_CANCEL_IN_PROGRESS,
AsyncJobStatus_COMPLETE,
AsyncJobStatus_FAILED,
AsyncJobStatus_IN_PROGRESS,
AsyncJobStatus_IN_PROGRESS_INITIALIZING,
AsyncJobStatus'
#-}