{-# 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.Eac3AtmosStereoDownmix
-- 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.Eac3AtmosStereoDownmix
  ( Eac3AtmosStereoDownmix
      ( ..,
        Eac3AtmosStereoDownmix_DPL2,
        Eac3AtmosStereoDownmix_NOT_INDICATED,
        Eac3AtmosStereoDownmix_STEREO,
        Eac3AtmosStereoDownmix_SURROUND
      ),
  )
where

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

-- | Choose how the service does stereo downmixing. Default value: Not
-- indicated (ATMOS_STORAGE_DDP_DMIXMOD_NOT_INDICATED) Related setting: To
-- have MediaConvert use this value, keep the default value, Custom
-- (SPECIFIED) for the setting Downmix control (DownmixControl). Otherwise,
-- MediaConvert ignores Stereo downmix (StereoDownmix).
newtype Eac3AtmosStereoDownmix = Eac3AtmosStereoDownmix'
  { Eac3AtmosStereoDownmix -> Text
fromEac3AtmosStereoDownmix ::
      Core.Text
  }
  deriving stock
    ( Int -> Eac3AtmosStereoDownmix -> ShowS
[Eac3AtmosStereoDownmix] -> ShowS
Eac3AtmosStereoDownmix -> String
(Int -> Eac3AtmosStereoDownmix -> ShowS)
-> (Eac3AtmosStereoDownmix -> String)
-> ([Eac3AtmosStereoDownmix] -> ShowS)
-> Show Eac3AtmosStereoDownmix
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Eac3AtmosStereoDownmix] -> ShowS
$cshowList :: [Eac3AtmosStereoDownmix] -> ShowS
show :: Eac3AtmosStereoDownmix -> String
$cshow :: Eac3AtmosStereoDownmix -> String
showsPrec :: Int -> Eac3AtmosStereoDownmix -> ShowS
$cshowsPrec :: Int -> Eac3AtmosStereoDownmix -> ShowS
Prelude.Show,
      ReadPrec [Eac3AtmosStereoDownmix]
ReadPrec Eac3AtmosStereoDownmix
Int -> ReadS Eac3AtmosStereoDownmix
ReadS [Eac3AtmosStereoDownmix]
(Int -> ReadS Eac3AtmosStereoDownmix)
-> ReadS [Eac3AtmosStereoDownmix]
-> ReadPrec Eac3AtmosStereoDownmix
-> ReadPrec [Eac3AtmosStereoDownmix]
-> Read Eac3AtmosStereoDownmix
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Eac3AtmosStereoDownmix]
$creadListPrec :: ReadPrec [Eac3AtmosStereoDownmix]
readPrec :: ReadPrec Eac3AtmosStereoDownmix
$creadPrec :: ReadPrec Eac3AtmosStereoDownmix
readList :: ReadS [Eac3AtmosStereoDownmix]
$creadList :: ReadS [Eac3AtmosStereoDownmix]
readsPrec :: Int -> ReadS Eac3AtmosStereoDownmix
$creadsPrec :: Int -> ReadS Eac3AtmosStereoDownmix
Prelude.Read,
      Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix -> Bool
(Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix -> Bool)
-> (Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix -> Bool)
-> Eq Eac3AtmosStereoDownmix
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix -> Bool
$c/= :: Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix -> Bool
== :: Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix -> Bool
$c== :: Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix -> Bool
Prelude.Eq,
      Eq Eac3AtmosStereoDownmix
Eq Eac3AtmosStereoDownmix
-> (Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix -> Ordering)
-> (Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix -> Bool)
-> (Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix -> Bool)
-> (Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix -> Bool)
-> (Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix -> Bool)
-> (Eac3AtmosStereoDownmix
    -> Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix)
-> (Eac3AtmosStereoDownmix
    -> Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix)
-> Ord Eac3AtmosStereoDownmix
Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix -> Bool
Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix -> Ordering
Eac3AtmosStereoDownmix
-> Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix
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 :: Eac3AtmosStereoDownmix
-> Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix
$cmin :: Eac3AtmosStereoDownmix
-> Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix
max :: Eac3AtmosStereoDownmix
-> Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix
$cmax :: Eac3AtmosStereoDownmix
-> Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix
>= :: Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix -> Bool
$c>= :: Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix -> Bool
> :: Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix -> Bool
$c> :: Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix -> Bool
<= :: Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix -> Bool
$c<= :: Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix -> Bool
< :: Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix -> Bool
$c< :: Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix -> Bool
compare :: Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix -> Ordering
$ccompare :: Eac3AtmosStereoDownmix -> Eac3AtmosStereoDownmix -> Ordering
$cp1Ord :: Eq Eac3AtmosStereoDownmix
Prelude.Ord,
      (forall x. Eac3AtmosStereoDownmix -> Rep Eac3AtmosStereoDownmix x)
-> (forall x.
    Rep Eac3AtmosStereoDownmix x -> Eac3AtmosStereoDownmix)
