{-# 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.H264GopSizeUnits
-- 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.H264GopSizeUnits
  ( H264GopSizeUnits
      ( ..,
        H264GopSizeUnits_FRAMES,
        H264GopSizeUnits_SECONDS
      ),
  )
where

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

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

pattern H264GopSizeUnits_FRAMES :: H264GopSizeUnits
pattern $bH264GopSizeUnits_FRAMES :: H264GopSizeUnits
$mH264GopSizeUnits_FRAMES :: forall {r}. H264GopSizeUnits -> ((# #) -> r) -> ((# #) -> r) -> r
H264GopSizeUnits_FRAMES = H264GopSizeUnits' "FRAMES"

pattern H264GopSizeUnits_SECONDS :: H264GopSizeUnits
pattern $bH264GopSizeUnits_SECONDS :: H264GopSizeUnits
$mH264GopSizeUnits_SECONDS :: forall {r}. H264GopSizeUnits -> ((# #) -> r) -> ((# #) -> r) -> r
H264GopSizeUnits_SECONDS = H264GopSizeUnits' "SECONDS"

{-# COMPLETE
  H264GopSizeUnits_FRAMES,
  H264GopSizeUnits_SECONDS,
  H264GopSizeUnits'
  #-}