{-# 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.Ac3CodingMode
-- 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.Ac3CodingMode
  ( Ac3CodingMode
      ( ..,
        Ac3CodingMode_CODING_MODE_1_0,
        Ac3CodingMode_CODING_MODE_1_1,
        Ac3CodingMode_CODING_MODE_2_0,
        Ac3CodingMode_CODING_MODE_3_2_LFE
      ),
  )
where

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

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

pattern Ac3CodingMode_CODING_MODE_1_0 :: Ac3CodingMode
pattern $bAc3CodingMode_CODING_MODE_1_0 :: Ac3CodingMode
$mAc3CodingMode_CODING_MODE_1_0 :: forall {r}. Ac3CodingMode -> ((# #) -> r) -> ((# #) -> r) -> r
Ac3CodingMode_CODING_MODE_1_0 = Ac3CodingMode' "CODING_MODE_1_0"

pattern Ac3CodingMode_CODING_MODE_1_1 :: Ac3CodingMode
pattern $bAc3CodingMode_CODING_MODE_1_1 :: Ac3CodingMode
$mAc3CodingMode_CODING_MODE_1_1 :: forall {r}. Ac3CodingMode -> ((# #) -> r) -> ((# #) -> r) -> r
Ac3CodingMode_CODING_MODE_1_1 = Ac3CodingMode' "CODING_MODE_1_1"

pattern Ac3CodingMode_CODING_MODE_2_0 :: Ac3CodingMode
pattern $bAc3CodingMode_CODING_MODE_2_0 :: Ac3CodingMode
$mAc3CodingMode_CODING_MODE_2_0 :: forall {r}. Ac3CodingMode -> ((# #) -> r) -> ((# #) -> r) -> r
Ac3CodingMode_CODING_MODE_2_0 = Ac3CodingMode' "CODING_MODE_2_0"

pattern Ac3CodingMode_CODING_MODE_3_2_LFE :: Ac3CodingMode
pattern $bAc3CodingMode_CODING_MODE_3_2_LFE :: Ac3CodingMode
$mAc3CodingMode_CODING_MODE_3_2_LFE :: forall {r}. Ac3CodingMode -> ((# #) -> r) -> ((# #) -> r) -> r
Ac3CodingMode_CODING_MODE_3_2_LFE = Ac3CodingMode' "CODING_MODE_3_2_LFE"

{-# COMPLETE
  Ac3CodingMode_CODING_MODE_1_0,
  Ac3CodingMode_CODING_MODE_1_1,
  Ac3CodingMode_CODING_MODE_2_0,
  Ac3CodingMode_CODING_MODE_3_2_LFE,
  Ac3CodingMode'
  #-}