{-# 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.ReportPackagingType
-- 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.ReportPackagingType
  ( ReportPackagingType
      ( ..,
        ReportPackagingType_NONE,
        ReportPackagingType_ZIP
      ),
  )
where

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

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

pattern ReportPackagingType_NONE :: ReportPackagingType
pattern $bReportPackagingType_NONE :: ReportPackagingType
$mReportPackagingType_NONE :: forall {r}.
ReportPackagingType -> ((# #) -> r) -> ((# #) -> r) -> r
ReportPackagingType_NONE = ReportPackagingType' "NONE"

pattern ReportPackagingType_ZIP :: ReportPackagingType
pattern $bReportPackagingType_ZIP :: ReportPackagingType
$mReportPackagingType_ZIP :: forall {r}.
ReportPackagingType -> ((# #) -> r) -> ((# #) -> r) -> r
ReportPackagingType_ZIP = ReportPackagingType' "ZIP"

{-# COMPLETE
  ReportPackagingType_NONE,
  ReportPackagingType_ZIP,
  ReportPackagingType'
  #-}