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

pattern H265QualityTuningLevel_MULTI_PASS_HQ :: H265QualityTuningLevel
pattern $bH265QualityTuningLevel_MULTI_PASS_HQ :: H265QualityTuningLevel
$mH265QualityTuningLevel_MULTI_PASS_HQ :: forall r.
H265QualityTuningLevel -> (Void# -> r) -> (Void# -> r) -> r
H265QualityTuningLevel_MULTI_PASS_HQ = H265QualityTuningLevel' "MULTI_PASS_HQ"

pattern H265QualityTuningLevel_SINGLE_PASS :: H265QualityTuningLevel
pattern $bH265QualityTuningLevel_SINGLE_PASS :: H265QualityTuningLevel
$mH265QualityTuningLevel_SINGLE_PASS :: forall r.
H265QualityTuningLevel -> (Void# -> r) -> (Void# -> r) -> r
H265QualityTuningLevel_SINGLE_PASS = H265QualityTuningLevel' "SINGLE_PASS"

pattern H265QualityTuningLevel_SINGLE_PASS_HQ :: H265QualityTuningLevel
pattern $bH265QualityTuningLevel_SINGLE_PASS_HQ :: H265QualityTuningLevel
$mH265QualityTuningLevel_SINGLE_PASS_HQ :: forall r.
H265QualityTuningLevel -> (Void# -> r) -> (Void# -> r) -> r
H265QualityTuningLevel_SINGLE_PASS_HQ = H265QualityTuningLevel' "SINGLE_PASS_HQ"

{-# COMPLETE
  H265QualityTuningLevel_MULTI_PASS_HQ,
  H265QualityTuningLevel_SINGLE_PASS,
  H265QualityTuningLevel_SINGLE_PASS_HQ,
  H265QualityTuningLevel'
  #-}