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

import qualified Amazonka.Core as Core
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 ::
      Core.Text
  }
  deriving stock
    ( Int -> Vp9RateControlMode -> ShowS
[Vp9RateControlMode] -> ShowS
Vp9RateControlMode -> String
(Int -> Vp9RateControlMode -> ShowS)
-> (Vp9RateControlMode -> String)
-> ([Vp9RateControlMode] -> ShowS)
-> Show Vp9RateControlMode
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]
(Int -> ReadS Vp9RateControlMode)
-> ReadS [Vp9RateControlMode]
-> ReadPrec Vp9RateControlMode
-> ReadPrec [Vp9RateControlMode]
-> Read 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
(Vp9RateControlMode -> Vp9RateControlMode -> Bool)
-> (Vp9RateControlMode -> Vp9RateControlMode -> Bool)
-> Eq Vp9RateControlMode
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
Eq Vp9RateControlMode
-> (Vp9RateControlMode -> Vp9RateControlMode -> Ordering)
-> (Vp9RateControlMode -> Vp9RateControlMode -> Bool)
-> (Vp9RateControlMode -> Vp9RateControlMode -> Bool)
-> (Vp9RateControlMode -> Vp9RateControlMode -> Bool)
-> (Vp9RateControlMode -> Vp9RateControlMode -> Bool)
-> (Vp9RateControlMode -> Vp9RateControlMode -> Vp9RateControlMode)
-> (Vp9RateControlMode -> Vp9RateControlMode -> Vp9RateControlMode)
-> Ord 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
$cp1Ord :: Eq Vp9RateControlMode
Prelude.Ord,
      (forall x. Vp9RateControlMode -> Rep Vp9RateControlMode x)
-> (forall x. Rep Vp9RateControlMode x -> Vp9RateControlMode)
-> Generic Vp9RateControlMode
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
    ( Int -> Vp9RateControlMode -> Int
Vp9RateControlMode -> Int
(Int -> Vp9RateControlMode -> Int)
-> (Vp9RateControlMode -> Int) -> Hashable Vp9RateControlMode
forall 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 -> ()
(Vp9RateControlMode -> ()) -> NFData Vp9RateControlMode
forall a. (a -> ()) -> NFData a
rnf :: Vp9RateControlMode -> ()
$crnf :: Vp9RateControlMode -> ()
Prelude.NFData,
      Text -> Either String Vp9RateControlMode
(Text -> Either String Vp9RateControlMode)
-> FromText Vp9RateControlMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Vp9RateControlMode
$cfromText :: Text -> Either String Vp9RateControlMode
Core.FromText,
      Vp9RateControlMode -> Text
(Vp9RateControlMode -> Text) -> ToText Vp9RateControlMode
forall a. (a -> Text) -> ToText a
toText :: Vp9RateControlMode -> Text
$ctoText :: Vp9RateControlMode -> Text
Core.ToText,
      Vp9RateControlMode -> ByteString
(Vp9RateControlMode -> ByteString)
-> ToByteString Vp9RateControlMode
forall a. (a -> ByteString) -> ToByteString a
toBS :: Vp9RateControlMode -> ByteString
$ctoBS :: Vp9RateControlMode -> ByteString
Core.ToByteString,
      Vp9RateControlMode -> ByteStringBuilder
(Vp9RateControlMode -> ByteStringBuilder)
-> ToLog Vp9RateControlMode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Vp9RateControlMode -> ByteStringBuilder
$cbuild :: Vp9RateControlMode -> ByteStringBuilder
Core.ToLog,
      HeaderName -> Vp9RateControlMode -> [Header]
(HeaderName -> Vp9RateControlMode -> [Header])
-> ToHeader Vp9RateControlMode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Vp9RateControlMode -> [Header]
$ctoHeader :: HeaderName -> Vp9RateControlMode -> [Header]
Core.ToHeader,
      Vp9RateControlMode -> QueryString
(Vp9RateControlMode -> QueryString) -> ToQuery Vp9RateControlMode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Vp9RateControlMode -> QueryString
$ctoQuery :: Vp9RateControlMode -> QueryString
Core.ToQuery,
      Value -> Parser [Vp9RateControlMode]
Value -> Parser Vp9RateControlMode
(Value -> Parser Vp9RateControlMode)
-> (Value -> Parser [Vp9RateControlMode])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [Vp9RateControlMode]
FromJSONKeyFunction Vp9RateControlMode
FromJSONKeyFunction Vp9RateControlMode
-> FromJSONKeyFunction [Vp9RateControlMode]
-> FromJSONKey Vp9RateControlMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Vp9RateControlMode]
$cfromJSONKeyList :: FromJSONKeyFunction [Vp9RateControlMode]
fromJSONKey :: FromJSONKeyFunction Vp9RateControlMode
$cfromJSONKey :: FromJSONKeyFunction Vp9RateControlMode
Core.FromJSONKey,
      [Vp9RateControlMode] -> Encoding
[Vp9RateControlMode] -> Value
Vp9RateControlMode -> Encoding
Vp9RateControlMode -> Value
(Vp9RateControlMode -> Value)
-> (Vp9RateControlMode -> Encoding)
-> ([Vp9RateControlMode] -> Value)
-> ([Vp9RateControlMode] -> Encoding)
-> ToJSON Vp9RateControlMode
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
Core.ToJSON,
      ToJSONKeyFunction [Vp9RateControlMode]
ToJSONKeyFunction Vp9RateControlMode
ToJSONKeyFunction Vp9RateControlMode
-> ToJSONKeyFunction [Vp9RateControlMode]
-> ToJSONKey Vp9RateControlMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Vp9RateControlMode]
$ctoJSONKeyList :: ToJSONKeyFunction [Vp9RateControlMode]
toJSONKey :: ToJSONKeyFunction Vp9RateControlMode
$ctoJSONKey :: ToJSONKeyFunction Vp9RateControlMode
Core.ToJSONKey,
      [Node] -> Either String Vp9RateControlMode
([Node] -> Either String Vp9RateControlMode)
-> FromXML Vp9RateControlMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Vp9RateControlMode
$cparseXML :: [Node] -> Either String Vp9RateControlMode
Core.FromXML,
      Vp9RateControlMode -> XML
(Vp9RateControlMode -> XML) -> ToXML Vp9RateControlMode
forall a. (a -> XML) -> ToXML a
toXML :: Vp9RateControlMode -> XML
$ctoXML :: Vp9RateControlMode -> XML
Core.ToXML
    )

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

{-# COMPLETE
  Vp9RateControlMode_VBR,
  Vp9RateControlMode'
  #-}