{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.FIS.Types.ExperimentStatus
( ExperimentStatus
( ..,
ExperimentStatus_Completed,
ExperimentStatus_Failed,
ExperimentStatus_Initiating,
ExperimentStatus_Pending,
ExperimentStatus_Running,
ExperimentStatus_Stopped,
ExperimentStatus_Stopping
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype ExperimentStatus = ExperimentStatus'
{ ExperimentStatus -> Text
fromExperimentStatus ::
Data.Text
}
deriving stock
( Int -> ExperimentStatus -> ShowS
[ExperimentStatus] -> ShowS
ExperimentStatus -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ExperimentStatus] -> ShowS
$cshowList :: [ExperimentStatus] -> ShowS
show :: ExperimentStatus -> String
$cshow :: ExperimentStatus -> String
showsPrec :: Int -> ExperimentStatus -> ShowS
$cshowsPrec :: Int -> ExperimentStatus -> ShowS
Prelude.Show,
ReadPrec [ExperimentStatus]
ReadPrec ExperimentStatus
Int -> ReadS ExperimentStatus
ReadS [ExperimentStatus]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ExperimentStatus]
$creadListPrec :: ReadPrec [ExperimentStatus]
readPrec :: ReadPrec ExperimentStatus
$creadPrec :: ReadPrec ExperimentStatus
readList :: ReadS [ExperimentStatus]
$creadList :: ReadS [ExperimentStatus]
readsPrec :: Int -> ReadS ExperimentStatus
$creadsPrec :: Int -> ReadS ExperimentStatus
Prelude.Read,
ExperimentStatus -> ExperimentStatus -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ExperimentStatus -> ExperimentStatus -> Bool
$c/= :: ExperimentStatus -> ExperimentStatus -> Bool
== :: ExperimentStatus -> ExperimentStatus -> Bool
$c== :: ExperimentStatus -> ExperimentStatus -> Bool
Prelude.Eq,
Eq ExperimentStatus
ExperimentStatus -> ExperimentStatus -> Bool
ExperimentStatus -> ExperimentStatus -> Ordering
ExperimentStatus -> ExperimentStatus -> ExperimentStatus
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 :: ExperimentStatus -> ExperimentStatus -> ExperimentStatus
$cmin :: ExperimentStatus -> ExperimentStatus -> ExperimentStatus
max :: ExperimentStatus -> ExperimentStatus -> ExperimentStatus
$cmax :: ExperimentStatus -> ExperimentStatus -> ExperimentStatus
>= :: ExperimentStatus -> ExperimentStatus -> Bool
$c>= :: ExperimentStatus -> ExperimentStatus -> Bool
> :: ExperimentStatus -> ExperimentStatus -> Bool
$c> :: ExperimentStatus -> ExperimentStatus -> Bool
<= :: ExperimentStatus -> ExperimentStatus -> Bool
$c<= :: ExperimentStatus -> ExperimentStatus -> Bool
< :: ExperimentStatus -> ExperimentStatus -> Bool
$c< :: ExperimentStatus -> ExperimentStatus -> Bool
compare :: ExperimentStatus -> ExperimentStatus -> Ordering
$ccompare :: ExperimentStatus -> ExperimentStatus -> Ordering
Prelude.Ord,
forall x. Rep ExperimentStatus x -> ExperimentStatus
forall x. ExperimentStatus -> Rep ExperimentStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ExperimentStatus x -> ExperimentStatus
$cfrom :: forall x. ExperimentStatus -> Rep ExperimentStatus x
Prelude.Generic
)
deriving newtype
( Eq ExperimentStatus
Int -> ExperimentStatus -> Int
ExperimentStatus -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ExperimentStatus -> Int
$chash :: ExperimentStatus -> Int
hashWithSalt :: Int -> ExperimentStatus -> Int
$chashWithSalt :: Int -> ExperimentStatus -> Int
Prelude.Hashable,
ExperimentStatus -> ()
forall a. (a -> ()) -> NFData a
rnf :: ExperimentStatus -> ()
$crnf :: ExperimentStatus -> ()
Prelude.NFData,
Text -> Either String ExperimentStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ExperimentStatus
$cfromText :: Text -> Either String ExperimentStatus
Data.FromText,
ExperimentStatus -> Text
forall a. (a -> Text) -> ToText a
toText :: ExperimentStatus -> Text
$ctoText :: ExperimentStatus -> Text
Data.ToText,
ExperimentStatus -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ExperimentStatus -> ByteString
$ctoBS :: ExperimentStatus -> ByteString
Data.ToByteString,
ExperimentStatus -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ExperimentStatus -> ByteStringBuilder
$cbuild :: ExperimentStatus -> ByteStringBuilder
Data.ToLog,
HeaderName -> ExperimentStatus -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ExperimentStatus -> [Header]
$ctoHeader :: HeaderName -> ExperimentStatus -> [Header]
Data.ToHeader,
ExperimentStatus -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ExperimentStatus -> QueryString
$ctoQuery :: ExperimentStatus -> QueryString
Data.ToQuery,
Value -> Parser [ExperimentStatus]
Value -> Parser ExperimentStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ExperimentStatus]
$cparseJSONList :: Value -> Parser [ExperimentStatus]
parseJSON :: Value -> Parser ExperimentStatus
$cparseJSON :: Value -> Parser ExperimentStatus
Data.FromJSON,
FromJSONKeyFunction [ExperimentStatus]
FromJSONKeyFunction ExperimentStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ExperimentStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ExperimentStatus]
fromJSONKey :: FromJSONKeyFunction ExperimentStatus
$cfromJSONKey :: FromJSONKeyFunction ExperimentStatus
Data.FromJSONKey,
[ExperimentStatus] -> Encoding
[ExperimentStatus] -> Value
ExperimentStatus -> Encoding
ExperimentStatus -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ExperimentStatus] -> Encoding
$ctoEncodingList :: [ExperimentStatus] -> Encoding
toJSONList :: [ExperimentStatus] -> Value
$ctoJSONList :: [ExperimentStatus] -> Value
toEncoding :: ExperimentStatus -> Encoding
$ctoEncoding :: ExperimentStatus -> Encoding
toJSON :: ExperimentStatus -> Value
$ctoJSON :: ExperimentStatus -> Value
Data.ToJSON,
ToJSONKeyFunction [ExperimentStatus]
ToJSONKeyFunction ExperimentStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ExperimentStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ExperimentStatus]
toJSONKey :: ToJSONKeyFunction ExperimentStatus
$ctoJSONKey :: ToJSONKeyFunction ExperimentStatus
Data.ToJSONKey,
[Node] -> Either String ExperimentStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ExperimentStatus
$cparseXML :: [Node] -> Either String ExperimentStatus
Data.FromXML,
ExperimentStatus -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ExperimentStatus -> XML
$ctoXML :: ExperimentStatus -> XML
Data.ToXML
)
pattern ExperimentStatus_Completed :: ExperimentStatus
pattern $bExperimentStatus_Completed :: ExperimentStatus
$mExperimentStatus_Completed :: forall {r}. ExperimentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ExperimentStatus_Completed = ExperimentStatus' "completed"
pattern ExperimentStatus_Failed :: ExperimentStatus
pattern $bExperimentStatus_Failed :: ExperimentStatus
$mExperimentStatus_Failed :: forall {r}. ExperimentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ExperimentStatus_Failed = ExperimentStatus' "failed"
pattern ExperimentStatus_Initiating :: ExperimentStatus
pattern $bExperimentStatus_Initiating :: ExperimentStatus
$mExperimentStatus_Initiating :: forall {r}. ExperimentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ExperimentStatus_Initiating = ExperimentStatus' "initiating"
pattern ExperimentStatus_Pending :: ExperimentStatus
pattern $bExperimentStatus_Pending :: ExperimentStatus
$mExperimentStatus_Pending :: forall {r}. ExperimentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ExperimentStatus_Pending = ExperimentStatus' "pending"
pattern ExperimentStatus_Running :: ExperimentStatus
pattern $bExperimentStatus_Running :: ExperimentStatus
$mExperimentStatus_Running :: forall {r}. ExperimentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ExperimentStatus_Running = ExperimentStatus' "running"
pattern ExperimentStatus_Stopped :: ExperimentStatus
pattern $bExperimentStatus_Stopped :: ExperimentStatus
$mExperimentStatus_Stopped :: forall {r}. ExperimentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ExperimentStatus_Stopped = ExperimentStatus' "stopped"
pattern ExperimentStatus_Stopping :: ExperimentStatus
pattern $bExperimentStatus_Stopping :: ExperimentStatus
$mExperimentStatus_Stopping :: forall {r}. ExperimentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ExperimentStatus_Stopping = ExperimentStatus' "stopping"
{-# COMPLETE
ExperimentStatus_Completed,
ExperimentStatus_Failed,
ExperimentStatus_Initiating,
ExperimentStatus_Pending,
ExperimentStatus_Running,
ExperimentStatus_Stopped,
ExperimentStatus_Stopping,
ExperimentStatus'
#-}