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