{-# 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.ReportGroupStatusType
-- 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.ReportGroupStatusType
  ( ReportGroupStatusType
      ( ..,
        ReportGroupStatusType_ACTIVE,
        ReportGroupStatusType_DELETING
      ),
  )
where

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

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

pattern ReportGroupStatusType_ACTIVE :: ReportGroupStatusType
pattern $bReportGroupStatusType_ACTIVE :: ReportGroupStatusType
$mReportGroupStatusType_ACTIVE :: forall r.
ReportGroupStatusType -> (Void# -> r) -> (Void# -> r) -> r
ReportGroupStatusType_ACTIVE = ReportGroupStatusType' "ACTIVE"

pattern ReportGroupStatusType_DELETING :: ReportGroupStatusType
pattern $bReportGroupStatusType_DELETING :: ReportGroupStatusType
$mReportGroupStatusType_DELETING :: forall r.
ReportGroupStatusType -> (Void# -> r) -> (Void# -> r) -> r
ReportGroupStatusType_DELETING = ReportGroupStatusType' "DELETING"

{-# COMPLETE
  ReportGroupStatusType_ACTIVE,
  ReportGroupStatusType_DELETING,
  ReportGroupStatusType'
  #-}