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