{-# 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.M2tsKlv
-- 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.M2tsKlv
  ( M2tsKlv
      ( ..,
        M2tsKlv_NONE,
        M2tsKlv_PASSTHROUGH
      ),
  )
where

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

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

pattern M2tsKlv_NONE :: M2tsKlv
pattern $bM2tsKlv_NONE :: M2tsKlv
$mM2tsKlv_NONE :: forall r. M2tsKlv -> (Void# -> r) -> (Void# -> r) -> r
M2tsKlv_NONE = M2tsKlv' "NONE"

pattern M2tsKlv_PASSTHROUGH :: M2tsKlv
pattern $bM2tsKlv_PASSTHROUGH :: M2tsKlv
$mM2tsKlv_PASSTHROUGH :: forall r. M2tsKlv -> (Void# -> r) -> (Void# -> r) -> r
M2tsKlv_PASSTHROUGH = M2tsKlv' "PASSTHROUGH"

{-# COMPLETE
  M2tsKlv_NONE,
  M2tsKlv_PASSTHROUGH,
  M2tsKlv'
  #-}