-> Generic Eac3AtmosStereoDownmix
forall x. Rep Eac3AtmosStereoDownmix x -> Eac3AtmosStereoDownmix
forall x. Eac3AtmosStereoDownmix -> Rep Eac3AtmosStereoDownmix x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Eac3AtmosStereoDownmix x -> Eac3AtmosStereoDownmix
$cfrom :: forall x. Eac3AtmosStereoDownmix -> Rep Eac3AtmosStereoDownmix x
Prelude.Generic
    )
  deriving newtype
    ( Int -> Eac3AtmosStereoDownmix -> Int
Eac3AtmosStereoDownmix -> Int
(Int -> Eac3AtmosStereoDownmix -> Int)
-> (Eac3AtmosStereoDownmix -> Int)
-> Hashable Eac3AtmosStereoDownmix
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Eac3AtmosStereoDownmix -> Int
$chash :: Eac3AtmosStereoDownmix -> Int
hashWithSalt :: Int -> Eac3AtmosStereoDownmix -> Int
$chashWithSalt :: Int -> Eac3AtmosStereoDownmix -> Int
Prelude.Hashable,
      Eac3AtmosStereoDownmix -> ()
(Eac3AtmosStereoDownmix -> ()) -> NFData Eac3AtmosStereoDownmix
forall a. (a -> ()) -> NFData a
rnf :: Eac3AtmosStereoDownmix -> ()
$crnf :: Eac3AtmosStereoDownmix -> ()
Prelude.NFData,
      Text -> Either String Eac3AtmosStereoDownmix
(Text -> Either String Eac3AtmosStereoDownmix)
-> FromText Eac3AtmosStereoDownmix
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Eac3AtmosStereoDownmix
$cfromText :: Text -> Either String Eac3AtmosStereoDownmix
Core.FromText,
      Eac3AtmosStereoDownmix -> Text
(Eac3AtmosStereoDownmix -> Text) -> ToText Eac3AtmosStereoDownmix
forall a. (a -> Text) -> ToText a
toText :: Eac3AtmosStereoDownmix -> Text
$ctoText :: Eac3AtmosStereoDownmix -> Text
Core.ToText,
      Eac3AtmosStereoDownmix -> ByteString
(Eac3AtmosStereoDownmix -> ByteString)
-> ToByteString Eac3AtmosStereoDownmix
forall a. (a -> ByteString) -> ToByteString a
toBS :: Eac3AtmosStereoDownmix -> ByteString
$ctoBS :: Eac3AtmosStereoDownmix -> ByteString
Core.ToByteString,
      Eac3AtmosStereoDownmix -> ByteStringBuilder
(Eac3AtmosStereoDownmix -> ByteStringBuilder)
-> ToLog Eac3AtmosStereoDownmix
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Eac3AtmosStereoDownmix -> ByteStringBuilder
$cbuild :: Eac3AtmosStereoDownmix -> ByteStringBuilder
Core.ToLog,
      HeaderName -> Eac3AtmosStereoDownmix -> [Header]
(HeaderName -> Eac3AtmosStereoDownmix -> [Header])
-> ToHeader Eac3AtmosStereoDownmix
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Eac3AtmosStereoDownmix -> [Header]
$ctoHeader :: HeaderName -> Eac3AtmosStereoDownmix -> [Header]
Core.ToHeader,
      Eac3AtmosStereoDownmix -> QueryString
(Eac3AtmosStereoDownmix -> QueryString)
-> ToQuery Eac3AtmosStereoDownmix
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Eac3AtmosStereoDownmix -> QueryString
$ctoQuery :: Eac3AtmosStereoDownmix -> QueryString
Core.ToQuery,
      Value -> Parser [Eac3AtmosStereoDownmix]
Value -> Parser Eac3AtmosStereoDownmix
(Value -> Parser Eac3AtmosStereoDownmix)
-> (Value -> Parser [Eac3AtmosStereoDownmix])
-> FromJSON Eac3AtmosStereoDownmix
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Eac3AtmosStereoDownmix]
$cparseJSONList :: Value -> Parser [Eac3AtmosStereoDownmix]
parseJSON :: Value -> Parser Eac3AtmosStereoDownmix
$cparseJSON :: Value -> Parser Eac3AtmosStereoDownmix
Core.FromJSON,
      FromJSONKeyFunction [Eac3AtmosStereoDownmix]
FromJSONKeyFunction Eac3AtmosStereoDownmix
FromJSONKeyFunction Eac3AtmosStereoDownmix
-> FromJSONKeyFunction [Eac3AtmosStereoDownmix]
-> FromJSONKey Eac3AtmosStereoDownmix
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Eac3AtmosStereoDownmix]
$cfromJSONKeyList :: FromJSONKeyFunction [Eac3AtmosStereoDownmix]
fromJSONKey :: FromJSONKeyFunction Eac3AtmosStereoDownmix
$cfromJSONKey :: FromJSONKeyFunction Eac3AtmosStereoDownmix
Core.FromJSONKey,
      [Eac3AtmosStereoDownmix] -> Encoding
