{-# 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.CodeBuild.Types.RetryBuildBatchType
-- 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.CodeBuild.Types.RetryBuildBatchType
  ( RetryBuildBatchType
      ( ..,
        RetryBuildBatchType_RETRY_ALL_BUILDS,
        RetryBuildBatchType_RETRY_FAILED_BUILDS
      ),
  )
where

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

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

pattern RetryBuildBatchType_RETRY_ALL_BUILDS :: RetryBuildBatchType
pattern $bRetryBuildBatchType_RETRY_ALL_BUILDS :: RetryBuildBatchType
$mRetryBuildBatchType_RETRY_ALL_BUILDS :: forall r. RetryBuildBatchType -> (Void# -> r) -> (Void# -> r) -> r
RetryBuildBatchType_RETRY_ALL_BUILDS = RetryBuildBatchType' "RETRY_ALL_BUILDS"

pattern RetryBuildBatchType_RETRY_FAILED_BUILDS :: RetryBuildBatchType
pattern $bRetryBuildBatchType_RETRY_FAILED_BUILDS :: RetryBuildBatchType
$mRetryBuildBatchType_RETRY_FAILED_BUILDS :: forall r. RetryBuildBatchType -> (Void# -> r) -> (Void# -> r) -> r
RetryBuildBatchType_RETRY_FAILED_BUILDS = RetryBuildBatchType' "RETRY_FAILED_BUILDS"

{-# COMPLETE
  RetryBuildBatchType_RETRY_ALL_BUILDS,
  RetryBuildBatchType_RETRY_FAILED_BUILDS,
  RetryBuildBatchType'
  #-}