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

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

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

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

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

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