{-# 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.H264SubGopLength
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaLive.Types.H264SubGopLength
  ( H264SubGopLength
      ( ..,
        H264SubGopLength_DYNAMIC,
        H264SubGopLength_FIXED
      ),
  )
where

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

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

pattern H264SubGopLength_DYNAMIC :: H264SubGopLength
pattern $bH264SubGopLength_DYNAMIC :: H264SubGopLength
$mH264SubGopLength_DYNAMIC :: forall r. H264SubGopLength -> (Void# -> r) -> (Void# -> r) -> r
H264SubGopLength_DYNAMIC = H264SubGopLength' "DYNAMIC"

pattern H264SubGopLength_FIXED :: H264SubGopLength
pattern $bH264SubGopLength_FIXED :: H264SubGopLength
$mH264SubGopLength_FIXED :: forall r. H264SubGopLength -> (Void# -> r) -> (Void# -> r) -> r
H264SubGopLength_FIXED = H264SubGopLength' "FIXED"

{-# COMPLETE
  H264SubGopLength_DYNAMIC,
  H264SubGopLength_FIXED,
  H264SubGopLength'
  #-}