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

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

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

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

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

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

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