{-# 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.Ac3BitstreamMode
-- 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.Ac3BitstreamMode
  ( Ac3BitstreamMode
      ( ..,
        Ac3BitstreamMode_COMMENTARY,
        Ac3BitstreamMode_COMPLETE_MAIN,
        Ac3BitstreamMode_DIALOGUE,
        Ac3BitstreamMode_EMERGENCY,
        Ac3BitstreamMode_HEARING_IMPAIRED,
        Ac3BitstreamMode_MUSIC_AND_EFFECTS,
        Ac3BitstreamMode_VISUALLY_IMPAIRED,
        Ac3BitstreamMode_VOICE_OVER
      ),
  )
where

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

-- | Specify the bitstream mode for the AC-3 stream that the encoder emits.
-- For more information about the AC3 bitstream mode, see ATSC A\/52-2012
-- (Annex E).
newtype Ac3BitstreamMode = Ac3BitstreamMode'
  { Ac3BitstreamMode -> Text
fromAc3BitstreamMode ::
      Core.Text
  }
  deriving stock
    ( Int -> Ac3BitstreamMode -> ShowS
[Ac3BitstreamMode] -> ShowS
Ac3BitstreamMode -> String
(Int -> Ac3BitstreamMode -> ShowS)
-> (Ac3BitstreamMode -> String)
-> ([Ac3BitstreamMode] -> ShowS)
-> Show Ac3BitstreamMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Ac3BitstreamMode] -> ShowS
$cshowList :: [Ac3BitstreamMode] -> ShowS
show :: Ac3BitstreamMode -> String
$cshow :: Ac3BitstreamMode -> String
showsPrec :: Int -> Ac3BitstreamMode -> ShowS
$cshowsPrec :: Int -> Ac3BitstreamMode -> ShowS
Prelude.Show,
      ReadPrec [Ac3BitstreamMode]
ReadPrec Ac3BitstreamMode
Int -> ReadS Ac3BitstreamMode
ReadS [Ac3BitstreamMode]
(Int -> ReadS Ac3BitstreamMode)
-> ReadS [Ac3BitstreamMode]
-> ReadPrec Ac3BitstreamMode
-> ReadPrec [Ac3BitstreamMode]
-> Read Ac3BitstreamMode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Ac3BitstreamMode]
$creadListPrec :: ReadPrec [Ac3BitstreamMode]
readPrec :: ReadPrec Ac3BitstreamMode
$creadPrec :: ReadPrec Ac3BitstreamMode
readList :: ReadS [Ac3BitstreamMode]
$creadList :: ReadS [Ac3BitstreamMode]
readsPrec :: Int -> ReadS Ac3BitstreamMode
$creadsPrec :: Int -> ReadS Ac3BitstreamMode
Prelude.Read,
      Ac3BitstreamMode -> Ac3BitstreamMode -> Bool
(Ac3BitstreamMode -> Ac3BitstreamMode -> Bool)
-> (Ac3BitstreamMode -> Ac3BitstreamMode -> Bool)
-> Eq Ac3BitstreamMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Ac3BitstreamMode -> Ac3BitstreamMode -> Bool
$c/= :: Ac3BitstreamMode -> Ac3BitstreamMode -> Bool
== :: Ac3BitstreamMode -> Ac3BitstreamMode -> Bool
$c== :: Ac3BitstreamMode -> Ac3BitstreamMode -> Bool
Prelude.Eq,
      Eq Ac3BitstreamMode
