{-# 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.Eac3AtmosDownmixControl
-- 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.Eac3AtmosDownmixControl
  ( Eac3AtmosDownmixControl
      ( ..,
        Eac3AtmosDownmixControl_INITIALIZE_FROM_SOURCE,
        Eac3AtmosDownmixControl_SPECIFIED
      ),
  )
where

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

-- | Specify whether MediaConvert should use any downmix metadata from your
-- input file. Keep the default value, Custom (SPECIFIED) to provide
-- downmix values in your job settings. Choose Follow source
-- (INITIALIZE_FROM_SOURCE) to use the metadata from your input. Related
-- settings--Use these settings to specify your downmix values: Left
-- only\/Right only surround (LoRoSurroundMixLevel), Left total\/Right
-- total surround (LtRtSurroundMixLevel), Left total\/Right total center
-- (LtRtCenterMixLevel), Left only\/Right only center (LoRoCenterMixLevel),
-- and Stereo downmix (StereoDownmix). When you keep Custom (SPECIFIED) for
-- Downmix control (DownmixControl) and you don\'t specify values for the
-- related settings, MediaConvert uses default values for those settings.
newtype Eac3AtmosDownmixControl = Eac3AtmosDownmixControl'
  { Eac3AtmosDownmixControl -> Text
fromEac3AtmosDownmixControl ::
      Core.Text
  }
  deriving stock
    ( Int -> Eac3AtmosDownmixControl -> ShowS
[Eac3AtmosDownmixControl] -> ShowS
Eac3AtmosDownmixControl -> String
(Int -> Eac3AtmosDownmixControl -> ShowS)
-> (Eac3AtmosDownmixControl -> String)
-> ([Eac3AtmosDownmixControl] -> ShowS)
-> Show Eac3AtmosDownmixControl
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Eac3AtmosDownmixControl] -> ShowS
$cshowList :: [Eac3AtmosDownmixControl] -> ShowS
show :: Eac3AtmosDownmixControl -> String
$cshow :: Eac3AtmosDownmixControl -> String
showsPrec :: Int -> Eac3AtmosDownmixControl -> ShowS
$cshowsPrec :: Int -> Eac3AtmosDownmixControl -> ShowS
Prelude.Show,
      ReadPrec [Eac3AtmosDownmixControl]
ReadPrec Eac3AtmosDownmixControl
Int -> ReadS Eac3AtmosDownmixControl
ReadS [Eac3AtmosDownmixControl]
(Int -> ReadS Eac3AtmosDownmixControl)
-> ReadS [Eac3AtmosDownmixControl]
-> ReadPrec Eac3AtmosDownmixControl
-> ReadPrec [Eac3AtmosDownmixControl]
-> Read Eac3AtmosDownmixControl
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Eac3AtmosDownmixControl]
$creadListPrec :: ReadPrec [Eac3AtmosDownmixControl]
readPrec :: ReadPrec Eac3AtmosDownmixControl
$creadPrec :: ReadPrec Eac3AtmosDownmixControl
readList :: ReadS [Eac3AtmosDownmixControl]
$creadList :: ReadS [Eac3AtmosDownmixControl]
readsPrec :: Int -> ReadS Eac3AtmosDownmixControl
$creadsPrec :: Int -> ReadS Eac3AtmosDownmixControl
Prelude.Read,
      Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl -> Bool
(Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl -> Bool)
-> (Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl -> Bool)
-> Eq Eac3AtmosDownmixControl
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl -> Bool
$c/= :: Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl -> Bool
== :: Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl -> Bool
$c== :: Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl -> Bool
Prelude.Eq,
      Eq Eac3AtmosDownmixControl
Eq Eac3AtmosDownmixControl
-> (Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl -> Ordering)
-> (Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl -> Bool)
-> (Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl -> Bool)
-> (Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl -> Bool)
-> (Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl -> Bool)
-> (Eac3AtmosDownmixControl
    -> Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl)
-> (Eac3AtmosDownmixControl
    -> Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl)
-> Ord Eac3AtmosDownmixControl
Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl -> Bool
Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl -> Ordering
Eac3AtmosDownmixControl
-> Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl
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 :: Eac3AtmosDownmixControl
-> Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl
$cmin :: Eac3AtmosDownmixControl
-> Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl
max :: Eac3AtmosDownmixControl
-> Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl
$cmax :: Eac3AtmosDownmixControl
-> Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl
>= :: Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl -> Bool
$c>= :: Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl -> Bool
> :: Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl -> Bool
$c> :: Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl -> Bool
<= :: Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl -> Bool
$c<= :: Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl -> Bool
< :: Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl -> Bool
$c< :: Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl -> Bool
compare :: Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl -> Ordering
$ccompare :: Eac3AtmosDownmixControl -> Eac3AtmosDownmixControl -> Ordering
$cp1Ord :: Eq Eac3AtmosDownmixControl
Prelude.Ord,
      (forall x.
 Eac3AtmosDownmixControl -> Rep Eac3AtmosDownmixControl x)