[Eac3AtmosStereoDownmix] -> Value
Eac3AtmosStereoDownmix -> Encoding
Eac3AtmosStereoDownmix -> Value
(Eac3AtmosStereoDownmix -> Value)
-> (Eac3AtmosStereoDownmix -> Encoding)
-> ([Eac3AtmosStereoDownmix] -> Value)
-> ([Eac3AtmosStereoDownmix] -> Encoding)
-> ToJSON Eac3AtmosStereoDownmix
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Eac3AtmosStereoDownmix] -> Encoding
$ctoEncodingList :: [Eac3AtmosStereoDownmix] -> Encoding
toJSONList :: [Eac3AtmosStereoDownmix] -> Value
$ctoJSONList :: [Eac3AtmosStereoDownmix] -> Value
toEncoding :: Eac3AtmosStereoDownmix -> Encoding
$ctoEncoding :: Eac3AtmosStereoDownmix -> Encoding
toJSON :: Eac3AtmosStereoDownmix -> Value
$ctoJSON :: Eac3AtmosStereoDownmix -> Value
Core.ToJSON,
      ToJSONKeyFunction [Eac3AtmosStereoDownmix]
ToJSONKeyFunction Eac3AtmosStereoDownmix
ToJSONKeyFunction Eac3AtmosStereoDownmix
-> ToJSONKeyFunction [Eac3AtmosStereoDownmix]
-> ToJSONKey Eac3AtmosStereoDownmix
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Eac3AtmosStereoDownmix]
$ctoJSONKeyList :: ToJSONKeyFunction [Eac3AtmosStereoDownmix]
toJSONKey :: ToJSONKeyFunction Eac3AtmosStereoDownmix
$ctoJSONKey :: ToJSONKeyFunction Eac3AtmosStereoDownmix
Core.ToJSONKey,
      [Node] -> Either String Eac3AtmosStereoDownmix
([Node] -> Either String Eac3AtmosStereoDownmix)
-> FromXML Eac3AtmosStereoDownmix
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Eac3AtmosStereoDownmix
$cparseXML :: [Node] -> Either String Eac3AtmosStereoDownmix
Core.FromXML,
      Eac3AtmosStereoDownmix -> XML
(Eac3AtmosStereoDownmix -> XML) -> ToXML Eac3AtmosStereoDownmix
forall a. (a -> XML) -> ToXML a
toXML :: Eac3AtmosStereoDownmix -> XML
$ctoXML :: Eac3AtmosStereoDownmix -> XML
Core.ToXML
    )

pattern Eac3AtmosStereoDownmix_DPL2 :: Eac3AtmosStereoDownmix
pattern $bEac3AtmosStereoDownmix_DPL2 :: Eac3AtmosStereoDownmix
$mEac3AtmosStereoDownmix_DPL2 :: forall r.
Eac3AtmosStereoDownmix -> (Void# -> r) -> (Void# -> r) -> r
Eac3AtmosStereoDownmix_DPL2 = Eac3AtmosStereoDownmix' "DPL2"

pattern Eac3AtmosStereoDownmix_NOT_INDICATED :: Eac3AtmosStereoDownmix
pattern $bEac3AtmosStereoDownmix_NOT_INDICATED :: Eac3AtmosStereoDownmix
$mEac3AtmosStereoDownmix_NOT_INDICATED :: forall r.
Eac3AtmosStereoDownmix -> (Void# -> r) -> (Void# -> r) -> r
Eac3AtmosStereoDownmix_NOT_INDICATED = Eac3AtmosStereoDownmix' "NOT_INDICATED"

pattern Eac3AtmosStereoDownmix_STEREO :: Eac3AtmosStereoDownmix
pattern $bEac3AtmosStereoDownmix_STEREO :: Eac3AtmosStereoDownmix
$mEac3AtmosStereoDownmix_STEREO :: forall r.
Eac3AtmosStereoDownmix -> (Void# -> r) -> (Void# -> r) -> r
Eac3AtmosStereoDownmix_STEREO = Eac3AtmosStereoDownmix' "STEREO"

pattern Eac3AtmosStereoDownmix_SURROUND :: Eac3AtmosStereoDownmix
pattern $bEac3AtmosStereoDownmix_SURROUND :: Eac3AtmosStereoDownmix
$mEac3AtmosStereoDownmix_SURROUND :: forall r.
Eac3AtmosStereoDownmix -> (Void# -> r) -> (Void# -> r) -> r
Eac3AtmosStereoDownmix_SURROUND = Eac3AtmosStereoDownmix' "SURROUND"

{-# COMPLETE
  Eac3AtmosStereoDownmix_DPL2,
  Eac3AtmosStereoDownmix_NOT_INDICATED,
  Eac3AtmosStereoDownmix_STEREO,
  Eac3AtmosStereoDownmix_SURROUND,
  Eac3AtmosStereoDownmix'
  #-}