Eq Ac3BitstreamMode
-> (Ac3BitstreamMode -> Ac3BitstreamMode -> Ordering)
-> (Ac3BitstreamMode -> Ac3BitstreamMode -> Bool)
-> (Ac3BitstreamMode -> Ac3BitstreamMode -> Bool)
-> (Ac3BitstreamMode -> Ac3BitstreamMode -> Bool)
-> (Ac3BitstreamMode -> Ac3BitstreamMode -> Bool)
-> (Ac3BitstreamMode -> Ac3BitstreamMode -> Ac3BitstreamMode)
-> (Ac3BitstreamMode -> Ac3BitstreamMode -> Ac3BitstreamMode)
-> Ord Ac3BitstreamMode
Ac3BitstreamMode -> Ac3BitstreamMode -> Bool
Ac3BitstreamMode -> Ac3BitstreamMode -> Ordering
Ac3BitstreamMode -> Ac3BitstreamMode -> Ac3BitstreamMode
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 :: Ac3BitstreamMode -> Ac3BitstreamMode -> Ac3BitstreamMode
$cmin :: Ac3BitstreamMode -> Ac3BitstreamMode -> Ac3BitstreamMode
max :: Ac3BitstreamMode -> Ac3BitstreamMode -> Ac3BitstreamMode
$cmax :: Ac3BitstreamMode -> Ac3BitstreamMode -> Ac3BitstreamMode
>= :: Ac3BitstreamMode -> Ac3BitstreamMode -> Bool
$c>= :: Ac3BitstreamMode -> Ac3BitstreamMode -> Bool
> :: Ac3BitstreamMode -> Ac3BitstreamMode -> Bool
$c> :: Ac3BitstreamMode -> Ac3BitstreamMode -> Bool
<= :: Ac3BitstreamMode -> Ac3BitstreamMode -> Bool
$c<= :: Ac3BitstreamMode -> Ac3BitstreamMode -> Bool
< :: Ac3BitstreamMode -> Ac3BitstreamMode -> Bool
$c< :: Ac3BitstreamMode -> Ac3BitstreamMode -> Bool
compare :: Ac3BitstreamMode -> Ac3BitstreamMode -> Ordering
$ccompare :: Ac3BitstreamMode -> Ac3BitstreamMode -> Ordering
$cp1Ord :: Eq Ac3BitstreamMode
Prelude.Ord,
      (forall x. Ac3BitstreamMode -> Rep Ac3BitstreamMode x)
-> (forall x. Rep Ac3BitstreamMode x -> Ac3BitstreamMode)
-> Generic Ac3BitstreamMode
forall x. Rep Ac3BitstreamMode x -> Ac3BitstreamMode
forall x. Ac3BitstreamMode -> Rep Ac3BitstreamMode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Ac3BitstreamMode x -> Ac3BitstreamMode
$cfrom :: forall x. Ac3BitstreamMode -> Rep Ac3BitstreamMode x
Prelude.Generic
    )
  deriving newtype
    ( Int -> Ac3BitstreamMode -> Int
Ac3BitstreamMode -> Int
(Int -> Ac3BitstreamMode -> Int)
-> (Ac3BitstreamMode -> Int) -> Hashable Ac3BitstreamMode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Ac3BitstreamMode -> Int
$chash :: Ac3BitstreamMode -> Int
hashWithSalt :: Int -> Ac3BitstreamMode -> Int
$chashWithSalt :: Int -> Ac3BitstreamMode -> Int
Prelude.Hashable,
      Ac3BitstreamMode -> ()
(Ac3BitstreamMode -> ()) -> NFData Ac3BitstreamMode
forall a. (a -> ()) -> NFData a
rnf :: Ac3BitstreamMode -> ()
$crnf :: Ac3BitstreamMode -> ()
Prelude.NFData,
      Text -> Either String Ac3BitstreamMode
(Text -> Either String Ac3BitstreamMode)
-> FromText Ac3BitstreamMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Ac3BitstreamMode
$cfromText :: Text -> Either String Ac3BitstreamMode
Core.FromText,
      Ac3BitstreamMode -> Text
(Ac3BitstreamMode -> Text) -> ToText Ac3BitstreamMode
forall a. (a -> Text) -> ToText a
toText :: Ac3BitstreamMode -> Text
$ctoText :: Ac3BitstreamMode -> Text
Core.ToText,
      Ac3BitstreamMode -> ByteString
(Ac3BitstreamMode -> ByteString) -> ToByteString Ac3BitstreamMode
forall a. (a -> ByteString) -> ToByteString a
toBS :: Ac3BitstreamMode -> ByteString
$ctoBS :: Ac3BitstreamMode -> ByteString
Core.ToByteString,
      Ac3BitstreamMode -> ByteStringBuilder
(Ac3BitstreamMode -> ByteStringBuilder) -> ToLog Ac3BitstreamMode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Ac3BitstreamMode -> ByteStringBuilder
$cbuild :: Ac3BitstreamMode -> ByteStringBuilder
Core.ToLog,
      HeaderName -> Ac3BitstreamMode -> [Header]
(HeaderName -> Ac3BitstreamMode -> [Header])
-> ToHeader Ac3BitstreamMode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Ac3BitstreamMode -> [Header]
$ctoHeader :: HeaderName -> Ac3BitstreamMode -> [Header]
Core.ToHeader,
      Ac3BitstreamMode -> QueryString
(Ac3BitstreamMode -> QueryString) -> ToQuery Ac3BitstreamMode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Ac3BitstreamMode -> QueryString
$ctoQuery :: Ac3BitstreamMode -> QueryString
Core.ToQuery,
      Value -> Parser [Ac3BitstreamMode]
Value -> Parser Ac3BitstreamMode
(Value -> Parser Ac3BitstreamMode)
-> (Value -> Parser [Ac3BitstreamMode])
-> FromJSON Ac3BitstreamMode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Ac3BitstreamMode]
$cparseJSONList :: Value -> Parser [Ac3BitstreamMode]
parseJSON :: Value -> Parser Ac3BitstreamMode
$cparseJSON :: Value -> Parser Ac3BitstreamMode
Core.FromJSON,
      FromJSONKeyFunction [Ac3BitstreamMode]
