{-# 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.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype Mpeg2GopSizeUnits = Mpeg2GopSizeUnits'
{ Mpeg2GopSizeUnits -> Text
fromMpeg2GopSizeUnits ::
Data.Text
}
deriving stock
( Int -> Mpeg2GopSizeUnits -> ShowS
[Mpeg2GopSizeUnits] -> ShowS
Mpeg2GopSizeUnits -> String
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]
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
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
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
Prelude.Ord,
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
( Eq Mpeg2GopSizeUnits
Int -> Mpeg2GopSizeUnits -> Int
Mpeg2GopSizeUnits -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: Mpeg2GopSizeUnits -> ()
$crnf :: Mpeg2GopSizeUnits -> ()
Prelude.NFData,
Text -> Either String Mpeg2GopSizeUnits
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Mpeg2GopSizeUnits
$cfromText :: Text -> Either String Mpeg2GopSizeUnits
Data.FromText,
Mpeg2GopSizeUnits -> Text
forall a. (a -> Text) -> ToText a
toText :: Mpeg2GopSizeUnits -> Text
$ctoText :: Mpeg2GopSizeUnits -> Text
Data.ToText,
Mpeg2GopSizeUnits -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: Mpeg2GopSizeUnits -> ByteString
$ctoBS :: Mpeg2GopSizeUnits -> ByteString
Data.ToByteString,
Mpeg2GopSizeUnits -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Mpeg2GopSizeUnits -> ByteStringBuilder
$cbuild :: Mpeg2GopSizeUnits -> ByteStringBuilder
Data.ToLog,
HeaderName -> Mpeg2GopSizeUnits -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Mpeg2GopSizeUnits -> [Header]
$ctoHeader :: HeaderName -> Mpeg2GopSizeUnits -> [Header]
Data.ToHeader,
Mpeg2GopSizeUnits -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Mpeg2GopSizeUnits -> QueryString
$ctoQuery :: Mpeg2GopSizeUnits -> QueryString
Data.ToQuery,
Value -> Parser [Mpeg2GopSizeUnits]
Value -> Parser 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
Data.FromJSON,
FromJSONKeyFunction [Mpeg2GopSizeUnits]
FromJSONKeyFunction Mpeg2GopSizeUnits
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Mpeg2GopSizeUnits]
$cfromJSONKeyList :: FromJSONKeyFunction [Mpeg2GopSizeUnits]
fromJSONKey :: FromJSONKeyFunction Mpeg2GopSizeUnits
$cfromJSONKey :: FromJSONKeyFunction Mpeg2GopSizeUnits
Data.FromJSONKey,
[Mpeg2GopSizeUnits] -> Encoding
[Mpeg2GopSizeUnits] -> Value
Mpeg2GopSizeUnits -> Encoding
Mpeg2GopSizeUnits -> Value
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
Data.ToJSON,
ToJSONKeyFunction [Mpeg2GopSizeUnits]
ToJSONKeyFunction Mpeg2GopSizeUnits
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Mpeg2GopSizeUnits]
$ctoJSONKeyList :: ToJSONKeyFunction [Mpeg2GopSizeUnits]
toJSONKey :: ToJSONKeyFunction Mpeg2GopSizeUnits
$ctoJSONKey :: ToJSONKeyFunction Mpeg2GopSizeUnits
Data.ToJSONKey,
[Node] -> Either String Mpeg2GopSizeUnits
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Mpeg2GopSizeUnits
$cparseXML :: [Node] -> Either String Mpeg2GopSizeUnits
Data.FromXML,
Mpeg2GopSizeUnits -> XML
forall a. (a -> XML) -> ToXML a
toXML :: Mpeg2GopSizeUnits -> XML
$ctoXML :: Mpeg2GopSizeUnits -> XML
Data.ToXML
)
pattern Mpeg2GopSizeUnits_FRAMES :: Mpeg2GopSizeUnits
pattern $bMpeg2GopSizeUnits_FRAMES :: Mpeg2GopSizeUnits
$mMpeg2GopSizeUnits_FRAMES :: forall {r}. Mpeg2GopSizeUnits -> ((# #) -> r) -> ((# #) -> r) -> r
Mpeg2GopSizeUnits_FRAMES = Mpeg2GopSizeUnits' "FRAMES"
pattern Mpeg2GopSizeUnits_SECONDS :: Mpeg2GopSizeUnits
pattern $bMpeg2GopSizeUnits_SECONDS :: Mpeg2GopSizeUnits
$mMpeg2GopSizeUnits_SECONDS :: forall {r}. Mpeg2GopSizeUnits -> ((# #) -> r) -> ((# #) -> r) -> r
Mpeg2GopSizeUnits_SECONDS = Mpeg2GopSizeUnits' "SECONDS"
{-# COMPLETE
Mpeg2GopSizeUnits_FRAMES,
Mpeg2GopSizeUnits_SECONDS,
Mpeg2GopSizeUnits'
#-}