{-# 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.IVSChat.Types.UpdateLoggingConfigurationState
-- 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.IVSChat.Types.UpdateLoggingConfigurationState
  ( UpdateLoggingConfigurationState
      ( ..,
        UpdateLoggingConfigurationState_ACTIVE
      ),
  )
where

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

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

pattern UpdateLoggingConfigurationState_ACTIVE :: UpdateLoggingConfigurationState
pattern $bUpdateLoggingConfigurationState_ACTIVE :: UpdateLoggingConfigurationState
$mUpdateLoggingConfigurationState_ACTIVE :: forall {r}.
UpdateLoggingConfigurationState
-> ((# #) -> r) -> ((# #) -> r) -> r
UpdateLoggingConfigurationState_ACTIVE = UpdateLoggingConfigurationState' "ACTIVE"

{-# COMPLETE
  UpdateLoggingConfigurationState_ACTIVE,
  UpdateLoggingConfigurationState'
  #-}