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