{-# 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.JobDefinitionType
-- 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.JobDefinitionType
  ( JobDefinitionType
      ( ..,
        JobDefinitionType_Container,
        JobDefinitionType_Multinode
      ),
  )
where

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

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

pattern JobDefinitionType_Container :: JobDefinitionType
pattern $bJobDefinitionType_Container :: JobDefinitionType
$mJobDefinitionType_Container :: forall r. JobDefinitionType -> (Void# -> r) -> (Void# -> r) -> r
JobDefinitionType_Container = JobDefinitionType' "container"

pattern JobDefinitionType_Multinode :: JobDefinitionType
pattern $bJobDefinitionType_Multinode :: JobDefinitionType
$mJobDefinitionType_Multinode :: forall r. JobDefinitionType -> (Void# -> r) -> (Void# -> r) -> r
JobDefinitionType_Multinode = JobDefinitionType' "multinode"

{-# COMPLETE
  JobDefinitionType_Container,
  JobDefinitionType_Multinode,
  JobDefinitionType'
  #-}