{-# 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.MediaConvert.Types.Eac3AtmosDialogueIntelligence
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaConvert.Types.Eac3AtmosDialogueIntelligence
  ( Eac3AtmosDialogueIntelligence
      ( ..,
        Eac3AtmosDialogueIntelligence_DISABLED,
        Eac3AtmosDialogueIntelligence_ENABLED
      ),
  )
where

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

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

pattern Eac3AtmosDialogueIntelligence_DISABLED :: Eac3AtmosDialogueIntelligence
pattern $bEac3AtmosDialogueIntelligence_DISABLED :: Eac3AtmosDialogueIntelligence
$mEac3AtmosDialogueIntelligence_DISABLED :: forall r.
Eac3AtmosDialogueIntelligence -> (Void# -> r) -> (Void# -> r) -> r
Eac3AtmosDialogueIntelligence_DISABLED = Eac3AtmosDialogueIntelligence' "DISABLED"

pattern Eac3AtmosDialogueIntelligence_ENABLED :: Eac3AtmosDialogueIntelligence
pattern $bEac3AtmosDialogueIntelligence_ENABLED :: Eac3AtmosDialogueIntelligence
$mEac3AtmosDialogueIntelligence_ENABLED :: forall r.
Eac3AtmosDialogueIntelligence -> (Void# -> r) -> (Void# -> r) -> r
Eac3AtmosDialogueIntelligence_ENABLED = Eac3AtmosDialogueIntelligence' "ENABLED"

{-# COMPLETE
  Eac3AtmosDialogueIntelligence_DISABLED,
  Eac3AtmosDialogueIntelligence_ENABLED,
  Eac3AtmosDialogueIntelligence'
  #-}