{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MediaConvert.Types.Mp3RateControlMode
( Mp3RateControlMode
( ..,
Mp3RateControlMode_CBR,
Mp3RateControlMode_VBR
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype Mp3RateControlMode = Mp3RateControlMode'
{ Mp3RateControlMode -> Text
fromMp3RateControlMode ::
Core.Text
}
deriving stock
( Int -> Mp3RateControlMode -> ShowS
[Mp3RateControlMode] -> ShowS
Mp3RateControlMode -> String
(Int -> Mp3RateControlMode -> ShowS)
-> (Mp3RateControlMode -> String)
-> ([Mp3RateControlMode] -> ShowS)
-> Show Mp3RateControlMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Mp3RateControlMode] -> ShowS
$cshowList :: [Mp3RateControlMode] -> ShowS
show :: Mp3RateControlMode -> String
$cshow :: Mp3RateControlMode -> String
showsPrec :: Int -> Mp3RateControlMode -> ShowS
$cshowsPrec :: Int -> Mp3RateControlMode -> ShowS
Prelude.Show,
ReadPrec [Mp3RateControlMode]
ReadPrec Mp3RateControlMode
Int -> ReadS Mp3RateControlMode
ReadS [Mp3RateControlMode]
(Int -> ReadS Mp3RateControlMode)
-> ReadS [Mp3RateControlMode]
-> ReadPrec Mp3RateControlMode
-> ReadPrec [Mp3RateControlMode]
-> Read Mp3RateControlMode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Mp3RateControlMode]
$creadListPrec :: ReadPrec [Mp3RateControlMode]
readPrec :: ReadPrec Mp3RateControlMode
$creadPrec :: ReadPrec Mp3RateControlMode
readList :: ReadS [Mp3RateControlMode]
$creadList :: ReadS [Mp3RateControlMode]
readsPrec :: Int -> ReadS Mp3RateControlMode
$creadsPrec :: Int -> ReadS Mp3RateControlMode
Prelude.Read,
Mp3RateControlMode -> Mp3RateControlMode -> Bool
(Mp3RateControlMode -> Mp3RateControlMode -> Bool)
-> (Mp3RateControlMode -> Mp3RateControlMode -> Bool)
-> Eq Mp3RateControlMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Mp3RateControlMode -> Mp3RateControlMode -> Bool
$c/= :: Mp3RateControlMode -> Mp3RateControlMode -> Bool
== :: Mp3RateControlMode -> Mp3RateControlMode -> Bool
$c== :: Mp3RateControlMode -> Mp3RateControlMode -> Bool
Prelude.Eq,
Eq Mp3RateControlMode
Eq Mp3RateControlMode
-> (Mp3RateControlMode -> Mp3RateControlMode -> Ordering)
-> (Mp3RateControlMode -> Mp3RateControlMode -> Bool)
-> (Mp3RateControlMode -> Mp3RateControlMode -> Bool)
-> (Mp3RateControlMode -> Mp3RateControlMode -> Bool)
-> (Mp3RateControlMode -> Mp3RateControlMode -> Bool)
-> (Mp3RateControlMode -> Mp3RateControlMode -> Mp3RateControlMode)
-> (Mp3RateControlMode -> Mp3RateControlMode -> Mp3RateControlMode)
-> Ord Mp3RateControlMode
Mp3RateControlMode -> Mp3RateControlMode -> Bool
Mp3RateControlMode -> Mp3RateControlMode -> Ordering
Mp3RateControlMode -> Mp3RateControlMode -> Mp3RateControlMode
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 :: Mp3RateControlMode -> Mp3RateControlMode -> Mp3RateControlMode
$cmin :: Mp3RateControlMode -> Mp3RateControlMode -> Mp3RateControlMode
max :: Mp3RateControlMode -> Mp3RateControlMode -> Mp3RateControlMode
$cmax :: Mp3RateControlMode -> Mp3RateControlMode -> Mp3RateControlMode
>= :: Mp3RateControlMode -> Mp3RateControlMode -> Bool
$c>= :: Mp3RateControlMode -> Mp3RateControlMode -> Bool
> :: Mp3RateControlMode -> Mp3RateControlMode -> Bool
$c> :: Mp3RateControlMode -> Mp3RateControlMode -> Bool
<= :: Mp3RateControlMode -> Mp3RateControlMode -> Bool
$c<= :: Mp3RateControlMode -> Mp3RateControlMode -> Bool
< :: Mp3RateControlMode -> Mp3RateControlMode -> Bool
$c< :: Mp3RateControlMode -> Mp3RateControlMode -> Bool
compare :: Mp3RateControlMode -> Mp3RateControlMode -> Ordering
$ccompare :: Mp3RateControlMode -> Mp3RateControlMode -> Ordering
$cp1Ord :: Eq Mp3RateControlMode
Prelude.Ord,
(forall x. Mp3RateControlMode -> Rep Mp3RateControlMode x)
-> (forall x. Rep Mp3RateControlMode x -> Mp3RateControlMode)
-> Generic Mp3RateControlMode
forall x. Rep Mp3RateControlMode x -> Mp3RateControlMode
forall x. Mp3RateControlMode -> Rep Mp3RateControlMode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Mp3RateControlMode x -> Mp3RateControlMode
$cfrom :: forall x. Mp3RateControlMode -> Rep Mp3RateControlMode x
Prelude.Generic
)
deriving newtype
( Int -> Mp3RateControlMode -> Int
Mp3RateControlMode -> Int
(Int -> Mp3RateControlMode -> Int)
-> (Mp3RateControlMode -> Int) -> Hashable Mp3RateControlMode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Mp3RateControlMode -> Int
$chash :: Mp3RateControlMode -> Int
hashWithSalt :: Int -> Mp3RateControlMode -> Int
$chashWithSalt :: Int -> Mp3RateControlMode -> Int
Prelude.Hashable,
Mp3RateControlMode -> ()
(Mp3RateControlMode -> ()) -> NFData Mp3RateControlMode
forall a. (a -> ()) -> NFData a
rnf :: Mp3RateControlMode -> ()
$crnf :: Mp3RateControlMode -> ()
Prelude.NFData,
Text -> Either String Mp3RateControlMode
(Text -> Either String Mp3RateControlMode)
-> FromText Mp3RateControlMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Mp3RateControlMode
$cfromText :: Text -> Either String Mp3RateControlMode
Core.FromText,
Mp3RateControlMode -> Text
(Mp3RateControlMode -> Text) -> ToText Mp3RateControlMode
forall a. (a -> Text) -> ToText a
toText :: Mp3RateControlMode -> Text
$ctoText :: Mp3RateControlMode -> Text
Core.ToText,
Mp3RateControlMode -> ByteString
(Mp3RateControlMode -> ByteString)
-> ToByteString Mp3RateControlMode
forall a. (a -> ByteString) -> ToByteString a
toBS :: Mp3RateControlMode -> ByteString
$ctoBS :: Mp3RateControlMode -> ByteString
Core.ToByteString,
Mp3RateControlMode -> ByteStringBuilder
(Mp3RateControlMode -> ByteStringBuilder)
-> ToLog Mp3RateControlMode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Mp3RateControlMode -> ByteStringBuilder
$cbuild :: Mp3RateControlMode -> ByteStringBuilder
Core.ToLog,
HeaderName -> Mp3RateControlMode -> [Header]
(HeaderName -> Mp3RateControlMode -> [Header])
-> ToHeader Mp3RateControlMode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Mp3RateControlMode -> [Header]
$ctoHeader :: HeaderName -> Mp3RateControlMode -> [Header]
Core.ToHeader,
Mp3RateControlMode -> QueryString
(Mp3RateControlMode -> QueryString) -> ToQuery Mp3RateControlMode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Mp3RateControlMode -> QueryString
$ctoQuery :: Mp3RateControlMode -> QueryString
Core.ToQuery,
Value -> Parser [Mp3RateControlMode]
Value -> Parser Mp3RateControlMode
(Value -> Parser Mp3RateControlMode)
-> (Value -> Parser [Mp3RateControlMode])
-> FromJSON Mp3RateControlMode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Mp3RateControlMode]
$cparseJSONList :: Value -> Parser [Mp3RateControlMode]
parseJSON :: Value -> Parser Mp3RateControlMode
$cparseJSON :: Value -> Parser Mp3RateControlMode
Core.FromJSON,
FromJSONKeyFunction [Mp3RateControlMode]
FromJSONKeyFunction Mp3RateControlMode
FromJSONKeyFunction Mp3RateControlMode
-> FromJSONKeyFunction [Mp3RateControlMode]
-> FromJSONKey Mp3RateControlMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Mp3RateControlMode]
$cfromJSONKeyList :: FromJSONKeyFunction [Mp3RateControlMode]
fromJSONKey :: FromJSONKeyFunction Mp3RateControlMode
$cfromJSONKey :: FromJSONKeyFunction Mp3RateControlMode
Core.FromJSONKey,
[Mp3RateControlMode] -> Encoding
[Mp3RateControlMode] -> Value
Mp3RateControlMode -> Encoding
Mp3RateControlMode -> Value
(Mp3RateControlMode -> Value)
-> (Mp3RateControlMode -> Encoding)
-> ([Mp3RateControlMode] -> Value)
-> ([Mp3RateControlMode] -> Encoding)
-> ToJSON Mp3RateControlMode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Mp3RateControlMode] -> Encoding
$ctoEncodingList :: [Mp3RateControlMode] -> Encoding
toJSONList :: [Mp3RateControlMode] -> Value
$ctoJSONList :: [Mp3RateControlMode] -> Value
toEncoding :: Mp3RateControlMode -> Encoding
$ctoEncoding :: Mp3RateControlMode -> Encoding
toJSON :: Mp3RateControlMode -> Value
$ctoJSON :: Mp3RateControlMode -> Value
Core.ToJSON,
ToJSONKeyFunction [Mp3RateControlMode]
ToJSONKeyFunction Mp3RateControlMode
ToJSONKeyFunction Mp3RateControlMode
-> ToJSONKeyFunction [Mp3RateControlMode]
-> ToJSONKey Mp3RateControlMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Mp3RateControlMode]
$ctoJSONKeyList :: ToJSONKeyFunction [Mp3RateControlMode]
toJSONKey :: ToJSONKeyFunction Mp3RateControlMode
$ctoJSONKey :: ToJSONKeyFunction Mp3RateControlMode
Core.ToJSONKey,
[Node] -> Either String Mp3RateControlMode
([Node] -> Either String Mp3RateControlMode)
-> FromXML Mp3RateControlMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Mp3RateControlMode
$cparseXML :: [Node] -> Either String Mp3RateControlMode
Core.FromXML,
Mp3RateControlMode -> XML
(Mp3RateControlMode -> XML) -> ToXML Mp3RateControlMode
forall a. (a -> XML) -> ToXML a
toXML :: Mp3RateControlMode -> XML
$ctoXML :: Mp3RateControlMode -> XML
Core.ToXML
)
pattern Mp3RateControlMode_CBR :: Mp3RateControlMode
pattern $bMp3RateControlMode_CBR :: Mp3RateControlMode
$mMp3RateControlMode_CBR :: forall r. Mp3RateControlMode -> (Void# -> r) -> (Void# -> r) -> r
Mp3RateControlMode_CBR = Mp3RateControlMode' "CBR"
pattern Mp3RateControlMode_VBR :: Mp3RateControlMode
pattern $bMp3RateControlMode_VBR :: Mp3RateControlMode
$mMp3RateControlMode_VBR :: forall r. Mp3RateControlMode -> (Void# -> r) -> (Void# -> r) -> r
Mp3RateControlMode_VBR = Mp3RateControlMode' "VBR"
{-# COMPLETE
Mp3RateControlMode_CBR,
Mp3RateControlMode_VBR,
Mp3RateControlMode'
#-}