{-# 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.Pipes.Types.BatchJobDependencyType
-- 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.Pipes.Types.BatchJobDependencyType
  ( BatchJobDependencyType
      ( ..,
        BatchJobDependencyType_N_TO_N,
        BatchJobDependencyType_SEQUENTIAL
      ),
  )
where

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

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

pattern BatchJobDependencyType_N_TO_N :: BatchJobDependencyType
pattern $bBatchJobDependencyType_N_TO_N :: BatchJobDependencyType
$mBatchJobDependencyType_N_TO_N :: forall {r}.
BatchJobDependencyType -> ((# #) -> r) -> ((# #) -> r) -> r
BatchJobDependencyType_N_TO_N = BatchJobDependencyType' "N_TO_N"

pattern BatchJobDependencyType_SEQUENTIAL :: BatchJobDependencyType
pattern $bBatchJobDependencyType_SEQUENTIAL :: BatchJobDependencyType
$mBatchJobDependencyType_SEQUENTIAL :: forall {r}.
BatchJobDependencyType -> ((# #) -> r) -> ((# #) -> r) -> r
BatchJobDependencyType_SEQUENTIAL = BatchJobDependencyType' "SEQUENTIAL"

{-# COMPLETE
  BatchJobDependencyType_N_TO_N,
  BatchJobDependencyType_SEQUENTIAL,
  BatchJobDependencyType'
  #-}