{-# 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.AudioNormalizationAlgorithm
-- 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.AudioNormalizationAlgorithm
  ( AudioNormalizationAlgorithm
      ( ..,
        AudioNormalizationAlgorithm_ITU_1770_1,
        AudioNormalizationAlgorithm_ITU_1770_2
      ),
  )
where

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

-- | Audio Normalization Algorithm
newtype AudioNormalizationAlgorithm = AudioNormalizationAlgorithm'
  { AudioNormalizationAlgorithm -> Text
fromAudioNormalizationAlgorithm ::
      Data.Text
  }
  deriving stock
    ( Int -> AudioNormalizationAlgorithm -> ShowS
[AudioNormalizationAlgorithm] -> ShowS
AudioNormalizationAlgorithm -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AudioNormalizationAlgorithm] -> ShowS
$cshowList :: [AudioNormalizationAlgorithm] -> ShowS
show :: AudioNormalizationAlgorithm -> String
$cshow :: AudioNormalizationAlgorithm -> String
showsPrec :: Int -> AudioNormalizationAlgorithm -> ShowS
$cshowsPrec :: Int -> AudioNormalizationAlgorithm -> ShowS
Prelude.Show,
      ReadPrec [AudioNormalizationAlgorithm]
ReadPrec AudioNormalizationAlgorithm
Int -> ReadS AudioNormalizationAlgorithm
ReadS [AudioNormalizationAlgorithm]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AudioNormalizationAlgorithm]
$creadListPrec :: ReadPrec [AudioNormalizationAlgorithm]
readPrec :: ReadPrec AudioNormalizationAlgorithm
$creadPrec :: ReadPrec AudioNormalizationAlgorithm
readList :: ReadS [AudioNormalizationAlgorithm]
$creadList :: ReadS [AudioNormalizationAlgorithm]
readsPrec :: Int -> ReadS AudioNormalizationAlgorithm
$creadsPrec :: Int -> ReadS AudioNormalizationAlgorithm
Prelude.Read,
      AudioNormalizationAlgorithm -> AudioNormalizationAlgorithm -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AudioNormalizationAlgorithm -> AudioNormalizationAlgorithm -> Bool
$c/= :: AudioNormalizationAlgorithm -> AudioNormalizationAlgorithm -> Bool
== :: AudioNormalizationAlgorithm -> AudioNormalizationAlgorithm -> Bool
$c== :: AudioNormalizationAlgorithm -> AudioNormalizationAlgorithm -> Bool
Prelude.Eq,
      Eq AudioNormalizationAlgorithm
AudioNormalizationAlgorithm -> AudioNormalizationAlgorithm -> Bool
AudioNormalizationAlgorithm
-> AudioNormalizationAlgorithm -> Ordering
AudioNormalizationAlgorithm
-> AudioNormalizationAlgorithm -> AudioNormalizationAlgorithm
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 :: AudioNormalizationAlgorithm
-> AudioNormalizationAlgorithm -> AudioNormalizationAlgorithm
$cmin :: AudioNormalizationAlgorithm
-> AudioNormalizationAlgorithm -> AudioNormalizationAlgorithm
max :: AudioNormalizationAlgorithm
-> AudioNormalizationAlgorithm -> AudioNormalizationAlgorithm
$cmax :: AudioNormalizationAlgorithm
-> AudioNormalizationAlgorithm -> AudioNormalizationAlgorithm
>= :: AudioNormalizationAlgorithm -> AudioNormalizationAlgorithm -> Bool
$c>= :: AudioNormalizationAlgorithm -> AudioNormalizationAlgorithm -> Bool
> :: AudioNormalizationAlgorithm -> AudioNormalizationAlgorithm -> Bool
$c> :: AudioNormalizationAlgorithm -> AudioNormalizationAlgorithm -> Bool
<= :: AudioNormalizationAlgorithm -> AudioNormalizationAlgorithm -> Bool
$c<= :: AudioNormalizationAlgorithm -> AudioNormalizationAlgorithm -> Bool
< :: AudioNormalizationAlgorithm -> AudioNormalizationAlgorithm -> Bool
$c< :: AudioNormalizationAlgorithm -> AudioNormalizationAlgorithm -> Bool
compare :: AudioNormalizationAlgorithm
-> AudioNormalizationAlgorithm -> Ordering
$ccompare :: AudioNormalizationAlgorithm
-> AudioNormalizationAlgorithm -> Ordering
Prelude.Ord,
      forall x.
