{-# 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.LogsConfigStatusType
-- 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.LogsConfigStatusType
  ( LogsConfigStatusType
      ( ..,
        LogsConfigStatusType_DISABLED,
        LogsConfigStatusType_ENABLED
      ),
  )
where

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

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

pattern LogsConfigStatusType_DISABLED :: LogsConfigStatusType
pattern $bLogsConfigStatusType_DISABLED :: LogsConfigStatusType
$mLogsConfigStatusType_DISABLED :: forall {r}.
LogsConfigStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
LogsConfigStatusType_DISABLED = LogsConfigStatusType' "DISABLED"

pattern LogsConfigStatusType_ENABLED :: LogsConfigStatusType
pattern $bLogsConfigStatusType_ENABLED :: LogsConfigStatusType
$mLogsConfigStatusType_ENABLED :: forall {r}.
LogsConfigStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
LogsConfigStatusType_ENABLED = LogsConfigStatusType' "ENABLED"

{-# COMPLETE
  LogsConfigStatusType_DISABLED,
  LogsConfigStatusType_ENABLED,
  LogsConfigStatusType'
  #-}