{-# 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.ArtifactsType
-- 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.ArtifactsType
  ( ArtifactsType
      ( ..,
        ArtifactsType_CODEPIPELINE,
        ArtifactsType_NO_ARTIFACTS,
        ArtifactsType_S3
      ),
  )
where

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

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

pattern ArtifactsType_CODEPIPELINE :: ArtifactsType
pattern $bArtifactsType_CODEPIPELINE :: ArtifactsType
$mArtifactsType_CODEPIPELINE :: forall {r}. ArtifactsType -> ((# #) -> r) -> ((# #) -> r) -> r
ArtifactsType_CODEPIPELINE = ArtifactsType' "CODEPIPELINE"

pattern ArtifactsType_NO_ARTIFACTS :: ArtifactsType
pattern $bArtifactsType_NO_ARTIFACTS :: ArtifactsType
$mArtifactsType_NO_ARTIFACTS :: forall {r}. ArtifactsType -> ((# #) -> r) -> ((# #) -> r) -> r
ArtifactsType_NO_ARTIFACTS = ArtifactsType' "NO_ARTIFACTS"

pattern ArtifactsType_S3 :: ArtifactsType
pattern $bArtifactsType_S3 :: ArtifactsType
$mArtifactsType_S3 :: forall {r}. ArtifactsType -> ((# #) -> r) -> ((# #) -> r) -> r
ArtifactsType_S3 = ArtifactsType' "S3"

{-# COMPLETE
  ArtifactsType_CODEPIPELINE,
  ArtifactsType_NO_ARTIFACTS,
  ArtifactsType_S3,
  ArtifactsType'
  #-}