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