{-# 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.Eac3AtmosCodingMode
-- 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.Eac3AtmosCodingMode
  ( Eac3AtmosCodingMode
      ( ..,
        Eac3AtmosCodingMode_CODING_MODE_5_1_4,
        Eac3AtmosCodingMode_CODING_MODE_7_1_4,
        Eac3AtmosCodingMode_CODING_MODE_9_1_6,
        Eac3AtmosCodingMode_CODING_MODE_AUTO
      ),
  )
where

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

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

pattern Eac3AtmosCodingMode_CODING_MODE_5_1_4 :: Eac3AtmosCodingMode
pattern $bEac3AtmosCodingMode_CODING_MODE_5_1_4 :: Eac3AtmosCodingMode
$mEac3AtmosCodingMode_CODING_MODE_5_1_4 :: forall r. Eac3AtmosCodingMode -> (Void# -> r) -> (Void# -> r) -> r
Eac3AtmosCodingMode_CODING_MODE_5_1_4 = Eac3AtmosCodingMode' "CODING_MODE_5_1_4"

pattern Eac3AtmosCodingMode_CODING_MODE_7_1_4 :: Eac3AtmosCodingMode
pattern $bEac3AtmosCodingMode_CODING_MODE_7_1_4 :: Eac3AtmosCodingMode
$mEac3AtmosCodingMode_CODING_MODE_7_1_4 :: forall r. Eac3AtmosCodingMode -> (Void# -> r) -> (Void# -> r) -> r
Eac3AtmosCodingMode_CODING_MODE_7_1_4 = Eac3AtmosCodingMode' "CODING_MODE_7_1_4"

pattern Eac3AtmosCodingMode_CODING_MODE_9_1_6 :: Eac3AtmosCodingMode
pattern $bEac3AtmosCodingMode_CODING_MODE_9_1_6 :: Eac3AtmosCodingMode
$mEac3AtmosCodingMode_CODING_MODE_9_1_6 :: forall r. Eac3AtmosCodingMode -> (Void# -> r) -> (Void# -> r) -> r
Eac3AtmosCodingMode_CODING_MODE_9_1_6 = Eac3AtmosCodingMode' "CODING_MODE_9_1_6"

pattern Eac3AtmosCodingMode_CODING_MODE_AUTO :: Eac3AtmosCodingMode
pattern $bEac3AtmosCodingMode_CODING_MODE_AUTO :: Eac3AtmosCodingMode
$mEac3AtmosCodingMode_CODING_MODE_AUTO :: forall r. Eac3AtmosCodingMode -> (Void# -> r) -> (Void# -> r) -> r
Eac3AtmosCodingMode_CODING_MODE_AUTO = Eac3AtmosCodingMode' "CODING_MODE_AUTO"

{-# COMPLETE
  Eac3AtmosCodingMode_CODING_MODE_5_1_4,
  Eac3AtmosCodingMode_CODING_MODE_7_1_4,
  Eac3AtmosCodingMode_CODING_MODE_9_1_6,
  Eac3AtmosCodingMode_CODING_MODE_AUTO,
  Eac3AtmosCodingMode'
  #-}