{-# 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.Eac3BitstreamMode
-- 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.Eac3BitstreamMode
  ( Eac3BitstreamMode
      ( ..,
        Eac3BitstreamMode_COMMENTARY,
        Eac3BitstreamMode_COMPLETE_MAIN,
        Eac3BitstreamMode_EMERGENCY,
        Eac3BitstreamMode_HEARING_IMPAIRED,
        Eac3BitstreamMode_VISUALLY_IMPAIRED
      ),
  )
where

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

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

pattern Eac3BitstreamMode_COMMENTARY :: Eac3BitstreamMode
pattern $bEac3BitstreamMode_COMMENTARY :: Eac3BitstreamMode
$mEac3BitstreamMode_COMMENTARY :: forall {r}. Eac3BitstreamMode -> ((# #) -> r) -> ((# #) -> r) -> r
Eac3BitstreamMode_COMMENTARY = Eac3BitstreamMode' "COMMENTARY"

pattern Eac3BitstreamMode_COMPLETE_MAIN :: Eac3BitstreamMode
pattern $bEac3BitstreamMode_COMPLETE_MAIN :: Eac3BitstreamMode
$mEac3BitstreamMode_COMPLETE_MAIN :: forall {r}. Eac3BitstreamMode -> ((# #) -> r) -> ((# #) -> r) -> r
Eac3BitstreamMode_COMPLETE_MAIN = Eac3BitstreamMode' "COMPLETE_MAIN"

pattern Eac3BitstreamMode_EMERGENCY :: Eac3BitstreamMode
pattern $bEac3BitstreamMode_EMERGENCY :: Eac3BitstreamMode
$mEac3BitstreamMode_EMERGENCY :: forall {r}. Eac3BitstreamMode -> ((# #) -> r) -> ((# #) -> r) -> r
Eac3BitstreamMode_EMERGENCY = Eac3BitstreamMode' "EMERGENCY"

pattern Eac3BitstreamMode_HEARING_IMPAIRED :: Eac3BitstreamMode
pattern $bEac3BitstreamMode_HEARING_IMPAIRED :: Eac3BitstreamMode
$mEac3BitstreamMode_HEARING_IMPAIRED :: forall {r}. Eac3BitstreamMode -> ((# #) -> r) -> ((# #) -> r) -> r
Eac3BitstreamMode_HEARING_IMPAIRED = Eac3BitstreamMode' "HEARING_IMPAIRED"

pattern Eac3BitstreamMode_VISUALLY_IMPAIRED :: Eac3BitstreamMode
pattern $bEac3BitstreamMode_VISUALLY_IMPAIRED :: Eac3BitstreamMode
$mEac3BitstreamMode_VISUALLY_IMPAIRED :: forall {r}. Eac3BitstreamMode -> ((# #) -> r) -> ((# #) -> r) -> r
Eac3BitstreamMode_VISUALLY_IMPAIRED = Eac3BitstreamMode' "VISUALLY_IMPAIRED"

{-# COMPLETE
  Eac3BitstreamMode_COMMENTARY,
  Eac3BitstreamMode_COMPLETE_MAIN,
  Eac3BitstreamMode_EMERGENCY,
  Eac3BitstreamMode_HEARING_IMPAIRED,
  Eac3BitstreamMode_VISUALLY_IMPAIRED,
  Eac3BitstreamMode'
  #-}