{-# 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.ArtifactPackaging
-- 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.ArtifactPackaging
  ( ArtifactPackaging
      ( ..,
        ArtifactPackaging_NONE,
        ArtifactPackaging_ZIP
      ),
  )
where

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

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

pattern ArtifactPackaging_NONE :: ArtifactPackaging
pattern $bArtifactPackaging_NONE :: ArtifactPackaging
$mArtifactPackaging_NONE :: forall r. ArtifactPackaging -> (Void# -> r) -> (Void# -> r) -> r
ArtifactPackaging_NONE = ArtifactPackaging' "NONE"

pattern ArtifactPackaging_ZIP :: ArtifactPackaging
pattern $bArtifactPackaging_ZIP :: ArtifactPackaging
$mArtifactPackaging_ZIP :: forall r. ArtifactPackaging -> (Void# -> r) -> (Void# -> r) -> r
ArtifactPackaging_ZIP = ArtifactPackaging' "ZIP"

{-# COMPLETE
  ArtifactPackaging_NONE,
  ArtifactPackaging_ZIP,
  ArtifactPackaging'
  #-}