{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Batch.Types.CEState
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Batch.Types.CEState
  ( CEState
      ( ..,
        CEState_DISABLED,
        CEState_ENABLED
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype CEState = CEState' {CEState -> Text
fromCEState :: Data.Text}
  deriving stock
    ( Int -> CEState -> ShowS
[CEState] -> ShowS
CEState -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq CEState
Int -> CEState -> Int
CEState -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: CEState -> ()
$crnf :: CEState -> ()
Prelude.NFData,
      Text -> Either String CEState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CEState
$cfromText :: Text -> Either String CEState
Data.FromText,
      CEState -> Text
forall a. (a -> Text) -> ToText a
toText :: CEState -> Text
$ctoText :: CEState -> Text
Data.ToText,
      CEState -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: CEState -> ByteString
$ctoBS :: CEState -> ByteString
Data.ToByteString,
      CEState -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CEState -> ByteStringBuilder
$cbuild :: CEState -> ByteStringBuilder
Data.ToLog,
      HeaderName -> CEState -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CEState -> [Header]
$ctoHeader :: HeaderName -> CEState -> [Header]
Data.ToHeader,
      CEState -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CEState -> QueryString
$ctoQuery :: CEState -> QueryString
Data.ToQuery,
      Value -> Parser [CEState]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [CEState]
FromJSONKeyFunction CEState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CEState]
$cfromJSONKeyList :: FromJSONKeyFunction [CEState]
fromJSONKey :: FromJSONKeyFunction CEState
$cfromJSONKey :: FromJSONKeyFunction CEState
Data.FromJSONKey,
      [CEState] -> Encoding
[CEState] -> Value
CEState -> Encoding
CEState -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [CEState]
ToJSONKeyFunction CEState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CEState]
$ctoJSONKeyList :: ToJSONKeyFunction [CEState]
toJSONKey :: ToJSONKeyFunction CEState
$ctoJSONKey :: ToJSONKeyFunction CEState
Data.ToJSONKey,
      [Node] -> Either String CEState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CEState
$cparseXML :: [Node] -> Either String CEState
Data.FromXML,
      CEState -> XML
forall a. (a -> XML) -> ToXML a
toXML :: CEState -> XML
$ctoXML :: CEState -> XML
Data.ToXML
    )

pattern CEState_DISABLED :: CEState
pattern $bCEState_DISABLED :: CEState
$mCEState_DISABLED :: forall {r}. CEState -> ((# #) -> r) -> ((# #) -> r) -> r
CEState_DISABLED = CEState' "DISABLED"

pattern CEState_ENABLED :: CEState
pattern $bCEState_ENABLED :: CEState
$mCEState_ENABLED :: forall {r}. CEState -> ((# #) -> r) -> ((# #) -> r) -> r
CEState_ENABLED = CEState' "ENABLED"

{-# COMPLETE
  CEState_DISABLED,
  CEState_ENABLED,
  CEState'
  #-}