{-# 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.M2.Types.BatchJobType
-- 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.M2.Types.BatchJobType
  ( BatchJobType
      ( ..,
        BatchJobType_JES2,
        BatchJobType_JES3,
        BatchJobType_VSE
      ),
  )
where

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

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

pattern BatchJobType_JES2 :: BatchJobType
pattern $bBatchJobType_JES2 :: BatchJobType
$mBatchJobType_JES2 :: forall {r}. BatchJobType -> ((# #) -> r) -> ((# #) -> r) -> r
BatchJobType_JES2 = BatchJobType' "JES2"

pattern BatchJobType_JES3 :: BatchJobType
pattern $bBatchJobType_JES3 :: BatchJobType
$mBatchJobType_JES3 :: forall {r}. BatchJobType -> ((# #) -> r) -> ((# #) -> r) -> r
BatchJobType_JES3 = BatchJobType' "JES3"

pattern BatchJobType_VSE :: BatchJobType
pattern $bBatchJobType_VSE :: BatchJobType
$mBatchJobType_VSE :: forall {r}. BatchJobType -> ((# #) -> r) -> ((# #) -> r) -> r
BatchJobType_VSE = BatchJobType' "VSE"

{-# COMPLETE
  BatchJobType_JES2,
  BatchJobType_JES3,
  BatchJobType_VSE,
  BatchJobType'
  #-}