{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.IVS.Types.ChannelLatencyMode
( ChannelLatencyMode
( ..,
ChannelLatencyMode_LOW,
ChannelLatencyMode_NORMAL
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ChannelLatencyMode = ChannelLatencyMode'
{ ChannelLatencyMode -> Text
fromChannelLatencyMode ::
Core.Text
}
deriving stock
( Int -> ChannelLatencyMode -> ShowS
[ChannelLatencyMode] -> ShowS
ChannelLatencyMode -> String
(Int -> ChannelLatencyMode -> ShowS)
-> (ChannelLatencyMode -> String)
-> ([ChannelLatencyMode] -> ShowS)
-> Show ChannelLatencyMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ChannelLatencyMode] -> ShowS
$cshowList :: [ChannelLatencyMode] -> ShowS
show :: ChannelLatencyMode -> String
$cshow :: ChannelLatencyMode -> String
showsPrec :: Int -> ChannelLatencyMode -> ShowS
$cshowsPrec :: Int -> ChannelLatencyMode -> ShowS
Prelude.Show,
ReadPrec [ChannelLatencyMode]
ReadPrec ChannelLatencyMode
Int -> ReadS ChannelLatencyMode
ReadS [ChannelLatencyMode]
(Int -> ReadS ChannelLatencyMode)
-> ReadS [ChannelLatencyMode]
-> ReadPrec ChannelLatencyMode
-> ReadPrec [ChannelLatencyMode]
-> Read ChannelLatencyMode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ChannelLatencyMode]
$creadListPrec :: ReadPrec [ChannelLatencyMode]
readPrec :: ReadPrec ChannelLatencyMode
$creadPrec :: ReadPrec ChannelLatencyMode
readList :: ReadS [ChannelLatencyMode]
$creadList :: ReadS [ChannelLatencyMode]
readsPrec :: Int -> ReadS ChannelLatencyMode
$creadsPrec :: Int -> ReadS ChannelLatencyMode
Prelude.Read,
ChannelLatencyMode -> ChannelLatencyMode -> Bool
(ChannelLatencyMode -> ChannelLatencyMode -> Bool)
-> (ChannelLatencyMode -> ChannelLatencyMode -> Bool)
-> Eq ChannelLatencyMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ChannelLatencyMode -> ChannelLatencyMode -> Bool
$c/= :: ChannelLatencyMode -> ChannelLatencyMode -> Bool
== :: ChannelLatencyMode -> ChannelLatencyMode -> Bool
$c== :: ChannelLatencyMode -> ChannelLatencyMode -> Bool
Prelude.Eq,
Eq ChannelLatencyMode
Eq ChannelLatencyMode
-> (ChannelLatencyMode -> ChannelLatencyMode -> Ordering)
-> (ChannelLatencyMode -> ChannelLatencyMode -> Bool)
-> (ChannelLatencyMode -> ChannelLatencyMode -> Bool)
-> (ChannelLatencyMode -> ChannelLatencyMode -> Bool)
-> (ChannelLatencyMode -> ChannelLatencyMode -> Bool)
-> (ChannelLatencyMode -> ChannelLatencyMode -> ChannelLatencyMode)
-> (ChannelLatencyMode -> ChannelLatencyMode -> ChannelLatencyMode)
-> Ord ChannelLatencyMode
ChannelLatencyMode -> ChannelLatencyMode -> Bool
ChannelLatencyMode -> ChannelLatencyMode -> Ordering
ChannelLatencyMode -> ChannelLatencyMode -> ChannelLatencyMode
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 :: ChannelLatencyMode -> ChannelLatencyMode -> ChannelLatencyMode
$cmin :: ChannelLatencyMode -> ChannelLatencyMode -> ChannelLatencyMode
max :: ChannelLatencyMode -> ChannelLatencyMode -> ChannelLatencyMode
$cmax :: ChannelLatencyMode -> ChannelLatencyMode -> ChannelLatencyMode
>= :: ChannelLatencyMode -> ChannelLatencyMode -> Bool
$c>= :: ChannelLatencyMode -> ChannelLatencyMode -> Bool
> :: ChannelLatencyMode -> ChannelLatencyMode -> Bool
$c> :: ChannelLatencyMode -> ChannelLatencyMode -> Bool
<= :: ChannelLatencyMode -> ChannelLatencyMode -> Bool
$c<= :: ChannelLatencyMode -> ChannelLatencyMode -> Bool
< :: ChannelLatencyMode -> ChannelLatencyMode -> Bool
$c< :: ChannelLatencyMode -> ChannelLatencyMode -> Bool
compare :: ChannelLatencyMode -> ChannelLatencyMode -> Ordering
$ccompare :: ChannelLatencyMode -> ChannelLatencyMode -> Ordering
$cp1Ord :: Eq ChannelLatencyMode
Prelude.Ord,
(forall x. ChannelLatencyMode -> Rep ChannelLatencyMode x)
-> (forall x. Rep ChannelLatencyMode x -> ChannelLatencyMode)
-> Generic ChannelLatencyMode
forall x. Rep ChannelLatencyMode x -> ChannelLatencyMode
forall x. ChannelLatencyMode -> Rep ChannelLatencyMode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ChannelLatencyMode x -> ChannelLatencyMode
$cfrom :: forall x. ChannelLatencyMode -> Rep ChannelLatencyMode x
Prelude.Generic
)
deriving newtype
( Int -> ChannelLatencyMode -> Int
ChannelLatencyMode -> Int
(Int -> ChannelLatencyMode -> Int)
-> (ChannelLatencyMode -> Int) -> Hashable ChannelLatencyMode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ChannelLatencyMode -> Int
$chash :: ChannelLatencyMode -> Int
hashWithSalt :: Int -> ChannelLatencyMode -> Int
$chashWithSalt :: Int -> ChannelLatencyMode -> Int
Prelude.Hashable,
ChannelLatencyMode -> ()
(ChannelLatencyMode -> ()) -> NFData ChannelLatencyMode
forall a. (a -> ()) -> NFData a
rnf :: ChannelLatencyMode -> ()
$crnf :: ChannelLatencyMode -> ()
Prelude.NFData,
Text -> Either String ChannelLatencyMode
(Text -> Either String ChannelLatencyMode)
-> FromText ChannelLatencyMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ChannelLatencyMode
$cfromText :: Text -> Either String ChannelLatencyMode
Core.FromText,
ChannelLatencyMode -> Text
(ChannelLatencyMode -> Text) -> ToText ChannelLatencyMode
forall a. (a -> Text) -> ToText a
toText :: ChannelLatencyMode -> Text
$ctoText :: ChannelLatencyMode -> Text
Core.ToText,
ChannelLatencyMode -> ByteString
(ChannelLatencyMode -> ByteString)
-> ToByteString ChannelLatencyMode
forall a. (a -> ByteString) -> ToByteString a
toBS :: ChannelLatencyMode -> ByteString
$ctoBS :: ChannelLatencyMode -> ByteString
Core.ToByteString,
ChannelLatencyMode -> ByteStringBuilder
(ChannelLatencyMode -> ByteStringBuilder)
-> ToLog ChannelLatencyMode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ChannelLatencyMode -> ByteStringBuilder
$cbuild :: ChannelLatencyMode -> ByteStringBuilder
Core.ToLog,
HeaderName -> ChannelLatencyMode -> [Header]
(HeaderName -> ChannelLatencyMode -> [Header])
-> ToHeader ChannelLatencyMode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ChannelLatencyMode -> [Header]
$ctoHeader :: HeaderName -> ChannelLatencyMode -> [Header]
Core.ToHeader,
ChannelLatencyMode -> QueryString
(ChannelLatencyMode -> QueryString) -> ToQuery ChannelLatencyMode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ChannelLatencyMode -> QueryString
$ctoQuery :: ChannelLatencyMode -> QueryString
Core.ToQuery,
Value -> Parser [ChannelLatencyMode]
Value -> Parser ChannelLatencyMode
(Value -> Parser ChannelLatencyMode)
-> (Value -> Parser [ChannelLatencyMode])
-> FromJSON ChannelLatencyMode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ChannelLatencyMode]
$cparseJSONList :: Value -> Parser [ChannelLatencyMode]
parseJSON :: Value -> Parser ChannelLatencyMode
$cparseJSON :: Value -> Parser ChannelLatencyMode
Core.FromJSON,
FromJSONKeyFunction [ChannelLatencyMode]
FromJSONKeyFunction ChannelLatencyMode
FromJSONKeyFunction ChannelLatencyMode
-> FromJSONKeyFunction [ChannelLatencyMode]
-> FromJSONKey ChannelLatencyMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ChannelLatencyMode]
$cfromJSONKeyList :: FromJSONKeyFunction [ChannelLatencyMode]
fromJSONKey :: FromJSONKeyFunction ChannelLatencyMode
$cfromJSONKey :: FromJSONKeyFunction ChannelLatencyMode
Core.FromJSONKey,
[ChannelLatencyMode] -> Encoding
[ChannelLatencyMode] -> Value
ChannelLatencyMode -> Encoding
ChannelLatencyMode -> Value
(ChannelLatencyMode -> Value)
-> (ChannelLatencyMode -> Encoding)
-> ([ChannelLatencyMode] -> Value)
-> ([ChannelLatencyMode] -> Encoding)
-> ToJSON ChannelLatencyMode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ChannelLatencyMode] -> Encoding
$ctoEncodingList :: [ChannelLatencyMode] -> Encoding
toJSONList :: [ChannelLatencyMode] -> Value
$ctoJSONList :: [ChannelLatencyMode] -> Value
toEncoding :: ChannelLatencyMode -> Encoding
$ctoEncoding :: ChannelLatencyMode -> Encoding
toJSON :: ChannelLatencyMode -> Value
$ctoJSON :: ChannelLatencyMode -> Value
Core.ToJSON,
ToJSONKeyFunction [ChannelLatencyMode]
ToJSONKeyFunction ChannelLatencyMode
ToJSONKeyFunction ChannelLatencyMode
-> ToJSONKeyFunction [ChannelLatencyMode]
-> ToJSONKey ChannelLatencyMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ChannelLatencyMode]
$ctoJSONKeyList :: ToJSONKeyFunction [ChannelLatencyMode]
toJSONKey :: ToJSONKeyFunction ChannelLatencyMode
$ctoJSONKey :: ToJSONKeyFunction ChannelLatencyMode
Core.ToJSONKey,
[Node] -> Either String ChannelLatencyMode
([Node] -> Either String ChannelLatencyMode)
-> FromXML ChannelLatencyMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ChannelLatencyMode
$cparseXML :: [Node] -> Either String ChannelLatencyMode
Core.FromXML,
ChannelLatencyMode -> XML
(ChannelLatencyMode -> XML) -> ToXML ChannelLatencyMode
forall a. (a -> XML) -> ToXML a
toXML :: ChannelLatencyMode -> XML
$ctoXML :: ChannelLatencyMode -> XML
Core.ToXML
)
pattern ChannelLatencyMode_LOW :: ChannelLatencyMode
pattern $bChannelLatencyMode_LOW :: ChannelLatencyMode
$mChannelLatencyMode_LOW :: forall r. ChannelLatencyMode -> (Void# -> r) -> (Void# -> r) -> r
ChannelLatencyMode_LOW = ChannelLatencyMode' "LOW"
pattern ChannelLatencyMode_NORMAL :: ChannelLatencyMode
pattern $bChannelLatencyMode_NORMAL :: ChannelLatencyMode
$mChannelLatencyMode_NORMAL :: forall r. ChannelLatencyMode -> (Void# -> r) -> (Void# -> r) -> r
ChannelLatencyMode_NORMAL = ChannelLatencyMode' "NORMAL"
{-# COMPLETE
ChannelLatencyMode_LOW,
ChannelLatencyMode_NORMAL,
ChannelLatencyMode'
#-}