{-# 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.Eac3CodingMode
-- 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.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.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | Eac3 Coding Mode
newtype Eac3CodingMode = Eac3CodingMode'
  { Eac3CodingMode -> Text
fromEac3CodingMode ::
      Data.Text
  }
  deriving stock
    ( Int -> Eac3CodingMode -> ShowS
[Eac3CodingMode] -> ShowS
Eac3CodingMode -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq Eac3CodingMode
Int -> Eac3CodingMode -> Int
Eac3CodingMode -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: Eac3CodingMode -> ()
$crnf :: Eac3CodingMode -> ()
Prelude.NFData,
      Text -> Either String Eac3CodingMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Eac3CodingMode
$cfromText :: Text -> Either String Eac3CodingMode
Data.FromText,
      Eac3CodingMode -> Text
forall a. (a -> Text) -> ToText a
toText :: Eac3CodingMode -> Text
$ctoText :: Eac3CodingMode -> Text
Data.ToText,
      Eac3CodingMode -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: Eac3CodingMode -> ByteString
$ctoBS :: Eac3CodingMode -> ByteString
Data.ToByteString,
      Eac3CodingMode -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Eac3CodingMode -> ByteStringBuilder
$cbuild :: Eac3CodingMode -> ByteStringBuilder
Data.ToLog,
      HeaderName -> Eac3CodingMode -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Eac3CodingMode -> [Header]
$ctoHeader :: HeaderName -> Eac3CodingMode -> [Header]
Data.ToHeader,
      Eac3CodingMode -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Eac3CodingMode -> QueryString
$ctoQuery :: Eac3CodingMode -> QueryString
Data.ToQuery,
      Value -> Parser [Eac3CodingMode]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [Eac3CodingMode]
FromJSONKeyFunction Eac3CodingMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Eac3CodingMode]
$cfromJSONKeyList :: FromJSONKeyFunction [Eac3CodingMode]
fromJSONKey :: FromJSONKeyFunction Eac3CodingMode
$cfromJSONKey :: FromJSONKeyFunction Eac3CodingMode
Data.FromJSONKey,
      [Eac3CodingMode] -> Encoding
[Eac3CodingMode] -> Value
Eac3CodingMode -> Encoding
Eac3CodingMode -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [Eac3CodingMode]
ToJSONKeyFunction Eac3CodingMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Eac3CodingMode]
$ctoJSONKeyList :: ToJSONKeyFunction [Eac3CodingMode]
toJSONKey :: ToJSONKeyFunction Eac3CodingMode
$ctoJSONKey :: ToJSONKeyFunction Eac3CodingMode
Data.ToJSONKey,
      [Node] -> Either String Eac3CodingMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Eac3CodingMode
$cparseXML :: [Node] -> Either String Eac3CodingMode
Data.FromXML,
      Eac3CodingMode -> XML
forall a. (a -> XML) -> ToXML a
toXML :: Eac3CodingMode -> XML
$ctoXML :: Eac3CodingMode -> XML
Data.ToXML
    )

pattern Eac3CodingMode_CODING_MODE_1_0 :: Eac3CodingMode
pattern $bEac3CodingMode_CODING_MODE_1_0 :: Eac3CodingMode
$mEac3CodingMode_CODING_MODE_1_0 :: forall {r}. Eac3CodingMode -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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'
  #-}