{-# 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.CEStatus
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Batch.Types.CEStatus
  ( CEStatus
      ( ..,
        CEStatus_CREATING,
        CEStatus_DELETED,
        CEStatus_DELETING,
        CEStatus_INVALID,
        CEStatus_UPDATING,
        CEStatus_VALID
      ),
  )
where

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

newtype CEStatus = CEStatus'
  { CEStatus -> Text
fromCEStatus ::
      Core.Text
  }
  deriving stock
    ( Int -> CEStatus -> ShowS
[CEStatus] -> ShowS
CEStatus -> String
(Int -> CEStatus -> ShowS)
-> (CEStatus -> String) -> ([CEStatus] -> ShowS) -> Show CEStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CEStatus] -> ShowS
$cshowList :: [CEStatus] -> ShowS
show :: CEStatus -> String
$cshow :: CEStatus -> String
showsPrec :: Int -> CEStatus -> ShowS
$cshowsPrec :: Int -> CEStatus -> ShowS
Prelude.Show,
      ReadPrec [CEStatus]
ReadPrec CEStatus
Int -> ReadS CEStatus
ReadS [CEStatus]
(Int -> ReadS CEStatus)
-> ReadS [CEStatus]
-> ReadPrec CEStatus
-> ReadPrec [CEStatus]
-> Read CEStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CEStatus]
$creadListPrec :: ReadPrec [CEStatus]
readPrec :: ReadPrec CEStatus
$creadPrec :: ReadPrec CEStatus
readList :: ReadS [CEStatus]
$creadList :: ReadS [CEStatus]
readsPrec :: Int -> ReadS CEStatus
$creadsPrec :: Int -> ReadS CEStatus
Prelude.Read,
      CEStatus -> CEStatus -> Bool
(CEStatus -> CEStatus -> Bool)
-> (CEStatus -> CEStatus -> Bool) -> Eq CEStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CEStatus -> CEStatus -> Bool
$c/= :: CEStatus -> CEStatus -> Bool
== :: CEStatus -> CEStatus -> Bool
$c== :: CEStatus -> CEStatus -> Bool
Prelude.Eq,
      Eq CEStatus
Eq CEStatus
-> (CEStatus -> CEStatus -> Ordering)
-> (CEStatus -> CEStatus -> Bool)
-> (CEStatus -> CEStatus -> Bool)
-> (CEStatus -> CEStatus -> Bool)
-> (CEStatus -> CEStatus -> Bool)
-> (CEStatus -> CEStatus -> CEStatus)
-> (CEStatus -> CEStatus -> CEStatus)
-> Ord CEStatus
CEStatus -> CEStatus -> Bool
CEStatus -> CEStatus -> Ordering
CEStatus -> CEStatus -> CEStatus
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 :: CEStatus -> CEStatus -> CEStatus
$cmin :: CEStatus -> CEStatus -> CEStatus
max :: CEStatus -> CEStatus -> CEStatus
$cmax :: CEStatus -> CEStatus -> CEStatus
>= :: CEStatus -> CEStatus -> Bool
$c>= :: CEStatus -> CEStatus -> Bool
> :: CEStatus -> CEStatus -> Bool
$c> :: CEStatus -> CEStatus -> Bool
<= :: CEStatus -> CEStatus -> Bool
$c<= :: CEStatus -> CEStatus -> Bool
< :: CEStatus -> CEStatus -> Bool
$c< :: CEStatus -> CEStatus -> Bool
compare :: CEStatus -> CEStatus -> Ordering
$ccompare :: CEStatus -> CEStatus -> Ordering
$cp1Ord :: Eq CEStatus
Prelude.Ord,
      (forall x. CEStatus -> Rep CEStatus x)
