{-# 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.M2tsTimedMetadataBehavior
-- 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.M2tsTimedMetadataBehavior
  ( M2tsTimedMetadataBehavior
      ( ..,
        M2tsTimedMetadataBehavior_NO_PASSTHROUGH,
        M2tsTimedMetadataBehavior_PASSTHROUGH
      ),
  )
where

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

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

pattern M2tsTimedMetadataBehavior_NO_PASSTHROUGH :: M2tsTimedMetadataBehavior
pattern $bM2tsTimedMetadataBehavior_NO_PASSTHROUGH :: M2tsTimedMetadataBehavior
$mM2tsTimedMetadataBehavior_NO_PASSTHROUGH :: forall {r}.
M2tsTimedMetadataBehavior -> ((# #) -> r) -> ((# #) -> r) -> r
M2tsTimedMetadataBehavior_NO_PASSTHROUGH = M2tsTimedMetadataBehavior' "NO_PASSTHROUGH"

pattern M2tsTimedMetadataBehavior_PASSTHROUGH :: M2tsTimedMetadataBehavior
pattern $bM2tsTimedMetadataBehavior_PASSTHROUGH :: M2tsTimedMetadataBehavior
$mM2tsTimedMetadataBehavior_PASSTHROUGH :: forall {r}.
M2tsTimedMetadataBehavior -> ((# #) -> r) -> ((# #) -> r) -> r
M2tsTimedMetadataBehavior_PASSTHROUGH = M2tsTimedMetadataBehavior' "PASSTHROUGH"

{-# COMPLETE
  M2tsTimedMetadataBehavior_NO_PASSTHROUGH,
  M2tsTimedMetadataBehavior_PASSTHROUGH,
  M2tsTimedMetadataBehavior'
  #-}