{-# 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.MediaLive.Types.AudioType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
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.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | Audio Type
newtype AudioType = AudioType'
  { AudioType -> Text
fromAudioType ::
      Data.Text
  }
  deriving stock
    ( Int -> AudioType -> ShowS
[AudioType] -> ShowS
AudioType -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq AudioType
Int -> AudioType -> Int
AudioType -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: AudioType -> ()
$crnf :: AudioType -> ()
Prelude.NFData,
      Text -> Either String AudioType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AudioType
$cfromText :: Text -> Either String AudioType
Data.FromText,
      AudioType -> Text
forall a. (a -> Text) -> ToText a
toText :: AudioType -> Text
$ctoText :: AudioType -> Text
Data.ToText,
      AudioType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: AudioType -> ByteString
$ctoBS :: AudioType -> ByteString
Data.ToByteString,
      AudioType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AudioType -> ByteStringBuilder
$cbuild :: AudioType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> AudioType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AudioType -> [Header]
$ctoHeader :: HeaderName -> AudioType -> [Header]
Data.ToHeader,
      AudioType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AudioType -> QueryString
$ctoQuery :: AudioType -> QueryString
Data.ToQuery,
      Value -> Parser [AudioType]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [AudioType]
FromJSONKeyFunction AudioType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AudioType]
$cfromJSONKeyList :: FromJSONKeyFunction [AudioType]
fromJSONKey :: FromJSONKeyFunction AudioType
$cfromJSONKey :: FromJSONKeyFunction AudioType
Data.FromJSONKey,
      [AudioType] -> Encoding
[AudioType] -> Value
AudioType -> Encoding
AudioType -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [AudioType]
ToJSONKeyFunction AudioType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AudioType]
$ctoJSONKeyList :: ToJSONKeyFunction [AudioType]
toJSONKey :: ToJSONKeyFunction AudioType
$ctoJSONKey :: ToJSONKeyFunction AudioType
Data.ToJSONKey,
      [Node] -> Either String AudioType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AudioType
$cparseXML :: [Node] -> Either String AudioType
Data.FromXML,
      AudioType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: AudioType -> XML
$ctoXML :: AudioType -> XML
Data.ToXML
    )

pattern AudioType_CLEAN_EFFECTS :: AudioType
pattern $bAudioType_CLEAN_EFFECTS :: AudioType
$mAudioType_CLEAN_EFFECTS :: forall {r}. AudioType -> ((# #) -> r) -> ((# #) -> r) -> r
AudioType_CLEAN_EFFECTS = AudioType' "CLEAN_EFFECTS"

pattern AudioType_HEARING_IMPAIRED :: AudioType
pattern $bAudioType_HEARING_IMPAIRED :: AudioType
$mAudioType_HEARING_IMPAIRED :: forall {r}. AudioType -> ((# #) -> r) -> ((# #) -> r) -> r
AudioType_HEARING_IMPAIRED = AudioType' "HEARING_IMPAIRED"

pattern AudioType_UNDEFINED :: AudioType
pattern $bAudioType_UNDEFINED :: AudioType
$mAudioType_UNDEFINED :: forall {r}. AudioType -> ((# #) -> r) -> ((# #) -> r) -> r
AudioType_UNDEFINED = AudioType' "UNDEFINED"

pattern AudioType_VISUAL_IMPAIRED_COMMENTARY :: AudioType
pattern $bAudioType_VISUAL_IMPAIRED_COMMENTARY :: AudioType
$mAudioType_VISUAL_IMPAIRED_COMMENTARY :: forall {r}. AudioType -> ((# #) -> r) -> ((# #) -> r) -> r
AudioType_VISUAL_IMPAIRED_COMMENTARY = AudioType' "VISUAL_IMPAIRED_COMMENTARY"

{-# COMPLETE
  AudioType_CLEAN_EFFECTS,
  AudioType_HEARING_IMPAIRED,
  AudioType_UNDEFINED,
  AudioType_VISUAL_IMPAIRED_COMMENTARY,
  AudioType'
  #-}