{-# 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.H264AdaptiveQuantization
-- 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.H264AdaptiveQuantization
  ( H264AdaptiveQuantization
      ( ..,
        H264AdaptiveQuantization_AUTO,
        H264AdaptiveQuantization_HIGH,
        H264AdaptiveQuantization_HIGHER,
        H264AdaptiveQuantization_LOW,
        H264AdaptiveQuantization_MAX,
        H264AdaptiveQuantization_MEDIUM,
        H264AdaptiveQuantization_OFF
      ),
  )
where

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

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

pattern H264AdaptiveQuantization_AUTO :: H264AdaptiveQuantization
pattern $bH264AdaptiveQuantization_AUTO :: H264AdaptiveQuantization
$mH264AdaptiveQuantization_AUTO :: forall {r}.
H264AdaptiveQuantization -> ((# #) -> r) -> ((# #) -> r) -> r
H264AdaptiveQuantization_AUTO = H264AdaptiveQuantization' "AUTO"

pattern H264AdaptiveQuantization_HIGH :: H264AdaptiveQuantization
pattern $bH264AdaptiveQuantization_HIGH :: H264AdaptiveQuantization
$mH264AdaptiveQuantization_HIGH :: forall {r}.
H264AdaptiveQuantization -> ((# #) -> r) -> ((# #) -> r) -> r
H264AdaptiveQuantization_HIGH = H264AdaptiveQuantization' "HIGH"

pattern H264AdaptiveQuantization_HIGHER :: H264AdaptiveQuantization
pattern $bH264AdaptiveQuantization_HIGHER :: H264AdaptiveQuantization
$mH264AdaptiveQuantization_HIGHER :: forall {r}.
H264AdaptiveQuantization -> ((# #) -> r) -> ((# #) -> r) -> r
H264AdaptiveQuantization_HIGHER = H264AdaptiveQuantization' "HIGHER"

pattern H264AdaptiveQuantization_LOW :: H264AdaptiveQuantization
pattern $bH264AdaptiveQuantization_LOW :: H264AdaptiveQuantization
$mH264AdaptiveQuantization_LOW :: forall {r}.
H264AdaptiveQuantization -> ((# #) -> r) -> ((# #) -> r) -> r
H264AdaptiveQuantization_LOW = H264AdaptiveQuantization' "LOW"

pattern H264AdaptiveQuantization_MAX :: H264AdaptiveQuantization
pattern $bH264AdaptiveQuantization_MAX :: H264AdaptiveQuantization
$mH264AdaptiveQuantization_MAX :: forall {r}.
H264AdaptiveQuantization -> ((# #) -> r) -> ((# #) -> r) -> r
H264AdaptiveQuantization_MAX = H264AdaptiveQuantization' "MAX"

pattern H264AdaptiveQuantization_MEDIUM :: H264AdaptiveQuantization
pattern $bH264AdaptiveQuantization_MEDIUM :: H264AdaptiveQuantization
$mH264AdaptiveQuantization_MEDIUM :: forall {r}.
H264AdaptiveQuantization -> ((# #) -> r) -> ((# #) -> r) -> r
H264AdaptiveQuantization_MEDIUM = H264AdaptiveQuantization' "MEDIUM"

pattern H264AdaptiveQuantization_OFF :: H264AdaptiveQuantization
pattern $bH264AdaptiveQuantization_OFF :: H264AdaptiveQuantization
$mH264AdaptiveQuantization_OFF :: forall {r}.
H264AdaptiveQuantization -> ((# #) -> r) -> ((# #) -> r) -> r
H264AdaptiveQuantization_OFF = H264AdaptiveQuantization' "OFF"

{-# COMPLETE
  H264AdaptiveQuantization_AUTO,
  H264AdaptiveQuantization_HIGH,
  H264AdaptiveQuantization_HIGHER,
  H264AdaptiveQuantization_LOW,
  H264AdaptiveQuantization_MAX,
  H264AdaptiveQuantization_MEDIUM,
  H264AdaptiveQuantization_OFF,
  H264AdaptiveQuantization'
  #-}