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