{-# 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.MediaConvert.Types.Mpeg2QualityTuningLevel
-- 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.MediaConvert.Types.Mpeg2QualityTuningLevel
  ( Mpeg2QualityTuningLevel
      ( ..,
        Mpeg2QualityTuningLevel_MULTI_PASS,
        Mpeg2QualityTuningLevel_SINGLE_PASS
      ),
  )
where

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

-- | Optional. Use Quality tuning level (qualityTuningLevel) to choose how
-- you want to trade off encoding speed for output video quality. The
-- default behavior is faster, lower quality, single-pass encoding.
newtype Mpeg2QualityTuningLevel = Mpeg2QualityTuningLevel'
  { Mpeg2QualityTuningLevel -> Text
fromMpeg2QualityTuningLevel ::
      Core.Text
  }
  deriving stock
    ( Int -> Mpeg2QualityTuningLevel -> ShowS
[Mpeg2QualityTuningLevel] -> ShowS
Mpeg2QualityTuningLevel -> String
(Int -> Mpeg2QualityTuningLevel -> ShowS)
-> (Mpeg2QualityTuningLevel -> String)
-> ([Mpeg2QualityTuningLevel] -> ShowS)
-> Show Mpeg2QualityTuningLevel
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Mpeg2QualityTuningLevel] -> ShowS
$cshowList :: [Mpeg2QualityTuningLevel] -> ShowS
show :: Mpeg2QualityTuningLevel -> String
$cshow :: Mpeg2QualityTuningLevel -> String
showsPrec :: Int -> Mpeg2QualityTuningLevel -> ShowS
$cshowsPrec :: Int -> Mpeg2QualityTuningLevel -> ShowS
Prelude.Show,
      ReadPrec [Mpeg2QualityTuningLevel]
ReadPrec Mpeg2QualityTuningLevel
Int -> ReadS Mpeg2QualityTuningLevel
ReadS [Mpeg2QualityTuningLevel]
(Int -> ReadS Mpeg2QualityTuningLevel)
-> ReadS [Mpeg2QualityTuningLevel]
-> ReadPrec Mpeg2QualityTuningLevel
-> ReadPrec [Mpeg2QualityTuningLevel]
-> Read Mpeg2QualityTuningLevel
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Mpeg2QualityTuningLevel]
$creadListPrec :: ReadPrec [Mpeg2QualityTuningLevel]
readPrec :: ReadPrec Mpeg2QualityTuningLevel
$creadPrec :: ReadPrec Mpeg2QualityTuningLevel
readList :: ReadS [Mpeg2QualityTuningLevel]
$creadList :: ReadS [Mpeg2QualityTuningLevel]
readsPrec :: Int -> ReadS Mpeg2QualityTuningLevel
$creadsPrec :: Int -> ReadS Mpeg2QualityTuningLevel
Prelude.Read,
      Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel -> Bool
(Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel -> Bool)
-> (Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel -> Bool)
-> Eq Mpeg2QualityTuningLevel
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel -> Bool
$c/= :: Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel -> Bool
== :: Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel -> Bool
$c== :: Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel -> Bool
Prelude.Eq,
      Eq Mpeg2QualityTuningLevel
Eq Mpeg2QualityTuningLevel
-> (Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel -> Ordering)
-> (Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel -> Bool)
-> (Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel -> Bool)
-> (Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel -> Bool)
-> (Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel -> Bool)
-> (Mpeg2QualityTuningLevel
    -> Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel)
-> (Mpeg2QualityTuningLevel
    -> Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel)
-> Ord Mpeg2QualityTuningLevel
Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel -> Bool
Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel -> Ordering
Mpeg2QualityTuningLevel
-> Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel
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 :: Mpeg2QualityTuningLevel
-> Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel
$cmin :: Mpeg2QualityTuningLevel
-> Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel
max :: Mpeg2QualityTuningLevel
-> Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel
$cmax :: Mpeg2QualityTuningLevel
-> Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel
>= :: Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel -> Bool
$c>= :: Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel -> Bool
> :: Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel -> Bool
$c> :: Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel -> Bool
<= :: Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel -> Bool
$c<= :: Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel -> Bool
< :: Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel -> Bool
$c< :: Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel -> Bool
compare :: Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel -> Ordering
$ccompare :: Mpeg2QualityTuningLevel -> Mpeg2QualityTuningLevel -> Ordering
$cp1Ord :: Eq Mpeg2QualityTuningLevel
Prelude.Ord,
      (forall x.
 Mpeg2QualityTuningLevel -> Rep Mpeg2QualityTuningLevel x)
