{-# 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.Vp9RateControlMode
-- 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.MediaConvert.Types.Vp9RateControlMode
  ( Vp9RateControlMode
      ( ..,
        Vp9RateControlMode_VBR
      ),
  )
where

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

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

pattern Vp9RateControlMode_VBR :: Vp9RateControlMode
pattern $bVp9RateControlMode_VBR :: Vp9RateControlMode
$mVp9RateControlMode_VBR :: forall {r}. Vp9RateControlMode -> ((# #) -> r) -> ((# #) -> r) -> r
Vp9RateControlMode_VBR = Vp9RateControlMode' "VBR"

{-# COMPLETE
  Vp9RateControlMode_VBR,
  Vp9RateControlMode'
  #-}