-> (forall x. Rep CEStatus x -> CEStatus) -> Generic CEStatus
forall x. Rep CEStatus x -> CEStatus
forall x. CEStatus -> Rep CEStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CEStatus x -> CEStatus
$cfrom :: forall x. CEStatus -> Rep CEStatus x
Prelude.Generic
    )
  deriving newtype
    ( Int -> CEStatus -> Int
CEStatus -> Int
(Int -> CEStatus -> Int) -> (CEStatus -> Int) -> Hashable CEStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: CEStatus -> Int
$chash :: CEStatus -> Int
hashWithSalt :: Int -> CEStatus -> Int
$chashWithSalt :: Int -> CEStatus -> Int
Prelude.Hashable,
      CEStatus -> ()
(CEStatus -> ()) -> NFData CEStatus
forall a. (a -> ()) -> NFData a
rnf :: CEStatus -> ()
$crnf :: CEStatus -> ()
Prelude.NFData,
      Text -> Either String CEStatus
(Text -> Either String CEStatus) -> FromText CEStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CEStatus
$cfromText :: Text -> Either String CEStatus
Core.FromText,
      CEStatus -> Text
(CEStatus -> Text) -> ToText CEStatus
forall a. (a -> Text) -> ToText a
toText :: CEStatus -> Text
$ctoText :: CEStatus -> Text
Core.ToText,
      CEStatus -> ByteString
(CEStatus -> ByteString) -> ToByteString CEStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: CEStatus -> ByteString
$ctoBS :: CEStatus -> ByteString
Core.ToByteString,
      CEStatus -> ByteStringBuilder
(CEStatus -> ByteStringBuilder) -> ToLog CEStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CEStatus -> ByteStringBuilder
$cbuild :: CEStatus -> ByteStringBuilder
Core.ToLog,
      HeaderName -> CEStatus -> [Header]
(HeaderName -> CEStatus -> [Header]) -> ToHeader CEStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CEStatus -> [Header]
$ctoHeader :: HeaderName -> CEStatus -> [Header]
Core.ToHeader,
      CEStatus -> QueryString
(CEStatus -> QueryString) -> ToQuery CEStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CEStatus -> QueryString
$ctoQuery :: CEStatus -> QueryString
Core.ToQuery,
      Value -> Parser [CEStatus]
Value -> Parser CEStatus
(Value -> Parser CEStatus)
-> (Value -> Parser [CEStatus]) -> FromJSON CEStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [CEStatus]
$cparseJSONList :: Value -> Parser [CEStatus]
parseJSON :: Value -> Parser CEStatus
$cparseJSON :: Value -> Parser CEStatus
Core.FromJSON,
      FromJSONKeyFunction [CEStatus]
FromJSONKeyFunction CEStatus
FromJSONKeyFunction CEStatus
-> FromJSONKeyFunction [CEStatus] -> FromJSONKey CEStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CEStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [CEStatus]
fromJSONKey :: FromJSONKeyFunction CEStatus
$cfromJSONKey :: FromJSONKeyFunction CEStatus
Core.FromJSONKey,
      [CEStatus] -> Encoding
[CEStatus] -> Value
CEStatus -> Encoding
CEStatus -> Value
(CEStatus -> Value)
-> (CEStatus -> Encoding)
-> ([CEStatus] -> Value)
-> ([CEStatus] -> Encoding)
-> ToJSON CEStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [CEStatus] -> Encoding
$ctoEncodingList :: [CEStatus] -> Encoding
toJSONList :: [CEStatus] -> Value
$ctoJSONList :: [CEStatus] -> Value
toEncoding :: CEStatus -> Encoding
$ctoEncoding :: CEStatus -> Encoding
toJSON :: CEStatus -> Value
$ctoJSON :: CEStatus -> Value
Core.ToJSON,
      ToJSONKeyFunction [CEStatus]
ToJSONKeyFunction CEStatus
ToJSONKeyFunction CEStatus
-> ToJSONKeyFunction [CEStatus] -> ToJSONKey CEStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CEStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [CEStatus]
toJSONKey :: ToJSONKeyFunction CEStatus
$ctoJSONKey :: ToJSONKeyFunction CEStatus
Core.ToJSONKey,
      [Node] -> Either String CEStatus
([Node] -> Either String CEStatus) -> FromXML CEStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CEStatus
$cparseXML :: [Node] -> Either String CEStatus
Core.FromXML,
      CEStatus -> XML
(CEStatus -> XML) -> ToXML CEStatus
forall a. (a -> XML) -> ToXML a
toXML :: CEStatus -> XML
$ctoXML :: CEStatus -> XML
Core.ToXML
    )

pattern CEStatus_CREATING :: CEStatus
pattern $bCEStatus_CREATING :: CEStatus
$mCEStatus_CREATING :: forall r. CEStatus -> (Void# -> r) -> (Void# -> r) -> r
CEStatus_CREATING = CEStatus' "CREATING"

pattern CEStatus_DELETED :: CEStatus
pattern $bCEStatus_DELETED :: CEStatus
$mCEStatus_DELETED :: forall r. CEStatus -> (Void# -> r) -> (Void# -> r) -> r
CEStatus_DELETED = CEStatus' "DELETED"

pattern CEStatus_DELETING :: CEStatus
pattern $bCEStatus_DELETING :: CEStatus
$mCEStatus_DELETING :: forall r. CEStatus -> (Void# -> r) -> (Void# -> r) -> r
CEStatus_DELETING = CEStatus' "DELETING"

pattern CEStatus_INVALID :: CEStatus
pattern $bCEStatus_INVALID :: CEStatus
$mCEStatus_INVALID :: forall r. CEStatus -> (Void# -> r) -> (Void# -> r) -> r
CEStatus_INVALID = CEStatus' "INVALID"

pattern CEStatus_UPDATING :: CEStatus
pattern $bCEStatus_UPDATING :: CEStatus
$mCEStatus_UPDATING :: forall r. CEStatus -> (Void# -> r) -> (Void# -> r) -> r
CEStatus_UPDATING = CEStatus' "UPDATING"

pattern CEStatus_VALID :: CEStatus
pattern $bCEStatus_VALID :: CEStatus
$mCEStatus_VALID :: forall r. CEStatus -> (Void# -> r) -> (Void# -> r) -> r
CEStatus_VALID = CEStatus' "VALID"

{-# COMPLETE
  CEStatus_CREATING,
  CEStatus_DELETED,
  CEStatus_DELETING,
  CEStatus_INVALID,
  CEStatus_UPDATING,
  CEStatus_VALID,
  CEStatus'
  #-}