{-# 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.H264ParControl
-- 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.H264ParControl
  ( H264ParControl
      ( ..,
        H264ParControl_INITIALIZE_FROM_SOURCE,
        H264ParControl_SPECIFIED
      ),
  )
where

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

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

pattern H264ParControl_INITIALIZE_FROM_SOURCE :: H264ParControl
pattern $bH264ParControl_INITIALIZE_FROM_SOURCE :: H264ParControl
$mH264ParControl_INITIALIZE_FROM_SOURCE :: forall {r}. H264ParControl -> ((# #) -> r) -> ((# #) -> r) -> r
H264ParControl_INITIALIZE_FROM_SOURCE = H264ParControl' "INITIALIZE_FROM_SOURCE"

pattern H264ParControl_SPECIFIED :: H264ParControl
pattern $bH264ParControl_SPECIFIED :: H264ParControl
$mH264ParControl_SPECIFIED :: forall {r}. H264ParControl -> ((# #) -> r) -> ((# #) -> r) -> r
H264ParControl_SPECIFIED = H264ParControl' "SPECIFIED"

{-# COMPLETE
  H264ParControl_INITIALIZE_FROM_SOURCE,
  H264ParControl_SPECIFIED,
  H264ParControl'
  #-}