-> (forall x.
    Rep Eac3AtmosDownmixControl x -> Eac3AtmosDownmixControl)
-> Generic Eac3AtmosDownmixControl
forall x. Rep Eac3AtmosDownmixControl x -> Eac3AtmosDownmixControl
forall x. Eac3AtmosDownmixControl -> Rep Eac3AtmosDownmixControl x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Eac3AtmosDownmixControl x -> Eac3AtmosDownmixControl
$cfrom :: forall x. Eac3AtmosDownmixControl -> Rep Eac3AtmosDownmixControl x
Prelude.Generic
    )
  deriving newtype
    ( Int -> Eac3AtmosDownmixControl -> Int
Eac3AtmosDownmixControl -> Int
(Int -> Eac3AtmosDownmixControl -> Int)
-> (Eac3AtmosDownmixControl -> Int)
-> Hashable Eac3AtmosDownmixControl
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Eac3AtmosDownmixControl -> Int
$chash :: Eac3AtmosDownmixControl -> Int
hashWithSalt :: Int -> Eac3AtmosDownmixControl -> Int
$chashWithSalt :: Int -> Eac3AtmosDownmixControl -> Int
Prelude.Hashable,
      Eac3AtmosDownmixControl -> ()
(Eac3AtmosDownmixControl -> ()) -> NFData Eac3AtmosDownmixControl
forall a. (a -> ()) -> NFData a
rnf :: Eac3AtmosDownmixControl -> ()
$crnf :: Eac3AtmosDownmixControl -> ()
Prelude.NFData,
      Text -> Either String Eac3AtmosDownmixControl
(Text -> Either String Eac3AtmosDownmixControl)
-> FromText Eac3AtmosDownmixControl
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Eac3AtmosDownmixControl
$cfromText :: Text -> Either String Eac3AtmosDownmixControl
Core.FromText,
      Eac3AtmosDownmixControl -> Text
(Eac3AtmosDownmixControl -> Text) -> ToText Eac3AtmosDownmixControl
forall a. (a -> Text) -> ToText a
toText :: Eac3AtmosDownmixControl -> Text
$ctoText :: Eac3AtmosDownmixControl -> Text
Core.ToText,
      Eac3AtmosDownmixControl -> ByteString
(Eac3AtmosDownmixControl -> ByteString)
-> ToByteString Eac3AtmosDownmixControl
forall a. (a -> ByteString) -> ToByteString a
toBS :: Eac3AtmosDownmixControl -> ByteString
$ctoBS :: Eac3AtmosDownmixControl -> ByteString
Core.ToByteString,
      Eac3AtmosDownmixControl -> ByteStringBuilder
(Eac3AtmosDownmixControl -> ByteStringBuilder)
-> ToLog Eac3AtmosDownmixControl
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Eac3AtmosDownmixControl -> ByteStringBuilder
$cbuild :: Eac3AtmosDownmixControl -> ByteStringBuilder
Core.ToLog,
      HeaderName -> Eac3AtmosDownmixControl -> [Header]
(HeaderName -> Eac3AtmosDownmixControl -> [Header])
-> ToHeader Eac3AtmosDownmixControl
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Eac3AtmosDownmixControl -> [Header]
$ctoHeader :: HeaderName -> Eac3AtmosDownmixControl -> [Header]
Core.ToHeader,
      Eac3AtmosDownmixControl -> QueryString
(Eac3AtmosDownmixControl -> QueryString)
-> ToQuery Eac3AtmosDownmixControl
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Eac3AtmosDownmixControl -> QueryString
$ctoQuery :: Eac3AtmosDownmixControl -> QueryString
Core.ToQuery,
      Value -> Parser [Eac3AtmosDownmixControl]
Value -> Parser Eac3AtmosDownmixControl
(Value -> Parser Eac3AtmosDownmixControl)
-> (Value -> Parser [Eac3AtmosDownmixControl])
-> FromJSON Eac3AtmosDownmixControl
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Eac3AtmosDownmixControl]
$cparseJSONList :: Value -> Parser [Eac3AtmosDownmixControl]
parseJSON :: Value -> Parser Eac3AtmosDownmixControl
$cparseJSON :: Value -> Parser Eac3AtmosDownmixControl
Core.FromJSON,
      FromJSONKeyFunction [Eac3AtmosDownmixControl]
