{-# 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.Xavc4kProfileBitrateClass
-- 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.Xavc4kProfileBitrateClass
  ( Xavc4kProfileBitrateClass
      ( ..,
        Xavc4kProfileBitrateClass_BITRATE_CLASS_100,
        Xavc4kProfileBitrateClass_BITRATE_CLASS_140,
        Xavc4kProfileBitrateClass_BITRATE_CLASS_200
      ),
  )
where

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

-- | Specify the XAVC 4k (Long GOP) Bitrate Class to set the bitrate of your
-- output. Outputs of the same class have similar image quality over the
-- operating points that are valid for that class.
newtype Xavc4kProfileBitrateClass = Xavc4kProfileBitrateClass'
  { Xavc4kProfileBitrateClass -> Text
fromXavc4kProfileBitrateClass ::
      Core.Text
  }
  deriving stock
    ( Int -> Xavc4kProfileBitrateClass -> ShowS
[Xavc4kProfileBitrateClass] -> ShowS
Xavc4kProfileBitrateClass -> String
(Int -> Xavc4kProfileBitrateClass -> ShowS)
-> (Xavc4kProfileBitrateClass -> String)
-> ([Xavc4kProfileBitrateClass] -> ShowS)
-> Show Xavc4kProfileBitrateClass
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Xavc4kProfileBitrateClass] -> ShowS
$cshowList :: [Xavc4kProfileBitrateClass] -> ShowS
show :: Xavc4kProfileBitrateClass -> String
$cshow :: Xavc4kProfileBitrateClass -> String
showsPrec :: Int -> Xavc4kProfileBitrateClass -> ShowS
$cshowsPrec :: Int -> Xavc4kProfileBitrateClass -> ShowS
Prelude.Show,
      ReadPrec [Xavc4kProfileBitrateClass]
ReadPrec Xavc4kProfileBitrateClass
Int -> ReadS Xavc4kProfileBitrateClass
ReadS [Xavc4kProfileBitrateClass]
(Int -> ReadS Xavc4kProfileBitrateClass)
-> ReadS [Xavc4kProfileBitrateClass]
-> ReadPrec Xavc4kProfileBitrateClass
-> ReadPrec [Xavc4kProfileBitrateClass]
-> Read Xavc4kProfileBitrateClass
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Xavc4kProfileBitrateClass]
$creadListPrec :: ReadPrec [Xavc4kProfileBitrateClass]
readPrec :: ReadPrec Xavc4kProfileBitrateClass
$creadPrec :: ReadPrec Xavc4kProfileBitrateClass
readList :: ReadS [Xavc4kProfileBitrateClass]
$creadList :: ReadS [Xavc4kProfileBitrateClass]
readsPrec :: Int -> ReadS Xavc4kProfileBitrateClass
$creadsPrec :: Int -> ReadS Xavc4kProfileBitrateClass
Prelude.Read,
      Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass -> Bool
(Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass -> Bool)
-> (Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass -> Bool)
-> Eq Xavc4kProfileBitrateClass
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass -> Bool
$c/= :: Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass -> Bool
== :: Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass -> Bool
$c== :: Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass -> Bool
Prelude.Eq,
      Eq Xavc4kProfileBitrateClass
Eq Xavc4kProfileBitrateClass
-> (Xavc4kProfileBitrateClass
    -> Xavc4kProfileBitrateClass -> Ordering)
-> (Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass -> Bool)
-> (Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass -> Bool)
-> (Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass -> Bool)
-> (Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass -> Bool)
-> (Xavc4kProfileBitrateClass
    -> Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass)
-> (Xavc4kProfileBitrateClass
    -> Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass)
-> Ord Xavc4kProfileBitrateClass
Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass -> Bool
Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass -> Ordering
Xavc4kProfileBitrateClass
-> Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass
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 :: Xavc4kProfileBitrateClass
-> Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass
$cmin :: Xavc4kProfileBitrateClass
-> Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass
max :: Xavc4kProfileBitrateClass
-> Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass
$cmax :: Xavc4kProfileBitrateClass
-> Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass
>= :: Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass -> Bool
$c>= :: Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass -> Bool
> :: Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass -> Bool
$c> :: Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass -> Bool
<= :: Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass -> Bool
$c<= :: Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass -> Bool
< :: Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass -> Bool
$c< :: Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass -> Bool
compare :: Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass -> Ordering
$ccompare :: Xavc4kProfileBitrateClass -> Xavc4kProfileBitrateClass -> Ordering
$cp1Ord :: Eq Xavc4kProfileBitrateClass
Prelude.Ord,
      (forall x.
 Xavc4kProfileBitrateClass -> Rep Xavc4kProfileBitrateClass x)
-> (forall x.
    Rep Xavc4kProfileBitrateClass x -> Xavc4kProfileBitrateClass)
