{-# 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.Av1RateControlMode
-- 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.Av1RateControlMode
  ( Av1RateControlMode
      ( ..,
        Av1RateControlMode_QVBR
      ),
  )
where

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

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

pattern Av1RateControlMode_QVBR :: Av1RateControlMode
pattern $bAv1RateControlMode_QVBR :: Av1RateControlMode
$mAv1RateControlMode_QVBR :: forall r. Av1RateControlMode -> (Void# -> r) -> (Void# -> r) -> r
Av1RateControlMode_QVBR = Av1RateControlMode' "QVBR"

{-# COMPLETE
  Av1RateControlMode_QVBR,
  Av1RateControlMode'
  #-}