{-# 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.H265LookAheadRateControl
-- 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.H265LookAheadRateControl
  ( H265LookAheadRateControl
      ( ..,
        H265LookAheadRateControl_HIGH,
        H265LookAheadRateControl_LOW,
        H265LookAheadRateControl_MEDIUM
      ),
  )
where

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

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

pattern H265LookAheadRateControl_HIGH :: H265LookAheadRateControl
pattern $bH265LookAheadRateControl_HIGH :: H265LookAheadRateControl
$mH265LookAheadRateControl_HIGH :: forall {r}.
H265LookAheadRateControl -> ((# #) -> r) -> ((# #) -> r) -> r
H265LookAheadRateControl_HIGH = H265LookAheadRateControl' "HIGH"

pattern H265LookAheadRateControl_LOW :: H265LookAheadRateControl
pattern $bH265LookAheadRateControl_LOW :: H265LookAheadRateControl
$mH265LookAheadRateControl_LOW :: forall {r}.
H265LookAheadRateControl -> ((# #) -> r) -> ((# #) -> r) -> r
H265LookAheadRateControl_LOW = H265LookAheadRateControl' "LOW"

pattern H265LookAheadRateControl_MEDIUM :: H265LookAheadRateControl
pattern $bH265LookAheadRateControl_MEDIUM :: H265LookAheadRateControl
$mH265LookAheadRateControl_MEDIUM :: forall {r}.
H265LookAheadRateControl -> ((# #) -> r) -> ((# #) -> r) -> r
H265LookAheadRateControl_MEDIUM = H265LookAheadRateControl' "MEDIUM"

{-# COMPLETE
  H265LookAheadRateControl_HIGH,
  H265LookAheadRateControl_LOW,
  H265LookAheadRateControl_MEDIUM,
  H265LookAheadRateControl'
  #-}