{-# 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.ReportExportConfigType
-- 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.ReportExportConfigType
  ( ReportExportConfigType
      ( ..,
        ReportExportConfigType_NO_EXPORT,
        ReportExportConfigType_S3
      ),
  )
where

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

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

pattern ReportExportConfigType_NO_EXPORT :: ReportExportConfigType
pattern $bReportExportConfigType_NO_EXPORT :: ReportExportConfigType
$mReportExportConfigType_NO_EXPORT :: forall r.
ReportExportConfigType -> (Void# -> r) -> (Void# -> r) -> r
ReportExportConfigType_NO_EXPORT = ReportExportConfigType' "NO_EXPORT"

pattern ReportExportConfigType_S3 :: ReportExportConfigType
pattern $bReportExportConfigType_S3 :: ReportExportConfigType
$mReportExportConfigType_S3 :: forall r.
ReportExportConfigType -> (Void# -> r) -> (Void# -> r) -> r
ReportExportConfigType_S3 = ReportExportConfigType' "S3"

{-# COMPLETE
  ReportExportConfigType_NO_EXPORT,
  ReportExportConfigType_S3,
  ReportExportConfigType'
  #-}