-> Generic Xavc4kProfileBitrateClass
forall x.
Rep Xavc4kProfileBitrateClass x -> Xavc4kProfileBitrateClass
forall x.
Xavc4kProfileBitrateClass -> Rep Xavc4kProfileBitrateClass x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep Xavc4kProfileBitrateClass x -> Xavc4kProfileBitrateClass
$cfrom :: forall x.
Xavc4kProfileBitrateClass -> Rep Xavc4kProfileBitrateClass x
Prelude.Generic
    )
  deriving newtype
    ( Int -> Xavc4kProfileBitrateClass -> Int
Xavc4kProfileBitrateClass -> Int
(Int -> Xavc4kProfileBitrateClass -> Int)
-> (Xavc4kProfileBitrateClass -> Int)
-> Hashable Xavc4kProfileBitrateClass
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Xavc4kProfileBitrateClass -> Int
$chash :: Xavc4kProfileBitrateClass -> Int
hashWithSalt :: Int -> Xavc4kProfileBitrateClass -> Int
$chashWithSalt :: Int -> Xavc4kProfileBitrateClass -> Int
Prelude.Hashable,
      Xavc4kProfileBitrateClass -> ()
(Xavc4kProfileBitrateClass -> ())
-> NFData Xavc4kProfileBitrateClass
forall a. (a -> ()) -> NFData a
rnf :: Xavc4kProfileBitrateClass -> ()
$crnf :: Xavc4kProfileBitrateClass -> ()
Prelude.NFData,
      Text -> Either String Xavc4kProfileBitrateClass
(Text -> Either String Xavc4kProfileBitrateClass)
-> FromText Xavc4kProfileBitrateClass
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Xavc4kProfileBitrateClass
$cfromText :: Text -> Either String Xavc4kProfileBitrateClass
Core.FromText,
      Xavc4kProfileBitrateClass -> Text
(Xavc4kProfileBitrateClass -> Text)
-> ToText Xavc4kProfileBitrateClass
forall a. (a -> Text) -> ToText a
toText :: Xavc4kProfileBitrateClass -> Text
$ctoText :: Xavc4kProfileBitrateClass -> Text
Core.ToText,
      Xavc4kProfileBitrateClass -> ByteString
(Xavc4kProfileBitrateClass -> ByteString)
-> ToByteString Xavc4kProfileBitrateClass
forall a. (a -> ByteString) -> ToByteString a
toBS :: Xavc4kProfileBitrateClass -> ByteString
$ctoBS :: Xavc4kProfileBitrateClass -> ByteString
Core.ToByteString,
      Xavc4kProfileBitrateClass -> ByteStringBuilder
(Xavc4kProfileBitrateClass -> ByteStringBuilder)
-> ToLog Xavc4kProfileBitrateClass
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Xavc4kProfileBitrateClass -> ByteStringBuilder
$cbuild :: Xavc4kProfileBitrateClass -> ByteStringBuilder
Core.ToLog,
      HeaderName -> Xavc4kProfileBitrateClass -> [Header]
(HeaderName -> Xavc4kProfileBitrateClass -> [Header])
-> ToHeader Xavc4kProfileBitrateClass
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Xavc4kProfileBitrateClass -> [Header]
$ctoHeader :: HeaderName -> Xavc4kProfileBitrateClass -> [Header]
Core.ToHeader,
      Xavc4kProfileBitrateClass -> QueryString
(Xavc4kProfileBitrateClass -> QueryString)
-> ToQuery Xavc4kProfileBitrateClass
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Xavc4kProfileBitrateClass -> QueryString
$ctoQuery :: Xavc4kProfileBitrateClass -> QueryString
Core.ToQuery,
      Value -> Parser [Xavc4kProfileBitrateClass]
Value -> Parser Xavc4kProfileBitrateClass
(Value -> Parser Xavc4kProfileBitrateClass)
-> (Value -> Parser [Xavc4kProfileBitrateClass])
-> FromJSON Xavc4kProfileBitrateClass
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Xavc4kProfileBitrateClass]
$cparseJSONList :: Value -> Parser [Xavc4kProfileBitrateClass]
parseJSON :: Value -> Parser Xavc4kProfileBitrateClass
$cparseJSON :: Value -> Parser Xavc4kProfileBitrateClass
Core.FromJSON,
      FromJSONKeyFunction [Xavc4kProfileBitrateClass]
FromJSONKeyFunction Xavc4kProfileBitrateClass
FromJSONKeyFunction Xavc4kProfileBitrateClass
-> FromJSONKeyFunction [Xavc4kProfileBitrateClass]
-> FromJSONKey Xavc4kProfileBitrateClass
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Xavc4kProfileBitrateClass]
$cfromJSONKeyList :: FromJSONKeyFunction [Xavc4kProfileBitrateClass]
fromJSONKey :: FromJSONKeyFunction Xavc4kProfileBitrateClass
$cfromJSONKey :: FromJSONKeyFunction Xavc4kProfileBitrateClass
Core.FromJSONKey,
      [Xavc4kProfileBitrateClass] -> Encoding
