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

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

-- | H264 Look Ahead Rate Control
newtype H264LookAheadRateControl = H264LookAheadRateControl'
  { H264LookAheadRateControl -> Text
fromH264LookAheadRateControl ::
      Core.Text
  }
  deriving stock
    ( Int -> H264LookAheadRateControl -> ShowS
[H264LookAheadRateControl] -> ShowS
H264LookAheadRateControl -> String
(Int -> H264LookAheadRateControl -> ShowS)
-> (H264LookAheadRateControl -> String)
-> ([H264LookAheadRateControl] -> ShowS)
-> Show H264LookAheadRateControl
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]
(Int -> ReadS H264LookAheadRateControl)
-> ReadS [H264LookAheadRateControl]
-> ReadPrec H264LookAheadRateControl
-> ReadPrec [H264LookAheadRateControl]
-> Read 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
(H264LookAheadRateControl -> H264LookAheadRateControl -> Bool)
-> (H264LookAheadRateControl -> H264LookAheadRateControl -> Bool)
-> Eq H264LookAheadRateControl
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
Eq H264LookAheadRateControl
-> (H264LookAheadRateControl
    -> H264LookAheadRateControl -> Ordering)
-> (H264LookAheadRateControl -> H264LookAheadRateControl -> Bool)
-> (H264LookAheadRateControl -> H264LookAheadRateControl -> Bool)
-> (H264LookAheadRateControl -> H264LookAheadRateControl -> Bool)
-> (H264LookAheadRateControl -> H264LookAheadRateControl -> Bool)
-> (H264LookAheadRateControl
    -> H264LookAheadRateControl -> H264LookAheadRateControl)
-> (H264LookAheadRateControl
    -> H264LookAheadRateControl -> H264LookAheadRateControl)
-> Ord 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
$cp1Ord :: Eq H264LookAheadRateControl
Prelude.Ord,
      (forall x.
 H264LookAheadRateControl -> Rep H264LookAheadRateControl x)
-> (forall x.
    Rep H264LookAheadRateControl x -> H264LookAheadRateControl)
-> Generic H264LookAheadRateControl
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
    ( Int -> H264LookAheadRateControl -> Int
H264LookAheadRateControl -> Int
(Int -> H264LookAheadRateControl -> Int)
-> (H264LookAheadRateControl -> Int)
-> Hashable H264LookAheadRateControl
forall 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 -> ()
(H264LookAheadRateControl -> ()) -> NFData H264LookAheadRateControl
forall a. (a -> ()) -> NFData a
rnf :: H264LookAheadRateControl -> ()
$crnf :: H264LookAheadRateControl -> ()
Prelude.NFData,
      Text -> Either String H264LookAheadRateControl
(Text -> Either String H264LookAheadRateControl)
-> FromText H264LookAheadRateControl
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String H264LookAheadRateControl
$cfromText :: Text -> Either String H264LookAheadRateControl
Core.FromText,
      H264LookAheadRateControl -> Text
(H264LookAheadRateControl -> Text)
-> ToText H264LookAheadRateControl
forall a. (a -> Text) -> ToText a
toText :: H264LookAheadRateControl -> Text
$ctoText :: H264LookAheadRateControl -> Text
Core.ToText,
      H264LookAheadRateControl -> ByteString
(H264LookAheadRateControl -> ByteString)
-> ToByteString H264LookAheadRateControl
forall a. (a -> ByteString) -> ToByteString a
toBS :: H264LookAheadRateControl -> ByteString
$ctoBS :: H264LookAheadRateControl -> ByteString
Core.ToByteString,
      H264LookAheadRateControl -> ByteStringBuilder
(H264LookAheadRateControl -> ByteStringBuilder)
-> ToLog H264LookAheadRateControl
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: H264LookAheadRateControl -> ByteStringBuilder
$cbuild :: H264LookAheadRateControl -> ByteStringBuilder
Core.ToLog,
      HeaderName -> H264LookAheadRateControl -> [Header]
(HeaderName -> H264LookAheadRateControl -> [Header])
-> ToHeader H264LookAheadRateControl
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> H264LookAheadRateControl -> [Header]
$ctoHeader :: HeaderName -> H264LookAheadRateControl -> [Header]
Core.ToHeader,
      H264LookAheadRateControl -> QueryString
(H264LookAheadRateControl -> QueryString)
-> ToQuery H264LookAheadRateControl
forall a. (a -> QueryString) -> ToQuery a
toQuery :: H264LookAheadRateControl -> QueryString
$ctoQuery :: H264LookAheadRateControl -> QueryString
Core.ToQuery,
      Value -> Parser [H264LookAheadRateControl]
Value -> Parser H264LookAheadRateControl
(Value -> Parser H264LookAheadRateControl)
-> (Value -> Parser [H264LookAheadRateControl])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [H264LookAheadRateControl]
FromJSONKeyFunction H264LookAheadRateControl
FromJSONKeyFunction H264LookAheadRateControl
-> FromJSONKeyFunction [H264LookAheadRateControl]
-> FromJSONKey H264LookAheadRateControl
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [H264LookAheadRateControl]
$cfromJSONKeyList :: FromJSONKeyFunction [H264LookAheadRateControl]
fromJSONKey :: FromJSONKeyFunction H264LookAheadRateControl
$cfromJSONKey :: FromJSONKeyFunction H264LookAheadRateControl
Core.FromJSONKey,
      [H264LookAheadRateControl] -> Encoding
[H264LookAheadRateControl] -> Value
H264LookAheadRateControl -> Encoding
H264LookAheadRateControl -> Value
(H264LookAheadRateControl -> Value)
-> (H264LookAheadRateControl -> Encoding)
-> ([H264LookAheadRateControl] -> Value)
-> ([H264LookAheadRateControl] -> Encoding)
-> ToJSON H264LookAheadRateControl
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
Core.ToJSON,
      ToJSONKeyFunction [H264LookAheadRateControl]
ToJSONKeyFunction H264LookAheadRateControl
ToJSONKeyFunction H264LookAheadRateControl
-> ToJSONKeyFunction [H264LookAheadRateControl]
-> ToJSONKey H264LookAheadRateControl
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [H264LookAheadRateControl]
$ctoJSONKeyList :: ToJSONKeyFunction [H264LookAheadRateControl]
toJSONKey :: ToJSONKeyFunction H264LookAheadRateControl
$ctoJSONKey :: ToJSONKeyFunction H264LookAheadRateControl
Core.ToJSONKey,
      [Node] -> Either String H264LookAheadRateControl
([Node] -> Either String H264LookAheadRateControl)
-> FromXML H264LookAheadRateControl
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String H264LookAheadRateControl
$cparseXML :: [Node] -> Either String H264LookAheadRateControl
Core.FromXML,
      H264LookAheadRateControl -> XML
(H264LookAheadRateControl -> XML) -> ToXML H264LookAheadRateControl
forall a. (a -> XML) -> ToXML a
toXML :: H264LookAheadRateControl -> XML
$ctoXML :: H264LookAheadRateControl -> XML
Core.ToXML
    )

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

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

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

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