{-# 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.M2tsKlvMetadata
-- 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.MediaConvert.Types.M2tsKlvMetadata
  ( M2tsKlvMetadata
      ( ..,
        M2tsKlvMetadata_NONE,
        M2tsKlvMetadata_PASSTHROUGH
      ),
  )
where

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

-- | To include key-length-value metadata in this output: Set KLV metadata
-- insertion to Passthrough. MediaConvert reads KLV metadata present in
-- your input and passes it through to the output transport stream. To
-- exclude this KLV metadata: Set KLV metadata insertion to None or leave
-- blank.
newtype M2tsKlvMetadata = M2tsKlvMetadata'
  { M2tsKlvMetadata -> Text
fromM2tsKlvMetadata ::
      Data.Text
  }
  deriving stock
    ( Int -> M2tsKlvMetadata -> ShowS
[M2tsKlvMetadata] -> ShowS
M2tsKlvMetadata -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [M2tsKlvMetadata] -> ShowS
$cshowList :: [M2tsKlvMetadata] -> ShowS
show :: M2tsKlvMetadata -> String
$cshow :: M2tsKlvMetadata -> String
showsPrec :: Int -> M2tsKlvMetadata -> ShowS
$cshowsPrec :: Int -> M2tsKlvMetadata -> ShowS
Prelude.Show,
      ReadPrec [M2tsKlvMetadata]
ReadPrec M2tsKlvMetadata
Int -> ReadS M2tsKlvMetadata
ReadS [M2tsKlvMetadata]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [M2tsKlvMetadata]
$creadListPrec :: ReadPrec [M2tsKlvMetadata]
readPrec :: ReadPrec M2tsKlvMetadata
$creadPrec :: ReadPrec M2tsKlvMetadata
readList :: ReadS [M2tsKlvMetadata]
$creadList :: ReadS [M2tsKlvMetadata]
readsPrec :: Int -> ReadS M2tsKlvMetadata
$creadsPrec :: Int -> ReadS M2tsKlvMetadata
Prelude.Read,
      M2tsKlvMetadata -> M2tsKlvMetadata -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: M2tsKlvMetadata -> M2tsKlvMetadata -> Bool
$c/= :: M2tsKlvMetadata -> M2tsKlvMetadata -> Bool
== :: M2tsKlvMetadata -> M2tsKlvMetadata -> Bool
$c== :: M2tsKlvMetadata -> M2tsKlvMetadata -> Bool
Prelude.Eq,
      Eq M2tsKlvMetadata
M2tsKlvMetadata -> M2tsKlvMetadata -> Bool
M2tsKlvMetadata -> M2tsKlvMetadata -> Ordering
M2tsKlvMetadata -> M2tsKlvMetadata -> M2tsKlvMetadata
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 :: M2tsKlvMetadata -> M2tsKlvMetadata -> M2tsKlvMetadata
$cmin :: M2tsKlvMetadata -> M2tsKlvMetadata -> M2tsKlvMetadata
max :: M2tsKlvMetadata -> M2tsKlvMetadata -> M2tsKlvMetadata
$cmax :: M2tsKlvMetadata -> M2tsKlvMetadata -> M2tsKlvMetadata
>= :: M2tsKlvMetadata -> M2tsKlvMetadata -> Bool
$c>= :: M2tsKlvMetadata -> M2tsKlvMetadata -> Bool
> :: M2tsKlvMetadata -> M2tsKlvMetadata -> Bool
$c> :: M2tsKlvMetadata -> M2tsKlvMetadata -> Bool
<= :: M2tsKlvMetadata -> M2tsKlvMetadata -> Bool
$c<= :: M2tsKlvMetadata -> M2tsKlvMetadata -> Bool
< :: M2tsKlvMetadata -> M2tsKlvMetadata -> Bool
$c< :: M2tsKlvMetadata -> M2tsKlvMetadata -> Bool
compare :: M2tsKlvMetadata -> M2tsKlvMetadata -> Ordering
$ccompare :: M2tsKlvMetadata -> M2tsKlvMetadata -> Ordering
Prelude.Ord,
      forall x. Rep M2tsKlvMetadata x -> M2tsKlvMetadata
forall x. M2tsKlvMetadata -> Rep M2tsKlvMetadata x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep M2tsKlvMetadata x -> M2tsKlvMetadata
$cfrom :: forall x. M2tsKlvMetadata -> Rep M2tsKlvMetadata x
Prelude.Generic
    )
  deriving newtype
    ( Eq M2tsKlvMetadata
Int -> M2tsKlvMetadata -> Int
M2tsKlvMetadata -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: M2tsKlvMetadata -> Int
$chash :: M2tsKlvMetadata -> Int
hashWithSalt :: Int -> M2tsKlvMetadata -> Int
$chashWithSalt :: Int -> M2tsKlvMetadata -> Int
Prelude.Hashable,
      M2tsKlvMetadata -> ()
forall a. (a -> ()) -> NFData a
rnf :: M2tsKlvMetadata -> ()
$crnf :: M2tsKlvMetadata -> ()
Prelude.NFData,
      Text -> Either String M2tsKlvMetadata
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String M2tsKlvMetadata
$cfromText :: Text -> Either String M2tsKlvMetadata
Data.FromText,
      M2tsKlvMetadata -> Text
forall a. (a -> Text) -> ToText a
toText :: M2tsKlvMetadata -> Text
$ctoText :: M2tsKlvMetadata -> Text
Data.ToText,
      M2tsKlvMetadata -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: M2tsKlvMetadata -> ByteString
$ctoBS :: M2tsKlvMetadata -> ByteString
Data.ToByteString,
      M2tsKlvMetadata -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: M2tsKlvMetadata -> ByteStringBuilder
$cbuild :: M2tsKlvMetadata -> ByteStringBuilder
Data.ToLog,
      HeaderName -> M2tsKlvMetadata -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> M2tsKlvMetadata -> [Header]
$ctoHeader :: HeaderName -> M2tsKlvMetadata -> [Header]
Data.ToHeader,
      M2tsKlvMetadata -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: M2tsKlvMetadata -> QueryString
$ctoQuery :: M2tsKlvMetadata -> QueryString
Data.ToQuery,
      Value -> Parser [M2tsKlvMetadata]
Value -> Parser M2tsKlvMetadata
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [M2tsKlvMetadata]
$cparseJSONList :: Value -> Parser [M2tsKlvMetadata]
parseJSON :: Value -> Parser M2tsKlvMetadata
$cparseJSON :: Value -> Parser M2tsKlvMetadata
Data.FromJSON,
      FromJSONKeyFunction [M2tsKlvMetadata]
FromJSONKeyFunction M2tsKlvMetadata
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [M2tsKlvMetadata]
$cfromJSONKeyList :: FromJSONKeyFunction [M2tsKlvMetadata]
fromJSONKey :: FromJSONKeyFunction M2tsKlvMetadata
$cfromJSONKey :: FromJSONKeyFunction M2tsKlvMetadata
Data.FromJSONKey,
      [M2tsKlvMetadata] -> Encoding
[M2tsKlvMetadata] -> Value
M2tsKlvMetadata -> Encoding
M2tsKlvMetadata -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [M2tsKlvMetadata] -> Encoding
$ctoEncodingList :: [M2tsKlvMetadata] -> Encoding
toJSONList :: [M2tsKlvMetadata] -> Value
$ctoJSONList :: [M2tsKlvMetadata] -> Value
toEncoding :: M2tsKlvMetadata -> Encoding
$ctoEncoding :: M2tsKlvMetadata -> Encoding
toJSON :: M2tsKlvMetadata -> Value
$ctoJSON :: M2tsKlvMetadata -> Value
Data.ToJSON,
      ToJSONKeyFunction [M2tsKlvMetadata]
ToJSONKeyFunction M2tsKlvMetadata
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [M2tsKlvMetadata]
$ctoJSONKeyList :: ToJSONKeyFunction [M2tsKlvMetadata]
toJSONKey :: ToJSONKeyFunction M2tsKlvMetadata
$ctoJSONKey :: ToJSONKeyFunction M2tsKlvMetadata
Data.ToJSONKey,
      [Node] -> Either String M2tsKlvMetadata
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String M2tsKlvMetadata
$cparseXML :: [Node] -> Either String M2tsKlvMetadata
Data.FromXML,
      M2tsKlvMetadata -> XML
forall a. (a -> XML) -> ToXML a
toXML :: M2tsKlvMetadata -> XML
$ctoXML :: M2tsKlvMetadata -> XML
Data.ToXML
    )

pattern M2tsKlvMetadata_NONE :: M2tsKlvMetadata
pattern $bM2tsKlvMetadata_NONE :: M2tsKlvMetadata
$mM2tsKlvMetadata_NONE :: forall {r}. M2tsKlvMetadata -> ((# #) -> r) -> ((# #) -> r) -> r
M2tsKlvMetadata_NONE = M2tsKlvMetadata' "NONE"

pattern M2tsKlvMetadata_PASSTHROUGH :: M2tsKlvMetadata
pattern $bM2tsKlvMetadata_PASSTHROUGH :: M2tsKlvMetadata
$mM2tsKlvMetadata_PASSTHROUGH :: forall {r}. M2tsKlvMetadata -> ((# #) -> r) -> ((# #) -> r) -> r
M2tsKlvMetadata_PASSTHROUGH = M2tsKlvMetadata' "PASSTHROUGH"

{-# COMPLETE
  M2tsKlvMetadata_NONE,
  M2tsKlvMetadata_PASSTHROUGH,
  M2tsKlvMetadata'
  #-}