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