Rep AudioNormalizationAlgorithm x -> AudioNormalizationAlgorithm
forall x.
AudioNormalizationAlgorithm -> Rep AudioNormalizationAlgorithm x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AudioNormalizationAlgorithm x -> AudioNormalizationAlgorithm
$cfrom :: forall x.
AudioNormalizationAlgorithm -> Rep AudioNormalizationAlgorithm x
Prelude.Generic
    )
  deriving newtype
    ( Eq AudioNormalizationAlgorithm
Int -> AudioNormalizationAlgorithm -> Int
AudioNormalizationAlgorithm -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AudioNormalizationAlgorithm -> Int
$chash :: AudioNormalizationAlgorithm -> Int
hashWithSalt :: Int -> AudioNormalizationAlgorithm -> Int
$chashWithSalt :: Int -> AudioNormalizationAlgorithm -> Int
Prelude.Hashable,
      AudioNormalizationAlgorithm -> ()
forall a. (a -> ()) -> NFData a
rnf :: AudioNormalizationAlgorithm -> ()
$crnf :: AudioNormalizationAlgorithm -> ()
Prelude.NFData,
      Text -> Either String AudioNormalizationAlgorithm
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AudioNormalizationAlgorithm
$cfromText :: Text -> Either String AudioNormalizationAlgorithm
Data.FromText,
      AudioNormalizationAlgorithm -> Text
forall a. (a -> Text) -> ToText a
toText :: AudioNormalizationAlgorithm -> Text
$ctoText :: AudioNormalizationAlgorithm -> Text
Data.ToText,
      AudioNormalizationAlgorithm -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: AudioNormalizationAlgorithm -> ByteString
$ctoBS :: AudioNormalizationAlgorithm -> ByteString
Data.ToByteString,
      AudioNormalizationAlgorithm -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AudioNormalizationAlgorithm -> ByteStringBuilder
$cbuild :: AudioNormalizationAlgorithm -> ByteStringBuilder
Data.ToLog,
      HeaderName -> AudioNormalizationAlgorithm -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AudioNormalizationAlgorithm -> [Header]
$ctoHeader :: HeaderName -> AudioNormalizationAlgorithm -> [Header]
Data.ToHeader,
      AudioNormalizationAlgorithm -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AudioNormalizationAlgorithm -> QueryString
$ctoQuery :: AudioNormalizationAlgorithm -> QueryString
Data.ToQuery,
      Value -> Parser [AudioNormalizationAlgorithm]
Value -> Parser AudioNormalizationAlgorithm
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AudioNormalizationAlgorithm]
$cparseJSONList :: Value -> Parser [AudioNormalizationAlgorithm]
parseJSON :: Value -> Parser AudioNormalizationAlgorithm
$cparseJSON :: Value -> Parser AudioNormalizationAlgorithm
Data.FromJSON,
      FromJSONKeyFunction [AudioNormalizationAlgorithm]
FromJSONKeyFunction AudioNormalizationAlgorithm
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AudioNormalizationAlgorithm]
$cfromJSONKeyList :: FromJSONKeyFunction [AudioNormalizationAlgorithm]
fromJSONKey :: FromJSONKeyFunction AudioNormalizationAlgorithm
$cfromJSONKey :: FromJSONKeyFunction AudioNormalizationAlgorithm
Data.FromJSONKey,
      [AudioNormalizationAlgorithm] -> Encoding
[AudioNormalizationAlgorithm] -> Value
AudioNormalizationAlgorithm -> Encoding
AudioNormalizationAlgorithm -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AudioNormalizationAlgorithm] -> Encoding
$ctoEncodingList :: [AudioNormalizationAlgorithm] -> Encoding
toJSONList :: [AudioNormalizationAlgorithm] -> Value
$ctoJSONList :: [AudioNormalizationAlgorithm] -> Value
toEncoding :: AudioNormalizationAlgorithm -> Encoding
$ctoEncoding :: AudioNormalizationAlgorithm -> Encoding
toJSON :: AudioNormalizationAlgorithm -> Value
$ctoJSON :: AudioNormalizationAlgorithm -> Value
Data.ToJSON,
      ToJSONKeyFunction [AudioNormalizationAlgorithm]
ToJSONKeyFunction AudioNormalizationAlgorithm
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AudioNormalizationAlgorithm]
$ctoJSONKeyList :: ToJSONKeyFunction [AudioNormalizationAlgorithm]
toJSONKey :: ToJSONKeyFunction AudioNormalizationAlgorithm
$ctoJSONKey :: ToJSONKeyFunction AudioNormalizationAlgorithm
Data.ToJSONKey,
      [Node] -> Either String AudioNormalizationAlgorithm
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AudioNormalizationAlgorithm
$cparseXML :: [Node] -> Either String AudioNormalizationAlgorithm
Data.FromXML,
      AudioNormalizationAlgorithm -> XML
forall a. (a -> XML) -> ToXML a
toXML :: AudioNormalizationAlgorithm -> XML
$ctoXML :: AudioNormalizationAlgorithm -> XML
Data.ToXML
    )

pattern AudioNormalizationAlgorithm_ITU_1770_1 :: AudioNormalizationAlgorithm
pattern $bAudioNormalizationAlgorithm_ITU_1770_1 :: AudioNormalizationAlgorithm
$mAudioNormalizationAlgorithm_ITU_1770_1 :: forall {r}.
AudioNormalizationAlgorithm -> ((# #) -> r) -> ((# #) -> r) -> r
AudioNormalizationAlgorithm_ITU_1770_1 = AudioNormalizationAlgorithm' "ITU_1770_1"

pattern AudioNormalizationAlgorithm_ITU_1770_2 :: AudioNormalizationAlgorithm
pattern $bAudioNormalizationAlgorithm_ITU_1770_2 :: AudioNormalizationAlgorithm
$mAudioNormalizationAlgorithm_ITU_1770_2 :: forall {r}.
AudioNormalizationAlgorithm -> ((# #) -> r) -> ((# #) -> r) -> r
AudioNormalizationAlgorithm_ITU_1770_2 = AudioNormalizationAlgorithm' "ITU_1770_2"

{-# COMPLETE
  AudioNormalizationAlgorithm_ITU_1770_1,
  AudioNormalizationAlgorithm_ITU_1770_2,
  AudioNormalizationAlgorithm'
  #-}