{-# 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.M2tsAudioStreamType
-- 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.M2tsAudioStreamType
  ( M2tsAudioStreamType
      ( ..,
        M2tsAudioStreamType_ATSC,
        M2tsAudioStreamType_DVB
      ),
  )
where

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

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

pattern M2tsAudioStreamType_ATSC :: M2tsAudioStreamType
pattern $bM2tsAudioStreamType_ATSC :: M2tsAudioStreamType
$mM2tsAudioStreamType_ATSC :: forall {r}.
M2tsAudioStreamType -> ((# #) -> r) -> ((# #) -> r) -> r
M2tsAudioStreamType_ATSC = M2tsAudioStreamType' "ATSC"

pattern M2tsAudioStreamType_DVB :: M2tsAudioStreamType
pattern $bM2tsAudioStreamType_DVB :: M2tsAudioStreamType
$mM2tsAudioStreamType_DVB :: forall {r}.
M2tsAudioStreamType -> ((# #) -> r) -> ((# #) -> r) -> r
M2tsAudioStreamType_DVB = M2tsAudioStreamType' "DVB"

{-# COMPLETE
  M2tsAudioStreamType_ATSC,
  M2tsAudioStreamType_DVB,
  M2tsAudioStreamType'
  #-}