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

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

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

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

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

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