FromJSONKeyFunction Ac3BitstreamMode
FromJSONKeyFunction Ac3BitstreamMode
-> FromJSONKeyFunction [Ac3BitstreamMode]
-> FromJSONKey Ac3BitstreamMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Ac3BitstreamMode]
$cfromJSONKeyList :: FromJSONKeyFunction [Ac3BitstreamMode]
fromJSONKey :: FromJSONKeyFunction Ac3BitstreamMode
$cfromJSONKey :: FromJSONKeyFunction Ac3BitstreamMode
Core.FromJSONKey,
      [Ac3BitstreamMode] -> Encoding
[Ac3BitstreamMode] -> Value
Ac3BitstreamMode -> Encoding
Ac3BitstreamMode -> Value
(Ac3BitstreamMode -> Value)
-> (Ac3BitstreamMode -> Encoding)
-> ([Ac3BitstreamMode] -> Value)
-> ([Ac3BitstreamMode] -> Encoding)
-> ToJSON Ac3BitstreamMode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Ac3BitstreamMode] -> Encoding
$ctoEncodingList :: [Ac3BitstreamMode] -> Encoding
toJSONList :: [Ac3BitstreamMode] -> Value
$ctoJSONList :: [Ac3BitstreamMode] -> Value
toEncoding :: Ac3BitstreamMode -> Encoding
$ctoEncoding :: Ac3BitstreamMode -> Encoding
toJSON :: Ac3BitstreamMode -> Value
$ctoJSON :: Ac3BitstreamMode -> Value
Core.ToJSON,
      ToJSONKeyFunction [Ac3BitstreamMode]
ToJSONKeyFunction Ac3BitstreamMode
ToJSONKeyFunction Ac3BitstreamMode
-> ToJSONKeyFunction [Ac3BitstreamMode]
-> ToJSONKey Ac3BitstreamMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Ac3BitstreamMode]
$ctoJSONKeyList :: ToJSONKeyFunction [Ac3BitstreamMode]
toJSONKey :: ToJSONKeyFunction Ac3BitstreamMode
$ctoJSONKey :: ToJSONKeyFunction Ac3BitstreamMode
Core.ToJSONKey,
      [Node] -> Either String Ac3BitstreamMode
([Node] -> Either String Ac3BitstreamMode)
-> FromXML Ac3BitstreamMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Ac3BitstreamMode
$cparseXML :: [Node] -> Either String Ac3BitstreamMode
Core.FromXML,
      Ac3BitstreamMode -> XML
(Ac3BitstreamMode -> XML) -> ToXML Ac3BitstreamMode
forall a. (a -> XML) -> ToXML a
toXML :: Ac3BitstreamMode -> XML
$ctoXML :: Ac3BitstreamMode -> XML
Core.ToXML
    )

