{-# 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.CEType
-- 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.CEType
  ( CEType
      ( ..,
        CEType_MANAGED,
        CEType_UNMANAGED
      ),
  )
where

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

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

pattern CEType_MANAGED :: CEType
pattern $bCEType_MANAGED :: CEType
$mCEType_MANAGED :: forall r. CEType -> (Void# -> r) -> (Void# -> r) -> r
CEType_MANAGED = CEType' "MANAGED"

pattern CEType_UNMANAGED :: CEType
pattern $bCEType_UNMANAGED :: CEType
$mCEType_UNMANAGED :: forall r. CEType -> (Void# -> r) -> (Void# -> r) -> r
CEType_UNMANAGED = CEType' "UNMANAGED"

{-# COMPLETE
  CEType_MANAGED,
  CEType_UNMANAGED,
  CEType'
  #-}