{-# 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.BuildBatchPhaseType
-- 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.BuildBatchPhaseType
  ( BuildBatchPhaseType
      ( ..,
        BuildBatchPhaseType_COMBINE_ARTIFACTS,
        BuildBatchPhaseType_DOWNLOAD_BATCHSPEC,
        BuildBatchPhaseType_FAILED,
        BuildBatchPhaseType_IN_PROGRESS,
        BuildBatchPhaseType_STOPPED,
        BuildBatchPhaseType_SUBMITTED,
        BuildBatchPhaseType_SUCCEEDED
      ),
  )
where

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

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

pattern BuildBatchPhaseType_COMBINE_ARTIFACTS :: BuildBatchPhaseType
pattern $bBuildBatchPhaseType_COMBINE_ARTIFACTS :: BuildBatchPhaseType
$mBuildBatchPhaseType_COMBINE_ARTIFACTS :: forall r. BuildBatchPhaseType -> (Void# -> r) -> (Void# -> r) -> r
BuildBatchPhaseType_COMBINE_ARTIFACTS = BuildBatchPhaseType' "COMBINE_ARTIFACTS"

pattern BuildBatchPhaseType_DOWNLOAD_BATCHSPEC :: BuildBatchPhaseType
pattern $bBuildBatchPhaseType_DOWNLOAD_BATCHSPEC :: BuildBatchPhaseType
$mBuildBatchPhaseType_DOWNLOAD_BATCHSPEC :: forall r. BuildBatchPhaseType -> (Void# -> r) -> (Void# -> r) -> r
BuildBatchPhaseType_DOWNLOAD_BATCHSPEC = BuildBatchPhaseType' "DOWNLOAD_BATCHSPEC"

pattern BuildBatchPhaseType_FAILED :: BuildBatchPhaseType
pattern $bBuildBatchPhaseType_FAILED :: BuildBatchPhaseType
$mBuildBatchPhaseType_FAILED :: forall r. BuildBatchPhaseType -> (Void# -> r) -> (Void# -> r) -> r
BuildBatchPhaseType_FAILED = BuildBatchPhaseType' "FAILED"

pattern BuildBatchPhaseType_IN_PROGRESS :: BuildBatchPhaseType
pattern $bBuildBatchPhaseType_IN_PROGRESS :: BuildBatchPhaseType
$mBuildBatchPhaseType_IN_PROGRESS :: forall r. BuildBatchPhaseType -> (Void# -> r) -> (Void# -> r) -> r
BuildBatchPhaseType_IN_PROGRESS = BuildBatchPhaseType' "IN_PROGRESS"

pattern BuildBatchPhaseType_STOPPED :: BuildBatchPhaseType
pattern $bBuildBatchPhaseType_STOPPED :: BuildBatchPhaseType
$mBuildBatchPhaseType_STOPPED :: forall r. BuildBatchPhaseType -> (Void# -> r) -> (Void# -> r) -> r
BuildBatchPhaseType_STOPPED = BuildBatchPhaseType' "STOPPED"

pattern BuildBatchPhaseType_SUBMITTED :: BuildBatchPhaseType
pattern $bBuildBatchPhaseType_SUBMITTED :: BuildBatchPhaseType
$mBuildBatchPhaseType_SUBMITTED :: forall r. BuildBatchPhaseType -> (Void# -> r) -> (Void# -> r) -> r
BuildBatchPhaseType_SUBMITTED = BuildBatchPhaseType' "SUBMITTED"

pattern BuildBatchPhaseType_SUCCEEDED :: BuildBatchPhaseType
pattern $bBuildBatchPhaseType_SUCCEEDED :: BuildBatchPhaseType
$mBuildBatchPhaseType_SUCCEEDED :: forall r. BuildBatchPhaseType -> (Void# -> r) -> (Void# -> r) -> r
BuildBatchPhaseType_SUCCEEDED = BuildBatchPhaseType' "SUCCEEDED"

{-# COMPLETE
  BuildBatchPhaseType_COMBINE_ARTIFACTS,
  BuildBatchPhaseType_DOWNLOAD_BATCHSPEC,
  BuildBatchPhaseType_FAILED,
  BuildBatchPhaseType_IN_PROGRESS,
  BuildBatchPhaseType_STOPPED,
  BuildBatchPhaseType_SUBMITTED,
  BuildBatchPhaseType_SUCCEEDED,
  BuildBatchPhaseType'
  #-}