FromJSONKeyFunction Eac3AtmosDownmixControl
FromJSONKeyFunction Eac3AtmosDownmixControl
-> FromJSONKeyFunction [Eac3AtmosDownmixControl]
-> FromJSONKey Eac3AtmosDownmixControl
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Eac3AtmosDownmixControl]
$cfromJSONKeyList :: FromJSONKeyFunction [Eac3AtmosDownmixControl]
fromJSONKey :: FromJSONKeyFunction Eac3AtmosDownmixControl
$cfromJSONKey :: FromJSONKeyFunction Eac3AtmosDownmixControl
Core.FromJSONKey,
      [Eac3AtmosDownmixControl] -> Encoding
[Eac3AtmosDownmixControl] -> Value
Eac3AtmosDownmixControl -> Encoding
Eac3AtmosDownmixControl -> Value
(Eac3AtmosDownmixControl -> Value)
-> (Eac3AtmosDownmixControl -> Encoding)
-> ([Eac3AtmosDownmixControl] -> Value)
-> ([Eac3AtmosDownmixControl] -> Encoding)
-> ToJSON Eac3AtmosDownmixControl
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Eac3AtmosDownmixControl] -> Encoding
$ctoEncodingList :: [Eac3AtmosDownmixControl] -> Encoding
toJSONList :: [Eac3AtmosDownmixControl] -> Value
$ctoJSONList :: [Eac3AtmosDownmixControl] -> Value
toEncoding :: Eac3AtmosDownmixControl -> Encoding
$ctoEncoding :: Eac3AtmosDownmixControl -> Encoding
toJSON :: Eac3AtmosDownmixControl -> Value
$ctoJSON :: Eac3AtmosDownmixControl -> Value
Core.ToJSON,
      ToJSONKeyFunction [Eac3AtmosDownmixControl]
ToJSONKeyFunction Eac3AtmosDownmixControl
ToJSONKeyFunction Eac3AtmosDownmixControl
-> ToJSONKeyFunction [Eac3AtmosDownmixControl]
-> ToJSONKey Eac3AtmosDownmixControl
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Eac3AtmosDownmixControl]
$ctoJSONKeyList :: ToJSONKeyFunction [Eac3AtmosDownmixControl]
toJSONKey :: ToJSONKeyFunction Eac3AtmosDownmixControl
$ctoJSONKey :: ToJSONKeyFunction Eac3AtmosDownmixControl
Core.ToJSONKey,
      [Node] -> Either String Eac3AtmosDownmixControl
([Node] -> Either String Eac3AtmosDownmixControl)
-> FromXML Eac3AtmosDownmixControl
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Eac3AtmosDownmixControl
$cparseXML :: [Node] -> Either String Eac3AtmosDownmixControl
Core.FromXML,
      Eac3AtmosDownmixControl -> XML
(Eac3AtmosDownmixControl -> XML) -> ToXML Eac3AtmosDownmixControl
forall a. (a -> XML) -> ToXML a
toXML :: Eac3AtmosDownmixControl -> XML
$ctoXML :: Eac3AtmosDownmixControl -> XML
Core.ToXML
    )

pattern Eac3AtmosDownmixControl_INITIALIZE_FROM_SOURCE :: Eac3AtmosDownmixControl
pattern $bEac3AtmosDownmixControl_INITIALIZE_FROM_SOURCE :: Eac3AtmosDownmixControl
$mEac3AtmosDownmixControl_INITIALIZE_FROM_SOURCE :: forall r.
Eac3AtmosDownmixControl -> (Void# -> r) -> (Void# -> r) -> r
Eac3AtmosDownmixControl_INITIALIZE_FROM_SOURCE = Eac3AtmosDownmixControl' "INITIALIZE_FROM_SOURCE"

pattern Eac3AtmosDownmixControl_SPECIFIED :: Eac3AtmosDownmixControl
pattern $bEac3AtmosDownmixControl_SPECIFIED :: Eac3AtmosDownmixControl
$mEac3AtmosDownmixControl_SPECIFIED :: forall r.
Eac3AtmosDownmixControl -> (Void# -> r) -> (Void# -> r) -> r
Eac3AtmosDownmixControl_SPECIFIED = Eac3AtmosDownmixControl' "SPECIFIED"

{-# COMPLETE
  Eac3AtmosDownmixControl_INITIALIZE_FROM_SOURCE,
  Eac3AtmosDownmixControl_SPECIFIED,
  Eac3AtmosDownmixControl'
  #-}