{-# 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.Eac3StereoDownmix
-- 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.Eac3StereoDownmix
  ( Eac3StereoDownmix
      ( ..,
        Eac3StereoDownmix_DPL2,
        Eac3StereoDownmix_LO_RO,
        Eac3StereoDownmix_LT_RT,
        Eac3StereoDownmix_NOT_INDICATED
      ),
  )
where

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

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

pattern Eac3StereoDownmix_DPL2 :: Eac3StereoDownmix
pattern $bEac3StereoDownmix_DPL2 :: Eac3StereoDownmix
$mEac3StereoDownmix_DPL2 :: forall {r}. Eac3StereoDownmix -> ((# #) -> r) -> ((# #) -> r) -> r
Eac3StereoDownmix_DPL2 = Eac3StereoDownmix' "DPL2"

pattern Eac3StereoDownmix_LO_RO :: Eac3StereoDownmix
pattern $bEac3StereoDownmix_LO_RO :: Eac3StereoDownmix
$mEac3StereoDownmix_LO_RO :: forall {r}. Eac3StereoDownmix -> ((# #) -> r) -> ((# #) -> r) -> r
Eac3StereoDownmix_LO_RO = Eac3StereoDownmix' "LO_RO"

pattern Eac3StereoDownmix_LT_RT :: Eac3StereoDownmix
pattern $bEac3StereoDownmix_LT_RT :: Eac3StereoDownmix
$mEac3StereoDownmix_LT_RT :: forall {r}. Eac3StereoDownmix -> ((# #) -> r) -> ((# #) -> r) -> r
Eac3StereoDownmix_LT_RT = Eac3StereoDownmix' "LT_RT"

pattern Eac3StereoDownmix_NOT_INDICATED :: Eac3StereoDownmix
pattern $bEac3StereoDownmix_NOT_INDICATED :: Eac3StereoDownmix
$mEac3StereoDownmix_NOT_INDICATED :: forall {r}. Eac3StereoDownmix -> ((# #) -> r) -> ((# #) -> r) -> r
Eac3StereoDownmix_NOT_INDICATED = Eac3StereoDownmix' "NOT_INDICATED"

{-# COMPLETE
  Eac3StereoDownmix_DPL2,
  Eac3StereoDownmix_LO_RO,
  Eac3StereoDownmix_LT_RT,
  Eac3StereoDownmix_NOT_INDICATED,
  Eac3StereoDownmix'
  #-}