{-# 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.IVS.Types.RecordingConfigurationState
-- 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.IVS.Types.RecordingConfigurationState
  ( RecordingConfigurationState
      ( ..,
        RecordingConfigurationState_ACTIVE,
        RecordingConfigurationState_CREATE_FAILED,
        RecordingConfigurationState_CREATING
      ),
  )
where

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

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

pattern RecordingConfigurationState_ACTIVE :: RecordingConfigurationState
pattern $bRecordingConfigurationState_ACTIVE :: RecordingConfigurationState
$mRecordingConfigurationState_ACTIVE :: forall {r}.
RecordingConfigurationState -> ((# #) -> r) -> ((# #) -> r) -> r
RecordingConfigurationState_ACTIVE = RecordingConfigurationState' "ACTIVE"

pattern RecordingConfigurationState_CREATE_FAILED :: RecordingConfigurationState
pattern $bRecordingConfigurationState_CREATE_FAILED :: RecordingConfigurationState
$mRecordingConfigurationState_CREATE_FAILED :: forall {r}.
RecordingConfigurationState -> ((# #) -> r) -> ((# #) -> r) -> r
RecordingConfigurationState_CREATE_FAILED = RecordingConfigurationState' "CREATE_FAILED"

pattern RecordingConfigurationState_CREATING :: RecordingConfigurationState
pattern $bRecordingConfigurationState_CREATING :: RecordingConfigurationState
$mRecordingConfigurationState_CREATING :: forall {r}.
RecordingConfigurationState -> ((# #) -> r) -> ((# #) -> r) -> r
RecordingConfigurationState_CREATING = RecordingConfigurationState' "CREATING"

{-# COMPLETE
  RecordingConfigurationState_ACTIVE,
  RecordingConfigurationState_CREATE_FAILED,
  RecordingConfigurationState_CREATING,
  RecordingConfigurationState'
  #-}