pattern Ac3BitstreamMode_COMMENTARY :: Ac3BitstreamMode
pattern $bAc3BitstreamMode_COMMENTARY :: Ac3BitstreamMode
$mAc3BitstreamMode_COMMENTARY :: forall r. Ac3BitstreamMode -> (Void# -> r) -> (Void# -> r) -> r
Ac3BitstreamMode_COMMENTARY = Ac3BitstreamMode' "COMMENTARY"

pattern Ac3BitstreamMode_COMPLETE_MAIN :: Ac3BitstreamMode
pattern $bAc3BitstreamMode_COMPLETE_MAIN :: Ac3BitstreamMode
$mAc3BitstreamMode_COMPLETE_MAIN :: forall r. Ac3BitstreamMode -> (Void# -> r) -> (Void# -> r) -> r
Ac3BitstreamMode_COMPLETE_MAIN = Ac3BitstreamMode' "COMPLETE_MAIN"

pattern Ac3BitstreamMode_DIALOGUE :: Ac3BitstreamMode
pattern $bAc3BitstreamMode_DIALOGUE :: Ac3BitstreamMode
$mAc3BitstreamMode_DIALOGUE :: forall r. Ac3BitstreamMode -> (Void# -> r) -> (Void# -> r) -> r
Ac3BitstreamMode_DIALOGUE = Ac3BitstreamMode' "DIALOGUE"

pattern Ac3BitstreamMode_EMERGENCY :: Ac3BitstreamMode
pattern $bAc3BitstreamMode_EMERGENCY :: Ac3BitstreamMode
$mAc3BitstreamMode_EMERGENCY :: forall r. Ac3BitstreamMode -> (Void# -> r) -> (Void# -> r) -> r
Ac3BitstreamMode_EMERGENCY = Ac3BitstreamMode' "EMERGENCY"

pattern Ac3BitstreamMode_HEARING_IMPAIRED :: Ac3BitstreamMode
pattern $bAc3BitstreamMode_HEARING_IMPAIRED :: Ac3BitstreamMode
$mAc3BitstreamMode_HEARING_IMPAIRED :: forall r. Ac3BitstreamMode -> (Void# -> r) -> (Void# -> r) -> r
Ac3BitstreamMode_HEARING_IMPAIRED = Ac3BitstreamMode' "HEARING_IMPAIRED"

pattern Ac3BitstreamMode_MUSIC_AND_EFFECTS :: Ac3BitstreamMode
pattern $bAc3BitstreamMode_MUSIC_AND_EFFECTS :: Ac3BitstreamMode
$mAc3BitstreamMode_MUSIC_AND_EFFECTS :: forall r. Ac3BitstreamMode -> (Void# -> r) -> (Void# -> r) -> r
Ac3BitstreamMode_MUSIC_AND_EFFECTS = Ac3BitstreamMode' "MUSIC_AND_EFFECTS"

pattern Ac3BitstreamMode_VISUALLY_IMPAIRED :: Ac3BitstreamMode
pattern $bAc3BitstreamMode_VISUALLY_IMPAIRED :: Ac3BitstreamMode
$mAc3BitstreamMode_VISUALLY_IMPAIRED :: forall r. Ac3BitstreamMode -> (Void# -> r) -> (Void# -> r) -> r
Ac3BitstreamMode_VISUALLY_IMPAIRED = Ac3BitstreamMode' "VISUALLY_IMPAIRED"

pattern Ac3BitstreamMode_VOICE_OVER :: Ac3BitstreamMode
pattern $bAc3BitstreamMode_VOICE_OVER :: Ac3BitstreamMode
$mAc3BitstreamMode_VOICE_OVER :: forall r. Ac3BitstreamMode -> (Void# -> r) -> (Void# -> r) -> r
Ac3BitstreamMode_VOICE_OVER = Ac3BitstreamMode' "VOICE_OVER"

{-# COMPLETE
  Ac3BitstreamMode_COMMENTARY,
  Ac3BitstreamMode_COMPLETE_MAIN,
  Ac3BitstreamMode_DIALOGUE,
  Ac3BitstreamMode_EMERGENCY,
  Ac3BitstreamMode_HEARING_IMPAIRED,
  Ac3BitstreamMode_MUSIC_AND_EFFECTS,
  Ac3BitstreamMode_VISUALLY_IMPAIRED,
  Ac3BitstreamMode_VOICE_OVER,
  Ac3BitstreamMode'
  #-}