[Xavc4kProfileBitrateClass] -> Value
Xavc4kProfileBitrateClass -> Encoding
Xavc4kProfileBitrateClass -> Value
(Xavc4kProfileBitrateClass -> Value)
-> (Xavc4kProfileBitrateClass -> Encoding)
-> ([Xavc4kProfileBitrateClass] -> Value)
-> ([Xavc4kProfileBitrateClass] -> Encoding)
-> ToJSON Xavc4kProfileBitrateClass
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Xavc4kProfileBitrateClass] -> Encoding
$ctoEncodingList :: [Xavc4kProfileBitrateClass] -> Encoding
toJSONList :: [Xavc4kProfileBitrateClass] -> Value
$ctoJSONList :: [Xavc4kProfileBitrateClass] -> Value
toEncoding :: Xavc4kProfileBitrateClass -> Encoding
$ctoEncoding :: Xavc4kProfileBitrateClass -> Encoding
toJSON :: Xavc4kProfileBitrateClass -> Value
$ctoJSON :: Xavc4kProfileBitrateClass -> Value
Core.ToJSON,
      ToJSONKeyFunction [Xavc4kProfileBitrateClass]
ToJSONKeyFunction Xavc4kProfileBitrateClass
ToJSONKeyFunction Xavc4kProfileBitrateClass
-> ToJSONKeyFunction [Xavc4kProfileBitrateClass]
-> ToJSONKey Xavc4kProfileBitrateClass
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Xavc4kProfileBitrateClass]
$ctoJSONKeyList :: ToJSONKeyFunction [Xavc4kProfileBitrateClass]
toJSONKey :: ToJSONKeyFunction Xavc4kProfileBitrateClass
$ctoJSONKey :: ToJSONKeyFunction Xavc4kProfileBitrateClass
Core.ToJSONKey,
      [Node] -> Either String Xavc4kProfileBitrateClass
([Node] -> Either String Xavc4kProfileBitrateClass)
-> FromXML Xavc4kProfileBitrateClass
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Xavc4kProfileBitrateClass
$cparseXML :: [Node] -> Either String Xavc4kProfileBitrateClass
Core.FromXML,
      Xavc4kProfileBitrateClass -> XML
(Xavc4kProfileBitrateClass -> XML)
-> ToXML Xavc4kProfileBitrateClass
forall a. (a -> XML) -> ToXML a
toXML :: Xavc4kProfileBitrateClass -> XML
$ctoXML :: Xavc4kProfileBitrateClass -> XML
Core.ToXML
    )

pattern Xavc4kProfileBitrateClass_BITRATE_CLASS_100 :: Xavc4kProfileBitrateClass
pattern $bXavc4kProfileBitrateClass_BITRATE_CLASS_100 :: Xavc4kProfileBitrateClass
$mXavc4kProfileBitrateClass_BITRATE_CLASS_100 :: forall r.
Xavc4kProfileBitrateClass -> (Void# -> r) -> (Void# -> r) -> r
Xavc4kProfileBitrateClass_BITRATE_CLASS_100 = Xavc4kProfileBitrateClass' "BITRATE_CLASS_100"

pattern Xavc4kProfileBitrateClass_BITRATE_CLASS_140 :: Xavc4kProfileBitrateClass
pattern $bXavc4kProfileBitrateClass_BITRATE_CLASS_140 :: Xavc4kProfileBitrateClass
$mXavc4kProfileBitrateClass_BITRATE_CLASS_140 :: forall r.
Xavc4kProfileBitrateClass -> (Void# -> r) -> (Void# -> r) -> r
Xavc4kProfileBitrateClass_BITRATE_CLASS_140 = Xavc4kProfileBitrateClass' "BITRATE_CLASS_140"

pattern Xavc4kProfileBitrateClass_BITRATE_CLASS_200 :: Xavc4kProfileBitrateClass
pattern $bXavc4kProfileBitrateClass_BITRATE_CLASS_200 :: Xavc4kProfileBitrateClass
$mXavc4kProfileBitrateClass_BITRATE_CLASS_200 :: forall r.
Xavc4kProfileBitrateClass -> (Void# -> r) -> (Void# -> r) -> r
Xavc4kProfileBitrateClass_BITRATE_CLASS_200 = Xavc4kProfileBitrateClass' "BITRATE_CLASS_200"

{-# COMPLETE
  Xavc4kProfileBitrateClass_BITRATE_CLASS_100,
  Xavc4kProfileBitrateClass_BITRATE_CLASS_140,
  Xavc4kProfileBitrateClass_BITRATE_CLASS_200,
  Xavc4kProfileBitrateClass'
  #-}