{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.RobOMaker.Types.WorldGenerationJobStatus
( WorldGenerationJobStatus
( ..,
WorldGenerationJobStatus_Canceled,
WorldGenerationJobStatus_Canceling,
WorldGenerationJobStatus_Completed,
WorldGenerationJobStatus_Failed,
WorldGenerationJobStatus_PartialFailed,
WorldGenerationJobStatus_Pending,
WorldGenerationJobStatus_Running
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype WorldGenerationJobStatus = WorldGenerationJobStatus'
{ WorldGenerationJobStatus -> Text
fromWorldGenerationJobStatus ::
Core.Text
}
deriving stock
( Int -> WorldGenerationJobStatus -> ShowS
[WorldGenerationJobStatus] -> ShowS
WorldGenerationJobStatus -> String
(Int -> WorldGenerationJobStatus -> ShowS)
-> (WorldGenerationJobStatus -> String)
-> ([WorldGenerationJobStatus] -> ShowS)
-> Show WorldGenerationJobStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [WorldGenerationJobStatus] -> ShowS
$cshowList :: [WorldGenerationJobStatus] -> ShowS
show :: WorldGenerationJobStatus -> String
$cshow :: WorldGenerationJobStatus -> String
showsPrec :: Int -> WorldGenerationJobStatus -> ShowS
$cshowsPrec :: Int -> WorldGenerationJobStatus -> ShowS
Prelude.Show,
ReadPrec [WorldGenerationJobStatus]
ReadPrec WorldGenerationJobStatus
Int -> ReadS WorldGenerationJobStatus
ReadS [WorldGenerationJobStatus]
(Int -> ReadS WorldGenerationJobStatus)
-> ReadS [WorldGenerationJobStatus]
-> ReadPrec WorldGenerationJobStatus
-> ReadPrec [WorldGenerationJobStatus]
-> Read WorldGenerationJobStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [WorldGenerationJobStatus]
$creadListPrec :: ReadPrec [WorldGenerationJobStatus]
readPrec :: ReadPrec WorldGenerationJobStatus
$creadPrec :: ReadPrec WorldGenerationJobStatus
readList :: ReadS [WorldGenerationJobStatus]
$creadList :: ReadS [WorldGenerationJobStatus]
readsPrec :: Int -> ReadS WorldGenerationJobStatus
$creadsPrec :: Int -> ReadS WorldGenerationJobStatus
Prelude.Read,
WorldGenerationJobStatus -> WorldGenerationJobStatus -> Bool
(WorldGenerationJobStatus -> WorldGenerationJobStatus -> Bool)
-> (WorldGenerationJobStatus -> WorldGenerationJobStatus -> Bool)
-> Eq WorldGenerationJobStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: WorldGenerationJobStatus -> WorldGenerationJobStatus -> Bool
$c/= :: WorldGenerationJobStatus -> WorldGenerationJobStatus -> Bool
== :: WorldGenerationJobStatus -> WorldGenerationJobStatus -> Bool
$c== :: WorldGenerationJobStatus -> WorldGenerationJobStatus -> Bool
Prelude.Eq,
Eq WorldGenerationJobStatus
Eq WorldGenerationJobStatus
-> (WorldGenerationJobStatus
-> WorldGenerationJobStatus -> Ordering)
-> (WorldGenerationJobStatus -> WorldGenerationJobStatus -> Bool)
-> (WorldGenerationJobStatus -> WorldGenerationJobStatus -> Bool)
-> (WorldGenerationJobStatus -> WorldGenerationJobStatus -> Bool)
-> (WorldGenerationJobStatus -> WorldGenerationJobStatus -> Bool)
-> (WorldGenerationJobStatus
-> WorldGenerationJobStatus -> WorldGenerationJobStatus)
-> (WorldGenerationJobStatus
-> WorldGenerationJobStatus -> WorldGenerationJobStatus)
-> Ord WorldGenerationJobStatus
WorldGenerationJobStatus -> WorldGenerationJobStatus -> Bool
WorldGenerationJobStatus -> WorldGenerationJobStatus -> Ordering
WorldGenerationJobStatus
-> WorldGenerationJobStatus -> WorldGenerationJobStatus
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 :: WorldGenerationJobStatus
-> WorldGenerationJobStatus -> WorldGenerationJobStatus
$cmin :: WorldGenerationJobStatus
-> WorldGenerationJobStatus -> WorldGenerationJobStatus
max :: WorldGenerationJobStatus
-> WorldGenerationJobStatus -> WorldGenerationJobStatus
$cmax :: WorldGenerationJobStatus
-> WorldGenerationJobStatus -> WorldGenerationJobStatus
>= :: WorldGenerationJobStatus -> WorldGenerationJobStatus -> Bool
$c>= :: WorldGenerationJobStatus -> WorldGenerationJobStatus -> Bool
> :: WorldGenerationJobStatus -> WorldGenerationJobStatus -> Bool
$c> :: WorldGenerationJobStatus -> WorldGenerationJobStatus -> Bool
<= :: WorldGenerationJobStatus -> WorldGenerationJobStatus -> Bool
$c<= :: WorldGenerationJobStatus -> WorldGenerationJobStatus -> Bool
< :: WorldGenerationJobStatus -> WorldGenerationJobStatus -> Bool
$c< :: WorldGenerationJobStatus -> WorldGenerationJobStatus -> Bool
compare :: WorldGenerationJobStatus -> WorldGenerationJobStatus -> Ordering
$ccompare :: WorldGenerationJobStatus -> WorldGenerationJobStatus -> Ordering
$cp1Ord :: Eq WorldGenerationJobStatus
Prelude.Ord,
(forall x.
WorldGenerationJobStatus -> Rep WorldGenerationJobStatus x)
-> (forall x.
Rep WorldGenerationJobStatus x -> WorldGenerationJobStatus)
-> Generic WorldGenerationJobStatus
forall x.
Rep WorldGenerationJobStatus x -> WorldGenerationJobStatus
forall x.
WorldGenerationJobStatus -> Rep WorldGenerationJobStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep WorldGenerationJobStatus x -> WorldGenerationJobStatus
$cfrom :: forall x.
WorldGenerationJobStatus -> Rep WorldGenerationJobStatus x
Prelude.Generic
)
deriving newtype
( Int -> WorldGenerationJobStatus -> Int
WorldGenerationJobStatus -> Int
(Int -> WorldGenerationJobStatus -> Int)
-> (WorldGenerationJobStatus -> Int)
-> Hashable WorldGenerationJobStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: WorldGenerationJobStatus -> Int
$chash :: WorldGenerationJobStatus -> Int
hashWithSalt :: Int -> WorldGenerationJobStatus -> Int
$chashWithSalt :: Int -> WorldGenerationJobStatus -> Int
Prelude.Hashable,
WorldGenerationJobStatus -> ()
(WorldGenerationJobStatus -> ()) -> NFData WorldGenerationJobStatus
forall a. (a -> ()) -> NFData a
rnf :: WorldGenerationJobStatus -> ()
$crnf :: WorldGenerationJobStatus -> ()
Prelude.NFData,
Text -> Either String WorldGenerationJobStatus
(Text -> Either String WorldGenerationJobStatus)
-> FromText WorldGenerationJobStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String WorldGenerationJobStatus
$cfromText :: Text -> Either String WorldGenerationJobStatus
Core.FromText,
WorldGenerationJobStatus -> Text
(WorldGenerationJobStatus -> Text)
-> ToText WorldGenerationJobStatus
forall a. (a -> Text) -> ToText a
toText :: WorldGenerationJobStatus -> Text
$ctoText :: WorldGenerationJobStatus -> Text
Core.ToText,
WorldGenerationJobStatus -> ByteString
(WorldGenerationJobStatus -> ByteString)
-> ToByteString WorldGenerationJobStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: WorldGenerationJobStatus -> ByteString
$ctoBS :: WorldGenerationJobStatus -> ByteString
Core.ToByteString,
WorldGenerationJobStatus -> ByteStringBuilder
(WorldGenerationJobStatus -> ByteStringBuilder)
-> ToLog WorldGenerationJobStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: WorldGenerationJobStatus -> ByteStringBuilder
$cbuild :: WorldGenerationJobStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> WorldGenerationJobStatus -> [Header]
(HeaderName -> WorldGenerationJobStatus -> [Header])
-> ToHeader WorldGenerationJobStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> WorldGenerationJobStatus -> [Header]
$ctoHeader :: HeaderName -> WorldGenerationJobStatus -> [Header]
Core.ToHeader,
WorldGenerationJobStatus -> QueryString
(WorldGenerationJobStatus -> QueryString)
-> ToQuery WorldGenerationJobStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: WorldGenerationJobStatus -> QueryString
$ctoQuery :: WorldGenerationJobStatus -> QueryString
Core.ToQuery,
Value -> Parser [WorldGenerationJobStatus]
Value -> Parser WorldGenerationJobStatus
(Value -> Parser WorldGenerationJobStatus)
-> (Value -> Parser [WorldGenerationJobStatus])
-> FromJSON WorldGenerationJobStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [WorldGenerationJobStatus]
$cparseJSONList :: Value -> Parser [WorldGenerationJobStatus]
parseJSON :: Value -> Parser WorldGenerationJobStatus
$cparseJSON :: Value -> Parser WorldGenerationJobStatus
Core.FromJSON,
FromJSONKeyFunction [WorldGenerationJobStatus]
FromJSONKeyFunction WorldGenerationJobStatus
FromJSONKeyFunction WorldGenerationJobStatus
-> FromJSONKeyFunction [WorldGenerationJobStatus]
-> FromJSONKey WorldGenerationJobStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [WorldGenerationJobStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [WorldGenerationJobStatus]
fromJSONKey :: FromJSONKeyFunction WorldGenerationJobStatus
$cfromJSONKey :: FromJSONKeyFunction WorldGenerationJobStatus
Core.FromJSONKey,
[WorldGenerationJobStatus] -> Encoding
[WorldGenerationJobStatus] -> Value
WorldGenerationJobStatus -> Encoding
WorldGenerationJobStatus -> Value
(WorldGenerationJobStatus -> Value)
-> (WorldGenerationJobStatus -> Encoding)
-> ([WorldGenerationJobStatus] -> Value)
-> ([WorldGenerationJobStatus] -> Encoding)
-> ToJSON WorldGenerationJobStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [WorldGenerationJobStatus] -> Encoding
$ctoEncodingList :: [WorldGenerationJobStatus] -> Encoding
toJSONList :: [WorldGenerationJobStatus] -> Value
$ctoJSONList :: [WorldGenerationJobStatus] -> Value
toEncoding :: WorldGenerationJobStatus -> Encoding
$ctoEncoding :: WorldGenerationJobStatus -> Encoding
toJSON :: WorldGenerationJobStatus -> Value
$ctoJSON :: WorldGenerationJobStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [WorldGenerationJobStatus]
ToJSONKeyFunction WorldGenerationJobStatus
ToJSONKeyFunction WorldGenerationJobStatus
-> ToJSONKeyFunction [WorldGenerationJobStatus]
-> ToJSONKey WorldGenerationJobStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [WorldGenerationJobStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [WorldGenerationJobStatus]
toJSONKey :: ToJSONKeyFunction WorldGenerationJobStatus
$ctoJSONKey :: ToJSONKeyFunction WorldGenerationJobStatus
Core.ToJSONKey,
[Node] -> Either String WorldGenerationJobStatus
([Node] -> Either String WorldGenerationJobStatus)
-> FromXML WorldGenerationJobStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String WorldGenerationJobStatus
$cparseXML :: [Node] -> Either String WorldGenerationJobStatus
Core.FromXML,
WorldGenerationJobStatus -> XML
(WorldGenerationJobStatus -> XML) -> ToXML WorldGenerationJobStatus
forall a. (a -> XML) -> ToXML a
toXML :: WorldGenerationJobStatus -> XML
$ctoXML :: WorldGenerationJobStatus -> XML
Core.ToXML
)
pattern WorldGenerationJobStatus_Canceled :: WorldGenerationJobStatus
pattern $bWorldGenerationJobStatus_Canceled :: WorldGenerationJobStatus
$mWorldGenerationJobStatus_Canceled :: forall r.
WorldGenerationJobStatus -> (Void# -> r) -> (Void# -> r) -> r
WorldGenerationJobStatus_Canceled = WorldGenerationJobStatus' "Canceled"
pattern WorldGenerationJobStatus_Canceling :: WorldGenerationJobStatus
pattern $bWorldGenerationJobStatus_Canceling :: WorldGenerationJobStatus
$mWorldGenerationJobStatus_Canceling :: forall r.
WorldGenerationJobStatus -> (Void# -> r) -> (Void# -> r) -> r
WorldGenerationJobStatus_Canceling = WorldGenerationJobStatus' "Canceling"
pattern WorldGenerationJobStatus_Completed :: WorldGenerationJobStatus
pattern $bWorldGenerationJobStatus_Completed :: WorldGenerationJobStatus
$mWorldGenerationJobStatus_Completed :: forall r.
WorldGenerationJobStatus -> (Void# -> r) -> (Void# -> r) -> r
WorldGenerationJobStatus_Completed = WorldGenerationJobStatus' "Completed"
pattern WorldGenerationJobStatus_Failed :: WorldGenerationJobStatus
pattern $bWorldGenerationJobStatus_Failed :: WorldGenerationJobStatus
$mWorldGenerationJobStatus_Failed :: forall r.
WorldGenerationJobStatus -> (Void# -> r) -> (Void# -> r) -> r
WorldGenerationJobStatus_Failed = WorldGenerationJobStatus' "Failed"
pattern WorldGenerationJobStatus_PartialFailed :: WorldGenerationJobStatus
pattern $bWorldGenerationJobStatus_PartialFailed :: WorldGenerationJobStatus
$mWorldGenerationJobStatus_PartialFailed :: forall r.
WorldGenerationJobStatus -> (Void# -> r) -> (Void# -> r) -> r
WorldGenerationJobStatus_PartialFailed = WorldGenerationJobStatus' "PartialFailed"
pattern WorldGenerationJobStatus_Pending :: WorldGenerationJobStatus
pattern $bWorldGenerationJobStatus_Pending :: WorldGenerationJobStatus
$mWorldGenerationJobStatus_Pending :: forall r.
WorldGenerationJobStatus -> (Void# -> r) -> (Void# -> r) -> r
WorldGenerationJobStatus_Pending = WorldGenerationJobStatus' "Pending"
pattern WorldGenerationJobStatus_Running :: WorldGenerationJobStatus
pattern $bWorldGenerationJobStatus_Running :: WorldGenerationJobStatus
$mWorldGenerationJobStatus_Running :: forall r.
WorldGenerationJobStatus -> (Void# -> r) -> (Void# -> r) -> r
WorldGenerationJobStatus_Running = WorldGenerationJobStatus' "Running"
{-# COMPLETE
WorldGenerationJobStatus_Canceled,
WorldGenerationJobStatus_Canceling,
WorldGenerationJobStatus_Completed,
WorldGenerationJobStatus_Failed,
WorldGenerationJobStatus_PartialFailed,
WorldGenerationJobStatus_Pending,
WorldGenerationJobStatus_Running,
WorldGenerationJobStatus'
#-}