{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.MediaLive.Types.Mpeg2SubGopLength
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaLive.Types.Mpeg2SubGopLength
  ( Mpeg2SubGopLength
      ( ..,
        Mpeg2SubGopLength_DYNAMIC,
        Mpeg2SubGopLength_FIXED
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | Mpeg2 Sub Gop Length
newtype Mpeg2SubGopLength = Mpeg2SubGopLength'
  { Mpeg2SubGopLength -> Text
fromMpeg2SubGopLength ::
      Data.Text
  }
  deriving stock
    ( Int -> Mpeg2SubGopLength -> ShowS
[Mpeg2SubGopLength] -> ShowS
Mpeg2SubGopLength -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq Mpeg2SubGopLength
Int -> Mpeg2SubGopLength -> Int
Mpeg2SubGopLength -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: Mpeg2SubGopLength -> ()
$crnf :: Mpeg2SubGopLength -> ()
Prelude.NFData,
      Text -> Either String Mpeg2SubGopLength
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Mpeg2SubGopLength
$cfromText :: Text -> Either String Mpeg2SubGopLength
Data.FromText,
      Mpeg2SubGopLength -> Text
forall a. (a -> Text) -> ToText a
toText :: Mpeg2SubGopLength -> Text
$ctoText :: Mpeg2SubGopLength -> Text
Data.ToText,
      Mpeg2SubGopLength -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: Mpeg2SubGopLength -> ByteString
$ctoBS :: Mpeg2SubGopLength -> ByteString
Data.ToByteString,
      Mpeg2SubGopLength -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Mpeg2SubGopLength -> ByteStringBuilder
$cbuild :: Mpeg2SubGopLength -> ByteStringBuilder
Data.ToLog,
      HeaderName -> Mpeg2SubGopLength -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Mpeg2SubGopLength -> [Header]
$ctoHeader :: HeaderName -> Mpeg2SubGopLength -> [Header]
Data.ToHeader,
      Mpeg2SubGopLength -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Mpeg2SubGopLength -> QueryString
$ctoQuery :: Mpeg2SubGopLength -> QueryString
Data.ToQuery,
      Value -> Parser [Mpeg2SubGopLength]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [Mpeg2SubGopLength]
FromJSONKeyFunction Mpeg2SubGopLength
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Mpeg2SubGopLength]
$cfromJSONKeyList :: FromJSONKeyFunction [Mpeg2SubGopLength]
fromJSONKey :: FromJSONKeyFunction Mpeg2SubGopLength
$cfromJSONKey :: FromJSONKeyFunction Mpeg2SubGopLength
Data.FromJSONKey,
      [Mpeg2SubGopLength] -> Encoding
[Mpeg2SubGopLength] -> Value
Mpeg2SubGopLength -> Encoding
Mpeg2SubGopLength -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [Mpeg2SubGopLength]
ToJSONKeyFunction Mpeg2SubGopLength
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Mpeg2SubGopLength]
$ctoJSONKeyList :: ToJSONKeyFunction [Mpeg2SubGopLength]
toJSONKey :: ToJSONKeyFunction Mpeg2SubGopLength
$ctoJSONKey :: ToJSONKeyFunction Mpeg2SubGopLength
Data.ToJSONKey,
      [Node] -> Either String Mpeg2SubGopLength
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Mpeg2SubGopLength
$cparseXML :: [Node] -> Either String Mpeg2SubGopLength
Data.FromXML,
      Mpeg2SubGopLength -> XML
forall a. (a -> XML) -> ToXML a
toXML :: Mpeg2SubGopLength -> XML
$ctoXML :: Mpeg2SubGopLength -> XML
Data.ToXML
    )

pattern Mpeg2SubGopLength_DYNAMIC :: Mpeg2SubGopLength
pattern $bMpeg2SubGopLength_DYNAMIC :: Mpeg2SubGopLength
$mMpeg2SubGopLength_DYNAMIC :: forall {r}. Mpeg2SubGopLength -> ((# #) -> r) -> ((# #) -> r) -> r
Mpeg2SubGopLength_DYNAMIC = Mpeg2SubGopLength' "DYNAMIC"

pattern Mpeg2SubGopLength_FIXED :: Mpeg2SubGopLength
pattern $bMpeg2SubGopLength_FIXED :: Mpeg2SubGopLength
$mMpeg2SubGopLength_FIXED :: forall {r}. Mpeg2SubGopLength -> ((# #) -> r) -> ((# #) -> r) -> r
Mpeg2SubGopLength_FIXED = Mpeg2SubGopLength' "FIXED"

{-# COMPLETE
  Mpeg2SubGopLength_DYNAMIC,
  Mpeg2SubGopLength_FIXED,
  Mpeg2SubGopLength'
  #-}