{-# 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.AudioType
( AudioType
( ..,
AudioType_CLEAN_EFFECTS,
AudioType_HEARING_IMPAIRED,
AudioType_UNDEFINED,
AudioType_VISUAL_IMPAIRED_COMMENTARY
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype AudioType = AudioType'
{ AudioType -> Text
fromAudioType ::
Core.Text
}
deriving stock
( Int -> AudioType -> ShowS
[AudioType] -> ShowS
AudioType -> String
(Int -> AudioType -> ShowS)
-> (AudioType -> String)
-> ([AudioType] -> ShowS)
-> Show AudioType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AudioType] -> ShowS
$cshowList :: [AudioType] -> ShowS
show :: AudioType -> String
$cshow :: AudioType -> String
showsPrec :: Int -> AudioType -> ShowS
$cshowsPrec :: Int -> AudioType -> ShowS
Prelude.Show,
ReadPrec [AudioType]
ReadPrec AudioType
Int -> ReadS AudioType
ReadS [AudioType]
(Int -> ReadS AudioType)
-> ReadS [AudioType]
-> ReadPrec AudioType
-> ReadPrec [AudioType]
-> Read AudioType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AudioType]
$creadListPrec :: ReadPrec [AudioType]
readPrec :: ReadPrec AudioType
$creadPrec :: ReadPrec AudioType
readList :: ReadS [AudioType]
$creadList :: ReadS [AudioType]
readsPrec :: Int -> ReadS AudioType
$creadsPrec :: Int -> ReadS AudioType
Prelude.Read,
AudioType -> AudioType -> Bool
(AudioType -> AudioType -> Bool)
-> (AudioType -> AudioType -> Bool) -> Eq AudioType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AudioType -> AudioType -> Bool
$c/= :: AudioType -> AudioType -> Bool
== :: AudioType -> AudioType -> Bool
$c== :: AudioType -> AudioType -> Bool
Prelude.Eq,
Eq AudioType
Eq AudioType
-> (AudioType -> AudioType -> Ordering)
-> (AudioType -> AudioType -> Bool)
-> (AudioType -> AudioType -> Bool)
-> (AudioType -> AudioType -> Bool)
-> (AudioType -> AudioType -> Bool)
-> (AudioType -> AudioType -> AudioType)
-> (AudioType -> AudioType -> AudioType)
-> Ord AudioType
AudioType -> AudioType -> Bool
AudioType -> AudioType -> Ordering
AudioType -> AudioType -> AudioType
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 :: AudioType -> AudioType -> AudioType
$cmin :: AudioType -> AudioType -> AudioType
max :: AudioType -> AudioType -> AudioType
$cmax :: AudioType -> AudioType -> AudioType
>= :: AudioType -> AudioType -> Bool
$c>= :: AudioType -> AudioType -> Bool
> :: AudioType -> AudioType -> Bool
$c> :: AudioType -> AudioType -> Bool
<= :: AudioType -> AudioType -> Bool
$c<= :: AudioType -> AudioType -> Bool
< :: AudioType -> AudioType -> Bool
$c< :: AudioType -> AudioType -> Bool
compare :: AudioType -> AudioType -> Ordering
$ccompare :: AudioType -> AudioType -> Ordering
$cp1Ord :: Eq AudioType
Prelude.Ord,
(forall x. AudioType -> Rep AudioType x)
-> (forall x. Rep AudioType x -> AudioType) -> Generic AudioType
forall x. Rep AudioType x -> AudioType
forall x. AudioType -> Rep AudioType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AudioType x -> AudioType
$cfrom :: forall x. AudioType -> Rep AudioType x
Prelude.Generic
)
deriving newtype
( Int -> AudioType -> Int
AudioType -> Int
(Int -> AudioType -> Int)
-> (AudioType -> Int) -> Hashable AudioType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AudioType -> Int
$chash :: AudioType -> Int
hashWithSalt :: Int -> AudioType -> Int
$chashWithSalt :: Int -> AudioType -> Int
Prelude.Hashable,
AudioType -> ()
(AudioType -> ()) -> NFData AudioType
forall a. (a -> ()) -> NFData a
rnf :: AudioType -> ()
$crnf :: AudioType -> ()
Prelude.NFData,
Text -> Either String AudioType
(Text -> Either String AudioType) -> FromText AudioType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AudioType
$cfromText :: Text -> Either String AudioType
Core.FromText,
AudioType -> Text
(AudioType -> Text) -> ToText AudioType
forall a. (a -> Text) -> ToText a
toText :: AudioType -> Text
$ctoText :: AudioType -> Text
Core.ToText,
AudioType -> ByteString
(AudioType -> ByteString) -> ToByteString AudioType
forall a. (a -> ByteString) -> ToByteString a
toBS :: AudioType -> ByteString
$ctoBS :: AudioType -> ByteString
Core.ToByteString,
AudioType -> ByteStringBuilder
(AudioType -> ByteStringBuilder) -> ToLog AudioType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AudioType -> ByteStringBuilder
$cbuild :: AudioType -> ByteStringBuilder
Core.ToLog,
HeaderName -> AudioType -> [Header]
(HeaderName -> AudioType -> [Header]) -> ToHeader AudioType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AudioType -> [Header]
$ctoHeader :: HeaderName -> AudioType -> [Header]
Core.ToHeader,
AudioType -> QueryString
(AudioType -> QueryString) -> ToQuery AudioType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AudioType -> QueryString
$ctoQuery :: AudioType -> QueryString
Core.ToQuery,
Value -> Parser [AudioType]
Value -> Parser AudioType
(Value -> Parser AudioType)
-> (Value -> Parser [AudioType]) -> FromJSON AudioType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AudioType]
$cparseJSONList :: Value -> Parser [AudioType]
parseJSON :: Value -> Parser AudioType
$cparseJSON :: Value -> Parser AudioType
Core.FromJSON,
FromJSONKeyFunction [AudioType]
FromJSONKeyFunction AudioType
FromJSONKeyFunction AudioType
-> FromJSONKeyFunction [AudioType] -> FromJSONKey AudioType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AudioType]
$cfromJSONKeyList :: FromJSONKeyFunction [AudioType]
fromJSONKey :: FromJSONKeyFunction AudioType
$cfromJSONKey :: FromJSONKeyFunction AudioType
Core.FromJSONKey,
[AudioType] -> Encoding
[AudioType] -> Value
AudioType -> Encoding
AudioType -> Value
(AudioType -> Value)
-> (AudioType -> Encoding)
-> ([AudioType] -> Value)
-> ([AudioType] -> Encoding)
-> ToJSON AudioType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AudioType] -> Encoding
$ctoEncodingList :: [AudioType] -> Encoding
toJSONList :: [AudioType] -> Value
$ctoJSONList :: [AudioType] -> Value
toEncoding :: AudioType -> Encoding
$ctoEncoding :: AudioType -> Encoding
toJSON :: AudioType -> Value
$ctoJSON :: AudioType -> Value
Core.ToJSON,
ToJSONKeyFunction [AudioType]
ToJSONKeyFunction AudioType
ToJSONKeyFunction AudioType
-> ToJSONKeyFunction [AudioType] -> ToJSONKey AudioType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AudioType]
$ctoJSONKeyList :: ToJSONKeyFunction [AudioType]
toJSONKey :: ToJSONKeyFunction AudioType
$ctoJSONKey :: ToJSONKeyFunction AudioType
Core.ToJSONKey,
[Node] -> Either String AudioType
([Node] -> Either String AudioType) -> FromXML AudioType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AudioType
$cparseXML :: [Node] -> Either String AudioType
Core.FromXML,
AudioType -> XML
(AudioType -> XML) -> ToXML AudioType
forall a. (a -> XML) -> ToXML a
toXML :: AudioType -> XML
$ctoXML :: AudioType -> XML
Core.ToXML
)
pattern AudioType_CLEAN_EFFECTS :: AudioType
pattern $bAudioType_CLEAN_EFFECTS :: AudioType
$mAudioType_CLEAN_EFFECTS :: forall r. AudioType -> (Void# -> r) -> (Void# -> r) -> r
AudioType_CLEAN_EFFECTS = AudioType' "CLEAN_EFFECTS"
pattern AudioType_HEARING_IMPAIRED :: AudioType
pattern $bAudioType_HEARING_IMPAIRED :: AudioType
$mAudioType_HEARING_IMPAIRED :: forall r. AudioType -> (Void# -> r) -> (Void# -> r) -> r
AudioType_HEARING_IMPAIRED = AudioType' "HEARING_IMPAIRED"
pattern AudioType_UNDEFINED :: AudioType
pattern $bAudioType_UNDEFINED :: AudioType
$mAudioType_UNDEFINED :: forall r. AudioType -> (Void# -> r) -> (Void# -> r) -> r
AudioType_UNDEFINED = AudioType' "UNDEFINED"
pattern AudioType_VISUAL_IMPAIRED_COMMENTARY :: AudioType
pattern = AudioType' "VISUAL_IMPAIRED_COMMENTARY"
{-# COMPLETE
AudioType_CLEAN_EFFECTS,
AudioType_HEARING_IMPAIRED,
AudioType_UNDEFINED,
AudioType_VISUAL_IMPAIRED_COMMENTARY,
AudioType'
#-}