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

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

-- | M2ts Audio Buffer Model
newtype M2tsAudioBufferModel = M2tsAudioBufferModel'
  { M2tsAudioBufferModel -> Text
fromM2tsAudioBufferModel ::
      Data.Text
  }
  deriving stock
    ( Int -> M2tsAudioBufferModel -> ShowS
[M2tsAudioBufferModel] -> ShowS
M2tsAudioBufferModel -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq M2tsAudioBufferModel
Int -> M2tsAudioBufferModel -> Int
M2tsAudioBufferModel -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: M2tsAudioBufferModel -> ()
$crnf :: M2tsAudioBufferModel -> ()
Prelude.NFData,
      Text -> Either String M2tsAudioBufferModel
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String M2tsAudioBufferModel
$cfromText :: Text -> Either String M2tsAudioBufferModel
Data.FromText,
      M2tsAudioBufferModel -> Text
forall a. (a -> Text) -> ToText a
toText :: M2tsAudioBufferModel -> Text
$ctoText :: M2tsAudioBufferModel -> Text
Data.ToText,
      M2tsAudioBufferModel -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: M2tsAudioBufferModel -> ByteString
$ctoBS :: M2tsAudioBufferModel -> ByteString
Data.ToByteString,
      M2tsAudioBufferModel -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: M2tsAudioBufferModel -> ByteStringBuilder
$cbuild :: M2tsAudioBufferModel -> ByteStringBuilder
Data.ToLog,
      HeaderName -> M2tsAudioBufferModel -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> M2tsAudioBufferModel -> [Header]
$ctoHeader :: HeaderName -> M2tsAudioBufferModel -> [Header]
Data.ToHeader,
      M2tsAudioBufferModel -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: M2tsAudioBufferModel -> QueryString
$ctoQuery :: M2tsAudioBufferModel -> QueryString
Data.ToQuery,
      Value -> Parser [M2tsAudioBufferModel]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [M2tsAudioBufferModel]
FromJSONKeyFunction M2tsAudioBufferModel
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [M2tsAudioBufferModel]
$cfromJSONKeyList :: FromJSONKeyFunction [M2tsAudioBufferModel]
fromJSONKey :: FromJSONKeyFunction M2tsAudioBufferModel
$cfromJSONKey :: FromJSONKeyFunction M2tsAudioBufferModel
Data.FromJSONKey,
      [M2tsAudioBufferModel] -> Encoding
[M2tsAudioBufferModel] -> Value
M2tsAudioBufferModel -> Encoding
M2tsAudioBufferModel -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [M2tsAudioBufferModel]
ToJSONKeyFunction M2tsAudioBufferModel
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [M2tsAudioBufferModel]
$ctoJSONKeyList :: ToJSONKeyFunction [M2tsAudioBufferModel]
toJSONKey :: ToJSONKeyFunction M2tsAudioBufferModel
$ctoJSONKey :: ToJSONKeyFunction M2tsAudioBufferModel
Data.ToJSONKey,
      [Node] -> Either String M2tsAudioBufferModel
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String M2tsAudioBufferModel
$cparseXML :: [Node] -> Either String M2tsAudioBufferModel
Data.FromXML,
      M2tsAudioBufferModel -> XML
forall a. (a -> XML) -> ToXML a
toXML :: M2tsAudioBufferModel -> XML
$ctoXML :: M2tsAudioBufferModel -> XML
Data.ToXML
    )

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

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

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