{-# 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.H265AdaptiveQuantization
-- 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.H265AdaptiveQuantization
  ( H265AdaptiveQuantization
      ( ..,
        H265AdaptiveQuantization_AUTO,
        H265AdaptiveQuantization_HIGH,
        H265AdaptiveQuantization_HIGHER,
        H265AdaptiveQuantization_LOW,
        H265AdaptiveQuantization_MAX,
        H265AdaptiveQuantization_MEDIUM,
        H265AdaptiveQuantization_OFF
      ),
  )
where

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

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

pattern H265AdaptiveQuantization_AUTO :: H265AdaptiveQuantization
pattern $bH265AdaptiveQuantization_AUTO :: H265AdaptiveQuantization
$mH265AdaptiveQuantization_AUTO :: forall {r}.
H265AdaptiveQuantization -> ((# #) -> r) -> ((# #) -> r) -> r
H265AdaptiveQuantization_AUTO = H265AdaptiveQuantization' "AUTO"

pattern H265AdaptiveQuantization_HIGH :: H265AdaptiveQuantization
pattern $bH265AdaptiveQuantization_HIGH :: H265AdaptiveQuantization
$mH265AdaptiveQuantization_HIGH :: forall {r}.
H265AdaptiveQuantization -> ((# #) -> r) -> ((# #) -> r) -> r
H265AdaptiveQuantization_HIGH = H265AdaptiveQuantization' "HIGH"

pattern H265AdaptiveQuantization_HIGHER :: H265AdaptiveQuantization
pattern $bH265AdaptiveQuantization_HIGHER :: H265AdaptiveQuantization
$mH265AdaptiveQuantization_HIGHER :: forall {r}.
H265AdaptiveQuantization -> ((# #) -> r) -> ((# #) -> r) -> r
H265AdaptiveQuantization_HIGHER = H265AdaptiveQuantization' "HIGHER"

pattern H265AdaptiveQuantization_LOW :: H265AdaptiveQuantization
pattern $bH265AdaptiveQuantization_LOW :: H265AdaptiveQuantization
$mH265AdaptiveQuantization_LOW :: forall {r}.
H265AdaptiveQuantization -> ((# #) -> r) -> ((# #) -> r) -> r
H265AdaptiveQuantization_LOW = H265AdaptiveQuantization' "LOW"

pattern H265AdaptiveQuantization_MAX :: H265AdaptiveQuantization
pattern $bH265AdaptiveQuantization_MAX :: H265AdaptiveQuantization
$mH265AdaptiveQuantization_MAX :: forall {r}.
H265AdaptiveQuantization -> ((# #) -> r) -> ((# #) -> r) -> r
H265AdaptiveQuantization_MAX = H265AdaptiveQuantization' "MAX"

pattern H265AdaptiveQuantization_MEDIUM :: H265AdaptiveQuantization
pattern $bH265AdaptiveQuantization_MEDIUM :: H265AdaptiveQuantization
$mH265AdaptiveQuantization_MEDIUM :: forall {r}.
H265AdaptiveQuantization -> ((# #) -> r) -> ((# #) -> r) -> r
H265AdaptiveQuantization_MEDIUM = H265AdaptiveQuantization' "MEDIUM"

pattern H265AdaptiveQuantization_OFF :: H265AdaptiveQuantization
pattern $bH265AdaptiveQuantization_OFF :: H265AdaptiveQuantization
$mH265AdaptiveQuantization_OFF :: forall {r}.
H265AdaptiveQuantization -> ((# #) -> r) -> ((# #) -> r) -> r
H265AdaptiveQuantization_OFF = H265AdaptiveQuantization' "OFF"

{-# COMPLETE
  H265AdaptiveQuantization_AUTO,
  H265AdaptiveQuantization_HIGH,
  H265AdaptiveQuantization_HIGHER,
  H265AdaptiveQuantization_LOW,
  H265AdaptiveQuantization_MAX,
  H265AdaptiveQuantization_MEDIUM,
  H265AdaptiveQuantization_OFF,
  H265AdaptiveQuantization'
  #-}