{-# 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.RecordingMode
-- 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.RecordingMode
  ( RecordingMode
      ( ..,
        RecordingMode_DISABLED,
        RecordingMode_INTERVAL
      ),
  )
where

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

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

pattern RecordingMode_DISABLED :: RecordingMode
pattern $bRecordingMode_DISABLED :: RecordingMode
$mRecordingMode_DISABLED :: forall {r}. RecordingMode -> ((# #) -> r) -> ((# #) -> r) -> r
RecordingMode_DISABLED = RecordingMode' "DISABLED"

pattern RecordingMode_INTERVAL :: RecordingMode
pattern $bRecordingMode_INTERVAL :: RecordingMode
$mRecordingMode_INTERVAL :: forall {r}. RecordingMode -> ((# #) -> r) -> ((# #) -> r) -> r
RecordingMode_INTERVAL = RecordingMode' "INTERVAL"

{-# COMPLETE
  RecordingMode_DISABLED,
  RecordingMode_INTERVAL,
  RecordingMode'
  #-}