{-# 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-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.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.Prelude as Prelude

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

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

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

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

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

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

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