{-# 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.M2tsAudioBufferModel
-- 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.M2tsAudioBufferModel
  ( M2tsAudioBufferModel
      ( ..,
        M2tsAudioBufferModel_ATSC,
        M2tsAudioBufferModel_DVB
      ),
  )
where

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

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

pattern M2tsAudioBufferModel_ATSC :: M2tsAudioBufferModel
pattern $bM2tsAudioBufferModel_ATSC :: M2tsAudioBufferModel
$mM2tsAudioBufferModel_ATSC :: forall r. M2tsAudioBufferModel -> (Void# -> r) -> (Void# -> r) -> r
M2tsAudioBufferModel_ATSC = M2tsAudioBufferModel' "ATSC"

pattern M2tsAudioBufferModel_DVB :: M2tsAudioBufferModel
pattern $bM2tsAudioBufferModel_DVB :: M2tsAudioBufferModel
$mM2tsAudioBufferModel_DVB :: forall r. M2tsAudioBufferModel -> (Void# -> r) -> (Void# -> r) -> r
M2tsAudioBufferModel_DVB = M2tsAudioBufferModel' "DVB"

{-# COMPLETE
  M2tsAudioBufferModel_ATSC,
  M2tsAudioBufferModel_DVB,
  M2tsAudioBufferModel'
  #-}