-> (forall x.
    Rep Mpeg2QualityTuningLevel x -> Mpeg2QualityTuningLevel)
-> Generic Mpeg2QualityTuningLevel
forall x. Rep Mpeg2QualityTuningLevel x -> Mpeg2QualityTuningLevel
forall x. Mpeg2QualityTuningLevel -> Rep Mpeg2QualityTuningLevel x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Mpeg2QualityTuningLevel x -> Mpeg2QualityTuningLevel
$cfrom :: forall x. Mpeg2QualityTuningLevel -> Rep Mpeg2QualityTuningLevel x
Prelude.Generic
    )
  deriving newtype
    ( Int -> Mpeg2QualityTuningLevel -> Int
Mpeg2QualityTuningLevel -> Int
(Int -> Mpeg2QualityTuningLevel -> Int)
-> (Mpeg2QualityTuningLevel -> Int)
-> Hashable Mpeg2QualityTuningLevel
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Mpeg2QualityTuningLevel -> Int
$chash :: Mpeg2QualityTuningLevel -> Int
hashWithSalt :: Int -> Mpeg2QualityTuningLevel -> Int
$chashWithSalt :: Int -> Mpeg2QualityTuningLevel -> Int
Prelude.Hashable,
      Mpeg2QualityTuningLevel -> ()
(Mpeg2QualityTuningLevel -> ()) -> NFData Mpeg2QualityTuningLevel
forall a. (a -> ()) -> NFData a
rnf :: Mpeg2QualityTuningLevel -> ()
$crnf :: Mpeg2QualityTuningLevel -> ()
Prelude.NFData,
      Text -> Either String Mpeg2QualityTuningLevel
(Text -> Either String Mpeg2QualityTuningLevel)
-> FromText Mpeg2QualityTuningLevel
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Mpeg2QualityTuningLevel
$cfromText :: Text -> Either String Mpeg2QualityTuningLevel
Core.FromText,
      Mpeg2QualityTuningLevel -> Text
(Mpeg2QualityTuningLevel -> Text) -> ToText Mpeg2QualityTuningLevel
forall a. (a -> Text) -> ToText a
toText :: Mpeg2QualityTuningLevel -> Text
$ctoText :: Mpeg2QualityTuningLevel -> Text
Core.ToText,
      Mpeg2QualityTuningLevel -> ByteString
(Mpeg2QualityTuningLevel -> ByteString)
-> ToByteString Mpeg2QualityTuningLevel
forall a. (a -> ByteString) -> ToByteString a
toBS :: Mpeg2QualityTuningLevel -> ByteString
$ctoBS :: Mpeg2QualityTuningLevel -> ByteString
Core.ToByteString,
      Mpeg2QualityTuningLevel -> ByteStringBuilder
(Mpeg2QualityTuningLevel -> ByteStringBuilder)
-> ToLog Mpeg2QualityTuningLevel
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Mpeg2QualityTuningLevel -> ByteStringBuilder
$cbuild :: Mpeg2QualityTuningLevel -> ByteStringBuilder
Core.ToLog,
      HeaderName -> Mpeg2QualityTuningLevel -> [Header]
(HeaderName -> Mpeg2QualityTuningLevel -> [Header])
-> ToHeader Mpeg2QualityTuningLevel
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Mpeg2QualityTuningLevel -> [Header]
$ctoHeader :: HeaderName -> Mpeg2QualityTuningLevel -> [Header]
Core.ToHeader,
      Mpeg2QualityTuningLevel -> QueryString
(Mpeg2QualityTuningLevel -> QueryString)
-> ToQuery Mpeg2QualityTuningLevel
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Mpeg2QualityTuningLevel -> QueryString
$ctoQuery :: Mpeg2QualityTuningLevel -> QueryString
Core.ToQuery,
      Value -> Parser [Mpeg2QualityTuningLevel]
Value -> Parser Mpeg2QualityTuningLevel
(Value -> Parser Mpeg2QualityTuningLevel)
-> (Value -> Parser [Mpeg2QualityTuningLevel])
-> FromJSON Mpeg2QualityTuningLevel
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Mpeg2QualityTuningLevel]
$cparseJSONList :: Value -> Parser [Mpeg2QualityTuningLevel]
parseJSON :: Value -> Parser Mpeg2QualityTuningLevel
$cparseJSON :: Value -> Parser Mpeg2QualityTuningLevel
Core.FromJSON,
      FromJSONKeyFunction [Mpeg2QualityTuningLevel]
