{-# 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.WebhookBuildType
-- 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.CodeBuild.Types.WebhookBuildType
  ( WebhookBuildType
      ( ..,
        WebhookBuildType_BUILD,
        WebhookBuildType_BUILD_BATCH
      ),
  )
where

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

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

pattern WebhookBuildType_BUILD :: WebhookBuildType
pattern $bWebhookBuildType_BUILD :: WebhookBuildType
$mWebhookBuildType_BUILD :: forall {r}. WebhookBuildType -> ((# #) -> r) -> ((# #) -> r) -> r
WebhookBuildType_BUILD = WebhookBuildType' "BUILD"

pattern WebhookBuildType_BUILD_BATCH :: WebhookBuildType
pattern $bWebhookBuildType_BUILD_BATCH :: WebhookBuildType
$mWebhookBuildType_BUILD_BATCH :: forall {r}. WebhookBuildType -> ((# #) -> r) -> ((# #) -> r) -> r
WebhookBuildType_BUILD_BATCH = WebhookBuildType' "BUILD_BATCH"

{-# COMPLETE
  WebhookBuildType_BUILD,
  WebhookBuildType_BUILD_BATCH,
  WebhookBuildType'
  #-}