{-# 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.BatchReportModeType
-- 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.BatchReportModeType
  ( BatchReportModeType
      ( ..,
        BatchReportModeType_REPORT_AGGREGATED_BATCH,
        BatchReportModeType_REPORT_INDIVIDUAL_BUILDS
      ),
  )
where

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

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

pattern BatchReportModeType_REPORT_AGGREGATED_BATCH :: BatchReportModeType
pattern $bBatchReportModeType_REPORT_AGGREGATED_BATCH :: BatchReportModeType
$mBatchReportModeType_REPORT_AGGREGATED_BATCH :: forall r. BatchReportModeType -> (Void# -> r) -> (Void# -> r) -> r
BatchReportModeType_REPORT_AGGREGATED_BATCH = BatchReportModeType' "REPORT_AGGREGATED_BATCH"

pattern BatchReportModeType_REPORT_INDIVIDUAL_BUILDS :: BatchReportModeType
pattern $bBatchReportModeType_REPORT_INDIVIDUAL_BUILDS :: BatchReportModeType
$mBatchReportModeType_REPORT_INDIVIDUAL_BUILDS :: forall r. BatchReportModeType -> (Void# -> r) -> (Void# -> r) -> r
BatchReportModeType_REPORT_INDIVIDUAL_BUILDS = BatchReportModeType' "REPORT_INDIVIDUAL_BUILDS"

{-# COMPLETE
  BatchReportModeType_REPORT_AGGREGATED_BATCH,
  BatchReportModeType_REPORT_INDIVIDUAL_BUILDS,
  BatchReportModeType'
  #-}