{-# 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.Mpeg2AdaptiveQuantization
-- 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.Mpeg2AdaptiveQuantization
  ( Mpeg2AdaptiveQuantization
      ( ..,
        Mpeg2AdaptiveQuantization_AUTO,
        Mpeg2AdaptiveQuantization_HIGH,
        Mpeg2AdaptiveQuantization_LOW,
        Mpeg2AdaptiveQuantization_MEDIUM,
        Mpeg2AdaptiveQuantization_OFF
      ),
  )
where

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

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

pattern Mpeg2AdaptiveQuantization_AUTO :: Mpeg2AdaptiveQuantization
pattern $bMpeg2AdaptiveQuantization_AUTO :: Mpeg2AdaptiveQuantization
$mMpeg2AdaptiveQuantization_AUTO :: forall {r}.
Mpeg2AdaptiveQuantization -> ((# #) -> r) -> ((# #) -> r) -> r
Mpeg2AdaptiveQuantization_AUTO = Mpeg2AdaptiveQuantization' "AUTO"

pattern Mpeg2AdaptiveQuantization_HIGH :: Mpeg2AdaptiveQuantization
pattern $bMpeg2AdaptiveQuantization_HIGH :: Mpeg2AdaptiveQuantization
$mMpeg2AdaptiveQuantization_HIGH :: forall {r}.
Mpeg2AdaptiveQuantization -> ((# #) -> r) -> ((# #) -> r) -> r
Mpeg2AdaptiveQuantization_HIGH = Mpeg2AdaptiveQuantization' "HIGH"

pattern Mpeg2AdaptiveQuantization_LOW :: Mpeg2AdaptiveQuantization
pattern $bMpeg2AdaptiveQuantization_LOW :: Mpeg2AdaptiveQuantization
$mMpeg2AdaptiveQuantization_LOW :: forall {r}.
Mpeg2AdaptiveQuantization -> ((# #) -> r) -> ((# #) -> r) -> r
Mpeg2AdaptiveQuantization_LOW = Mpeg2AdaptiveQuantization' "LOW"

pattern Mpeg2AdaptiveQuantization_MEDIUM :: Mpeg2AdaptiveQuantization
pattern $bMpeg2AdaptiveQuantization_MEDIUM :: Mpeg2AdaptiveQuantization
$mMpeg2AdaptiveQuantization_MEDIUM :: forall {r}.
Mpeg2AdaptiveQuantization -> ((# #) -> r) -> ((# #) -> r) -> r
Mpeg2AdaptiveQuantization_MEDIUM = Mpeg2AdaptiveQuantization' "MEDIUM"

pattern Mpeg2AdaptiveQuantization_OFF :: Mpeg2AdaptiveQuantization
pattern $bMpeg2AdaptiveQuantization_OFF :: Mpeg2AdaptiveQuantization
$mMpeg2AdaptiveQuantization_OFF :: forall {r}.
Mpeg2AdaptiveQuantization -> ((# #) -> r) -> ((# #) -> r) -> r
Mpeg2AdaptiveQuantization_OFF = Mpeg2AdaptiveQuantization' "OFF"

{-# COMPLETE
  Mpeg2AdaptiveQuantization_AUTO,
  Mpeg2AdaptiveQuantization_HIGH,
  Mpeg2AdaptiveQuantization_LOW,
  Mpeg2AdaptiveQuantization_MEDIUM,
  Mpeg2AdaptiveQuantization_OFF,
  Mpeg2AdaptiveQuantization'
  #-}