{-# 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.Eac3SurroundExMode
-- 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.Eac3SurroundExMode
  ( Eac3SurroundExMode
      ( ..,
        Eac3SurroundExMode_DISABLED,
        Eac3SurroundExMode_ENABLED,
        Eac3SurroundExMode_NOT_INDICATED
      ),
  )
where

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

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

pattern Eac3SurroundExMode_DISABLED :: Eac3SurroundExMode
pattern $bEac3SurroundExMode_DISABLED :: Eac3SurroundExMode
$mEac3SurroundExMode_DISABLED :: forall r. Eac3SurroundExMode -> (Void# -> r) -> (Void# -> r) -> r
Eac3SurroundExMode_DISABLED = Eac3SurroundExMode' "DISABLED"

pattern Eac3SurroundExMode_ENABLED :: Eac3SurroundExMode
pattern $bEac3SurroundExMode_ENABLED :: Eac3SurroundExMode
$mEac3SurroundExMode_ENABLED :: forall r. Eac3SurroundExMode -> (Void# -> r) -> (Void# -> r) -> r
Eac3SurroundExMode_ENABLED = Eac3SurroundExMode' "ENABLED"

pattern Eac3SurroundExMode_NOT_INDICATED :: Eac3SurroundExMode
pattern $bEac3SurroundExMode_NOT_INDICATED :: Eac3SurroundExMode
$mEac3SurroundExMode_NOT_INDICATED :: forall r. Eac3SurroundExMode -> (Void# -> r) -> (Void# -> r) -> r
Eac3SurroundExMode_NOT_INDICATED = Eac3SurroundExMode' "NOT_INDICATED"

{-# COMPLETE
  Eac3SurroundExMode_DISABLED,
  Eac3SurroundExMode_ENABLED,
  Eac3SurroundExMode_NOT_INDICATED,
  Eac3SurroundExMode'
  #-}