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

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

newtype ReportPackagingType = ReportPackagingType'
  { ReportPackagingType -> Text
fromReportPackagingType ::
      Core.Text
  }
  deriving stock
    ( Int -> ReportPackagingType -> ShowS
[ReportPackagingType] -> ShowS
ReportPackagingType -> String
(Int -> ReportPackagingType -> ShowS)
-> (ReportPackagingType -> String)
-> ([ReportPackagingType] -> ShowS)
-> Show ReportPackagingType
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]
(Int -> ReadS ReportPackagingType)
-> ReadS [ReportPackagingType]
-> ReadPrec ReportPackagingType
-> ReadPrec [ReportPackagingType]
-> Read 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
(ReportPackagingType -> ReportPackagingType -> Bool)
-> (ReportPackagingType -> ReportPackagingType -> Bool)
-> Eq ReportPackagingType
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
Eq ReportPackagingType
-> (ReportPackagingType -> ReportPackagingType -> Ordering)
-> (ReportPackagingType -> ReportPackagingType -> Bool)
-> (ReportPackagingType -> ReportPackagingType -> Bool)
-> (ReportPackagingType -> ReportPackagingType -> Bool)
-> (ReportPackagingType -> ReportPackagingType -> Bool)
-> (ReportPackagingType
    -> ReportPackagingType -> ReportPackagingType)
-> (ReportPackagingType
    -> ReportPackagingType -> ReportPackagingType)
-> Ord 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
$cp1Ord :: Eq ReportPackagingType
Prelude.Ord,
      (forall x. ReportPackagingType -> Rep ReportPackagingType x)
-> (forall x. Rep ReportPackagingType x -> ReportPackagingType)
-> Generic ReportPackagingType
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
    ( Int -> ReportPackagingType -> Int
ReportPackagingType -> Int
(Int -> ReportPackagingType -> Int)
-> (ReportPackagingType -> Int) -> Hashable ReportPackagingType
forall 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 -> ()
(ReportPackagingType -> ()) -> NFData ReportPackagingType
forall a. (a -> ()) -> NFData a
rnf :: ReportPackagingType -> ()
$crnf :: ReportPackagingType -> ()
Prelude.NFData,
      Text -> Either String ReportPackagingType
(Text -> Either String ReportPackagingType)
-> FromText ReportPackagingType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ReportPackagingType
$cfromText :: Text -> Either String ReportPackagingType
Core.FromText,
      ReportPackagingType -> Text
(ReportPackagingType -> Text) -> ToText ReportPackagingType
forall a. (a -> Text) -> ToText a
toText :: ReportPackagingType -> Text
$ctoText :: ReportPackagingType -> Text
Core.ToText,
      ReportPackagingType -> ByteString
(ReportPackagingType -> ByteString)
-> ToByteString ReportPackagingType
forall a. (a -> ByteString) -> ToByteString a
toBS :: ReportPackagingType -> ByteString
$ctoBS :: ReportPackagingType -> ByteString
Core.ToByteString,
      ReportPackagingType -> ByteStringBuilder
(ReportPackagingType -> ByteStringBuilder)
-> ToLog ReportPackagingType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ReportPackagingType -> ByteStringBuilder
$cbuild :: ReportPackagingType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ReportPackagingType -> [Header]
(HeaderName -> ReportPackagingType -> [Header])
-> ToHeader ReportPackagingType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ReportPackagingType -> [Header]
$ctoHeader :: HeaderName -> ReportPackagingType -> [Header]
Core.ToHeader,
      ReportPackagingType -> QueryString
(ReportPackagingType -> QueryString) -> ToQuery ReportPackagingType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ReportPackagingType -> QueryString
$ctoQuery :: ReportPackagingType -> QueryString
Core.ToQuery,
      Value -> Parser [ReportPackagingType]
Value -> Parser ReportPackagingType
(Value -> Parser ReportPackagingType)
-> (Value -> Parser [ReportPackagingType])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ReportPackagingType]
FromJSONKeyFunction ReportPackagingType
FromJSONKeyFunction ReportPackagingType
-> FromJSONKeyFunction [ReportPackagingType]
-> FromJSONKey ReportPackagingType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ReportPackagingType]
$cfromJSONKeyList :: FromJSONKeyFunction [ReportPackagingType]
fromJSONKey :: FromJSONKeyFunction ReportPackagingType
$cfromJSONKey :: FromJSONKeyFunction ReportPackagingType
Core.FromJSONKey,
      [ReportPackagingType] -> Encoding
[ReportPackagingType] -> Value
ReportPackagingType -> Encoding
ReportPackagingType -> Value
(ReportPackagingType -> Value)
-> (ReportPackagingType -> Encoding)
-> ([ReportPackagingType] -> Value)
-> ([ReportPackagingType] -> Encoding)
-> ToJSON ReportPackagingType
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
Core.ToJSON,
      ToJSONKeyFunction [ReportPackagingType]
ToJSONKeyFunction ReportPackagingType
ToJSONKeyFunction ReportPackagingType
-> ToJSONKeyFunction [ReportPackagingType]
-> ToJSONKey ReportPackagingType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ReportPackagingType]
$ctoJSONKeyList :: ToJSONKeyFunction [ReportPackagingType]
toJSONKey :: ToJSONKeyFunction ReportPackagingType
$ctoJSONKey :: ToJSONKeyFunction ReportPackagingType
Core.ToJSONKey,
      [Node] -> Either String ReportPackagingType
([Node] -> Either String ReportPackagingType)
-> FromXML ReportPackagingType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ReportPackagingType
$cparseXML :: [Node] -> Either String ReportPackagingType
Core.FromXML,
      ReportPackagingType -> XML
(ReportPackagingType -> XML) -> ToXML ReportPackagingType
forall a. (a -> XML) -> ToXML a
toXML :: ReportPackagingType -> XML
$ctoXML :: ReportPackagingType -> XML
Core.ToXML
    )

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

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

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