{-# 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.SimulationJobStatus
( SimulationJobStatus
( ..,
SimulationJobStatus_Canceled,
SimulationJobStatus_Completed,
SimulationJobStatus_Failed,
SimulationJobStatus_Pending,
SimulationJobStatus_Preparing,
SimulationJobStatus_Restarting,
SimulationJobStatus_Running,
SimulationJobStatus_RunningFailed,
SimulationJobStatus_Terminated,
SimulationJobStatus_Terminating
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype SimulationJobStatus = SimulationJobStatus'
{ SimulationJobStatus -> Text
fromSimulationJobStatus ::
Core.Text
}
deriving stock
( Int -> SimulationJobStatus -> ShowS
[SimulationJobStatus] -> ShowS
SimulationJobStatus -> String
(Int -> SimulationJobStatus -> ShowS)
-> (SimulationJobStatus -> String)
-> ([SimulationJobStatus] -> ShowS)
-> Show SimulationJobStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SimulationJobStatus] -> ShowS
$cshowList :: [SimulationJobStatus] -> ShowS
show :: SimulationJobStatus -> String
$cshow :: SimulationJobStatus -> String
showsPrec :: Int -> SimulationJobStatus -> ShowS
$cshowsPrec :: Int -> SimulationJobStatus -> ShowS
Prelude.Show,
ReadPrec [SimulationJobStatus]
ReadPrec SimulationJobStatus
Int -> ReadS SimulationJobStatus
ReadS [SimulationJobStatus]
(Int -> ReadS SimulationJobStatus)
-> ReadS [SimulationJobStatus]
-> ReadPrec SimulationJobStatus
-> ReadPrec [SimulationJobStatus]
-> Read SimulationJobStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SimulationJobStatus]
$creadListPrec :: ReadPrec [SimulationJobStatus]
readPrec :: ReadPrec SimulationJobStatus
$creadPrec :: ReadPrec SimulationJobStatus
readList :: ReadS [SimulationJobStatus]
$creadList :: ReadS [SimulationJobStatus]
readsPrec :: Int -> ReadS SimulationJobStatus
$creadsPrec :: Int -> ReadS SimulationJobStatus
Prelude.Read,
SimulationJobStatus -> SimulationJobStatus -> Bool
(SimulationJobStatus -> SimulationJobStatus -> Bool)
-> (SimulationJobStatus -> SimulationJobStatus -> Bool)
-> Eq SimulationJobStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SimulationJobStatus -> SimulationJobStatus -> Bool
$c/= :: SimulationJobStatus -> SimulationJobStatus -> Bool
== :: SimulationJobStatus -> SimulationJobStatus -> Bool
$c== :: SimulationJobStatus -> SimulationJobStatus -> Bool
Prelude.Eq,
Eq SimulationJobStatus
Eq SimulationJobStatus
-> (SimulationJobStatus -> SimulationJobStatus -> Ordering)
-> (SimulationJobStatus -> SimulationJobStatus -> Bool)
-> (SimulationJobStatus -> SimulationJobStatus -> Bool)
-> (SimulationJobStatus -> SimulationJobStatus -> Bool)
-> (SimulationJobStatus -> SimulationJobStatus -> Bool)
-> (SimulationJobStatus
-> SimulationJobStatus -> SimulationJobStatus)
-> (SimulationJobStatus
-> SimulationJobStatus -> SimulationJobStatus)
-> Ord SimulationJobStatus
SimulationJobStatus -> SimulationJobStatus -> Bool
SimulationJobStatus -> SimulationJobStatus -> Ordering
SimulationJobStatus -> SimulationJobStatus -> SimulationJobStatus
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 :: SimulationJobStatus -> SimulationJobStatus -> SimulationJobStatus
$cmin :: SimulationJobStatus -> SimulationJobStatus -> SimulationJobStatus
max :: SimulationJobStatus -> SimulationJobStatus -> SimulationJobStatus
$cmax :: SimulationJobStatus -> SimulationJobStatus -> SimulationJobStatus
>= :: SimulationJobStatus -> SimulationJobStatus -> Bool
$c>= :: SimulationJobStatus -> SimulationJobStatus -> Bool
> :: SimulationJobStatus -> SimulationJobStatus -> Bool
$c> :: SimulationJobStatus -> SimulationJobStatus -> Bool
<= :: SimulationJobStatus -> SimulationJobStatus -> Bool
$c<= :: SimulationJobStatus -> SimulationJobStatus -> Bool
< :: SimulationJobStatus -> SimulationJobStatus -> Bool
$c< :: SimulationJobStatus -> SimulationJobStatus -> Bool
compare :: SimulationJobStatus -> SimulationJobStatus -> Ordering
$ccompare :: SimulationJobStatus -> SimulationJobStatus -> Ordering
$cp1Ord :: Eq SimulationJobStatus
Prelude.Ord,
(forall x. SimulationJobStatus -> Rep SimulationJobStatus x)
-> (forall x. Rep SimulationJobStatus x -> SimulationJobStatus)
-> Generic SimulationJobStatus
forall x. Rep SimulationJobStatus x -> SimulationJobStatus
forall x. SimulationJobStatus -> Rep SimulationJobStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SimulationJobStatus x -> SimulationJobStatus
$cfrom :: forall x. SimulationJobStatus -> Rep SimulationJobStatus x
Prelude.Generic
)
deriving newtype
( Int -> SimulationJobStatus -> Int
SimulationJobStatus -> Int
(Int -> SimulationJobStatus -> Int)
-> (SimulationJobStatus -> Int) -> Hashable SimulationJobStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: SimulationJobStatus -> Int
$chash :: SimulationJobStatus -> Int
hashWithSalt :: Int -> SimulationJobStatus -> Int
$chashWithSalt :: Int -> SimulationJobStatus -> Int
Prelude.Hashable,
SimulationJobStatus -> ()
(SimulationJobStatus -> ()) -> NFData SimulationJobStatus
forall a. (a -> ()) -> NFData a
rnf :: SimulationJobStatus -> ()
$crnf :: SimulationJobStatus -> ()
Prelude.NFData,
Text -> Either String SimulationJobStatus
(Text -> Either String SimulationJobStatus)
-> FromText SimulationJobStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SimulationJobStatus
$cfromText :: Text -> Either String SimulationJobStatus
Core.FromText,
SimulationJobStatus -> Text
(SimulationJobStatus -> Text) -> ToText SimulationJobStatus
forall a. (a -> Text) -> ToText a
toText :: SimulationJobStatus -> Text
$ctoText :: SimulationJobStatus -> Text
Core.ToText,
SimulationJobStatus -> ByteString
(SimulationJobStatus -> ByteString)
-> ToByteString SimulationJobStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: SimulationJobStatus -> ByteString
$ctoBS :: SimulationJobStatus -> ByteString
Core.ToByteString,
SimulationJobStatus -> ByteStringBuilder
(SimulationJobStatus -> ByteStringBuilder)
-> ToLog SimulationJobStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SimulationJobStatus -> ByteStringBuilder
$cbuild :: SimulationJobStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> SimulationJobStatus -> [Header]
(HeaderName -> SimulationJobStatus -> [Header])
-> ToHeader SimulationJobStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SimulationJobStatus -> [Header]
$ctoHeader :: HeaderName -> SimulationJobStatus -> [Header]
Core.ToHeader,
SimulationJobStatus -> QueryString
(SimulationJobStatus -> QueryString) -> ToQuery SimulationJobStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SimulationJobStatus -> QueryString
$ctoQuery :: SimulationJobStatus -> QueryString
Core.ToQuery,
Value -> Parser [SimulationJobStatus]
Value -> Parser SimulationJobStatus
(Value -> Parser SimulationJobStatus)
-> (Value -> Parser [SimulationJobStatus])
-> FromJSON SimulationJobStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [SimulationJobStatus]
$cparseJSONList :: Value -> Parser [SimulationJobStatus]
parseJSON :: Value -> Parser SimulationJobStatus
$cparseJSON :: Value -> Parser SimulationJobStatus
Core.FromJSON,
FromJSONKeyFunction [SimulationJobStatus]
FromJSONKeyFunction SimulationJobStatus
FromJSONKeyFunction SimulationJobStatus
-> FromJSONKeyFunction [SimulationJobStatus]
-> FromJSONKey SimulationJobStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SimulationJobStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [SimulationJobStatus]
fromJSONKey :: FromJSONKeyFunction SimulationJobStatus
$cfromJSONKey :: FromJSONKeyFunction SimulationJobStatus
Core.FromJSONKey,
[SimulationJobStatus] -> Encoding
[SimulationJobStatus] -> Value
SimulationJobStatus -> Encoding
SimulationJobStatus -> Value
(SimulationJobStatus -> Value)
-> (SimulationJobStatus -> Encoding)
-> ([SimulationJobStatus] -> Value)
-> ([SimulationJobStatus] -> Encoding)
-> ToJSON SimulationJobStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [SimulationJobStatus] -> Encoding
$ctoEncodingList :: [SimulationJobStatus] -> Encoding
toJSONList :: [SimulationJobStatus] -> Value
$ctoJSONList :: [SimulationJobStatus] -> Value
toEncoding :: SimulationJobStatus -> Encoding
$ctoEncoding :: SimulationJobStatus -> Encoding
toJSON :: SimulationJobStatus -> Value
$ctoJSON :: SimulationJobStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [SimulationJobStatus]
ToJSONKeyFunction SimulationJobStatus
ToJSONKeyFunction SimulationJobStatus
-> ToJSONKeyFunction [SimulationJobStatus]
-> ToJSONKey SimulationJobStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SimulationJobStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [SimulationJobStatus]
toJSONKey :: ToJSONKeyFunction SimulationJobStatus
$ctoJSONKey :: ToJSONKeyFunction SimulationJobStatus
Core.ToJSONKey,
[Node] -> Either String SimulationJobStatus
([Node] -> Either String SimulationJobStatus)
-> FromXML SimulationJobStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SimulationJobStatus
$cparseXML :: [Node] -> Either String SimulationJobStatus
Core.FromXML,
SimulationJobStatus -> XML
(SimulationJobStatus -> XML) -> ToXML SimulationJobStatus
forall a. (a -> XML) -> ToXML a
toXML :: SimulationJobStatus -> XML
$ctoXML :: SimulationJobStatus -> XML
Core.ToXML
)
pattern SimulationJobStatus_Canceled :: SimulationJobStatus
pattern $bSimulationJobStatus_Canceled :: SimulationJobStatus
$mSimulationJobStatus_Canceled :: forall r. SimulationJobStatus -> (Void# -> r) -> (Void# -> r) -> r
SimulationJobStatus_Canceled = SimulationJobStatus' "Canceled"
pattern SimulationJobStatus_Completed :: SimulationJobStatus
pattern $bSimulationJobStatus_Completed :: SimulationJobStatus
$mSimulationJobStatus_Completed :: forall r. SimulationJobStatus -> (Void# -> r) -> (Void# -> r) -> r
SimulationJobStatus_Completed = SimulationJobStatus' "Completed"
pattern SimulationJobStatus_Failed :: SimulationJobStatus
pattern $bSimulationJobStatus_Failed :: SimulationJobStatus
$mSimulationJobStatus_Failed :: forall r. SimulationJobStatus -> (Void# -> r) -> (Void# -> r) -> r
SimulationJobStatus_Failed = SimulationJobStatus' "Failed"
pattern SimulationJobStatus_Pending :: SimulationJobStatus
pattern $bSimulationJobStatus_Pending :: SimulationJobStatus
$mSimulationJobStatus_Pending :: forall r. SimulationJobStatus -> (Void# -> r) -> (Void# -> r) -> r
SimulationJobStatus_Pending = SimulationJobStatus' "Pending"
pattern SimulationJobStatus_Preparing :: SimulationJobStatus
pattern $bSimulationJobStatus_Preparing :: SimulationJobStatus
$mSimulationJobStatus_Preparing :: forall r. SimulationJobStatus -> (Void# -> r) -> (Void# -> r) -> r
SimulationJobStatus_Preparing = SimulationJobStatus' "Preparing"
pattern SimulationJobStatus_Restarting :: SimulationJobStatus
pattern $bSimulationJobStatus_Restarting :: SimulationJobStatus
$mSimulationJobStatus_Restarting :: forall r. SimulationJobStatus -> (Void# -> r) -> (Void# -> r) -> r
SimulationJobStatus_Restarting = SimulationJobStatus' "Restarting"
pattern SimulationJobStatus_Running :: SimulationJobStatus
pattern $bSimulationJobStatus_Running :: SimulationJobStatus
$mSimulationJobStatus_Running :: forall r. SimulationJobStatus -> (Void# -> r) -> (Void# -> r) -> r
SimulationJobStatus_Running = SimulationJobStatus' "Running"
pattern SimulationJobStatus_RunningFailed :: SimulationJobStatus
pattern $bSimulationJobStatus_RunningFailed :: SimulationJobStatus
$mSimulationJobStatus_RunningFailed :: forall r. SimulationJobStatus -> (Void# -> r) -> (Void# -> r) -> r
SimulationJobStatus_RunningFailed = SimulationJobStatus' "RunningFailed"
pattern SimulationJobStatus_Terminated :: SimulationJobStatus
pattern $bSimulationJobStatus_Terminated :: SimulationJobStatus
$mSimulationJobStatus_Terminated :: forall r. SimulationJobStatus -> (Void# -> r) -> (Void# -> r) -> r
SimulationJobStatus_Terminated = SimulationJobStatus' "Terminated"
pattern SimulationJobStatus_Terminating :: SimulationJobStatus
pattern $bSimulationJobStatus_Terminating :: SimulationJobStatus
$mSimulationJobStatus_Terminating :: forall r. SimulationJobStatus -> (Void# -> r) -> (Void# -> r) -> r
SimulationJobStatus_Terminating = SimulationJobStatus' "Terminating"
{-# COMPLETE
SimulationJobStatus_Canceled,
SimulationJobStatus_Completed,
SimulationJobStatus_Failed,
SimulationJobStatus_Pending,
SimulationJobStatus_Preparing,
SimulationJobStatus_Restarting,
SimulationJobStatus_Running,
SimulationJobStatus_RunningFailed,
SimulationJobStatus_Terminated,
SimulationJobStatus_Terminating,
SimulationJobStatus'
#-}