{-# 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.H264FramerateControl
-- 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.H264FramerateControl
  ( H264FramerateControl
      ( ..,
        H264FramerateControl_INITIALIZE_FROM_SOURCE,
        H264FramerateControl_SPECIFIED
      ),
  )
where

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

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

pattern H264FramerateControl_INITIALIZE_FROM_SOURCE :: H264FramerateControl
pattern $bH264FramerateControl_INITIALIZE_FROM_SOURCE :: H264FramerateControl
$mH264FramerateControl_INITIALIZE_FROM_SOURCE :: forall r. H264FramerateControl -> (Void# -> r) -> (Void# -> r) -> r
H264FramerateControl_INITIALIZE_FROM_SOURCE = H264FramerateControl' "INITIALIZE_FROM_SOURCE"

pattern H264FramerateControl_SPECIFIED :: H264FramerateControl
pattern $bH264FramerateControl_SPECIFIED :: H264FramerateControl
$mH264FramerateControl_SPECIFIED :: forall r. H264FramerateControl -> (Void# -> r) -> (Void# -> r) -> r
H264FramerateControl_SPECIFIED = H264FramerateControl' "SPECIFIED"

{-# COMPLETE
  H264FramerateControl_INITIALIZE_FROM_SOURCE,
  H264FramerateControl_SPECIFIED,
  H264FramerateControl'
  #-}