{-# 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.H264LookAheadRateControl
-- 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.H264LookAheadRateControl
  ( H264LookAheadRateControl
      ( ..,
        H264LookAheadRateControl_HIGH,
        H264LookAheadRateControl_LOW,
        H264LookAheadRateControl_MEDIUM
      ),
  )
where

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

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

pattern H264LookAheadRateControl_HIGH :: H264LookAheadRateControl
pattern $bH264LookAheadRateControl_HIGH :: H264LookAheadRateControl
$mH264LookAheadRateControl_HIGH :: forall {r}.
H264LookAheadRateControl -> ((# #) -> r) -> ((# #) -> r) -> r
H264LookAheadRateControl_HIGH = H264LookAheadRateControl' "HIGH"

pattern H264LookAheadRateControl_LOW :: H264LookAheadRateControl
pattern $bH264LookAheadRateControl_LOW :: H264LookAheadRateControl
$mH264LookAheadRateControl_LOW :: forall {r}.
H264LookAheadRateControl -> ((# #) -> r) -> ((# #) -> r) -> r
H264LookAheadRateControl_LOW = H264LookAheadRateControl' "LOW"

pattern H264LookAheadRateControl_MEDIUM :: H264LookAheadRateControl
pattern $bH264LookAheadRateControl_MEDIUM :: H264LookAheadRateControl
$mH264LookAheadRateControl_MEDIUM :: forall {r}.
H264LookAheadRateControl -> ((# #) -> r) -> ((# #) -> r) -> r
H264LookAheadRateControl_MEDIUM = H264LookAheadRateControl' "MEDIUM"

{-# COMPLETE
  H264LookAheadRateControl_HIGH,
  H264LookAheadRateControl_LOW,
  H264LookAheadRateControl_MEDIUM,
  H264LookAheadRateControl'
  #-}