{-# 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.ArrayJobDependency
-- 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.ArrayJobDependency
  ( ArrayJobDependency
      ( ..,
        ArrayJobDependency_N_TO_N,
        ArrayJobDependency_SEQUENTIAL
      ),
  )
where

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

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

pattern ArrayJobDependency_N_TO_N :: ArrayJobDependency
pattern $bArrayJobDependency_N_TO_N :: ArrayJobDependency
$mArrayJobDependency_N_TO_N :: forall r. ArrayJobDependency -> (Void# -> r) -> (Void# -> r) -> r
ArrayJobDependency_N_TO_N = ArrayJobDependency' "N_TO_N"

pattern ArrayJobDependency_SEQUENTIAL :: ArrayJobDependency
pattern $bArrayJobDependency_SEQUENTIAL :: ArrayJobDependency
$mArrayJobDependency_SEQUENTIAL :: forall r. ArrayJobDependency -> (Void# -> r) -> (Void# -> r) -> r
ArrayJobDependency_SEQUENTIAL = ArrayJobDependency' "SEQUENTIAL"

{-# COMPLETE
  ArrayJobDependency_N_TO_N,
  ArrayJobDependency_SEQUENTIAL,
  ArrayJobDependency'
  #-}