{-# 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.Eac3CodingMode
-- 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.Eac3CodingMode
  ( Eac3CodingMode
      ( ..,
        Eac3CodingMode_CODING_MODE_1_0,
        Eac3CodingMode_CODING_MODE_2_0,
        Eac3CodingMode_CODING_MODE_3_2
      ),
  )
where

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

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

pattern Eac3CodingMode_CODING_MODE_1_0 :: Eac3CodingMode
pattern $bEac3CodingMode_CODING_MODE_1_0 :: Eac3CodingMode
$mEac3CodingMode_CODING_MODE_1_0 :: forall r. Eac3CodingMode -> (Void# -> r) -> (Void# -> r) -> r
Eac3CodingMode_CODING_MODE_1_0 = Eac3CodingMode' "CODING_MODE_1_0"

pattern Eac3CodingMode_CODING_MODE_2_0 :: Eac3CodingMode
pattern $bEac3CodingMode_CODING_MODE_2_0 :: Eac3CodingMode
$mEac3CodingMode_CODING_MODE_2_0 :: forall r. Eac3CodingMode -> (Void# -> r) -> (Void# -> r) -> r
Eac3CodingMode_CODING_MODE_2_0 = Eac3CodingMode' "CODING_MODE_2_0"

pattern Eac3CodingMode_CODING_MODE_3_2 :: Eac3CodingMode
pattern $bEac3CodingMode_CODING_MODE_3_2 :: Eac3CodingMode
$mEac3CodingMode_CODING_MODE_3_2 :: forall r. Eac3CodingMode -> (Void# -> r) -> (Void# -> r) -> r
Eac3CodingMode_CODING_MODE_3_2 = Eac3CodingMode' "CODING_MODE_3_2"

{-# COMPLETE
  Eac3CodingMode_CODING_MODE_1_0,
  Eac3CodingMode_CODING_MODE_2_0,
  Eac3CodingMode_CODING_MODE_3_2,
  Eac3CodingMode'
  #-}