FromJSONKeyFunction Mpeg2QualityTuningLevel
FromJSONKeyFunction Mpeg2QualityTuningLevel
-> FromJSONKeyFunction [Mpeg2QualityTuningLevel]
-> FromJSONKey Mpeg2QualityTuningLevel
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Mpeg2QualityTuningLevel]
$cfromJSONKeyList :: FromJSONKeyFunction [Mpeg2QualityTuningLevel]
fromJSONKey :: FromJSONKeyFunction Mpeg2QualityTuningLevel
$cfromJSONKey :: FromJSONKeyFunction Mpeg2QualityTuningLevel
Core.FromJSONKey,
      [Mpeg2QualityTuningLevel] -> Encoding
[Mpeg2QualityTuningLevel] -> Value
Mpeg2QualityTuningLevel -> Encoding
Mpeg2QualityTuningLevel -> Value
(Mpeg2QualityTuningLevel -> Value)
-> (Mpeg2QualityTuningLevel -> Encoding)
-> ([Mpeg2QualityTuningLevel] -> Value)
-> ([Mpeg2QualityTuningLevel] -> Encoding)
-> ToJSON Mpeg2QualityTuningLevel
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Mpeg2QualityTuningLevel] -> Encoding
$ctoEncodingList :: [Mpeg2QualityTuningLevel] -> Encoding
toJSONList :: [Mpeg2QualityTuningLevel] -> Value
$ctoJSONList :: [Mpeg2QualityTuningLevel] -> Value
toEncoding :: Mpeg2QualityTuningLevel -> Encoding
$ctoEncoding :: Mpeg2QualityTuningLevel -> Encoding
toJSON :: Mpeg2QualityTuningLevel -> Value
$ctoJSON :: Mpeg2QualityTuningLevel -> Value
Core.ToJSON,
      ToJSONKeyFunction [Mpeg2QualityTuningLevel]
ToJSONKeyFunction Mpeg2QualityTuningLevel
ToJSONKeyFunction Mpeg2QualityTuningLevel
-> ToJSONKeyFunction [Mpeg2QualityTuningLevel]
-> ToJSONKey Mpeg2QualityTuningLevel
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Mpeg2QualityTuningLevel]
$ctoJSONKeyList :: ToJSONKeyFunction [Mpeg2QualityTuningLevel]
toJSONKey :: ToJSONKeyFunction Mpeg2QualityTuningLevel
$ctoJSONKey :: ToJSONKeyFunction Mpeg2QualityTuningLevel
Core.ToJSONKey,
      [Node] -> Either String Mpeg2QualityTuningLevel
([Node] -> Either String Mpeg2QualityTuningLevel)
-> FromXML Mpeg2QualityTuningLevel
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Mpeg2QualityTuningLevel
$cparseXML :: [Node] -> Either String Mpeg2QualityTuningLevel
Core.FromXML,
      Mpeg2QualityTuningLevel -> XML
(Mpeg2QualityTuningLevel -> XML) -> ToXML Mpeg2QualityTuningLevel
forall a. (a -> XML) -> ToXML a
toXML :: Mpeg2QualityTuningLevel -> XML
$ctoXML :: Mpeg2QualityTuningLevel -> XML
Core.ToXML
    )

pattern Mpeg2QualityTuningLevel_MULTI_PASS :: Mpeg2QualityTuningLevel
pattern $bMpeg2QualityTuningLevel_MULTI_PASS :: Mpeg2QualityTuningLevel
$mMpeg2QualityTuningLevel_MULTI_PASS :: forall r.
Mpeg2QualityTuningLevel -> (Void# -> r) -> (Void# -> r) -> r
Mpeg2QualityTuningLevel_MULTI_PASS = Mpeg2QualityTuningLevel' "MULTI_PASS"

pattern Mpeg2QualityTuningLevel_SINGLE_PASS :: Mpeg2QualityTuningLevel
pattern $bMpeg2QualityTuningLevel_SINGLE_PASS :: Mpeg2QualityTuningLevel
$mMpeg2QualityTuningLevel_SINGLE_PASS :: forall r.
Mpeg2QualityTuningLevel -> (Void# -> r) -> (Void# -> r) -> r
Mpeg2QualityTuningLevel_SINGLE_PASS = Mpeg2QualityTuningLevel' "SINGLE_PASS"

{-# COMPLETE
  Mpeg2QualityTuningLevel_MULTI_PASS,
  Mpeg2QualityTuningLevel_SINGLE_PASS,
  Mpeg2QualityTuningLevel'
  #-}