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