{-# 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.M3u8TimedMetadataBehavior
-- 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.M3u8TimedMetadataBehavior
  ( M3u8TimedMetadataBehavior
      ( ..,
        M3u8TimedMetadataBehavior_NO_PASSTHROUGH,
        M3u8TimedMetadataBehavior_PASSTHROUGH
      ),
  )
where

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

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

pattern M3u8TimedMetadataBehavior_NO_PASSTHROUGH :: M3u8TimedMetadataBehavior
pattern $bM3u8TimedMetadataBehavior_NO_PASSTHROUGH :: M3u8TimedMetadataBehavior
$mM3u8TimedMetadataBehavior_NO_PASSTHROUGH :: forall {r}.
M3u8TimedMetadataBehavior -> ((# #) -> r) -> ((# #) -> r) -> r
M3u8TimedMetadataBehavior_NO_PASSTHROUGH = M3u8TimedMetadataBehavior' "NO_PASSTHROUGH"

pattern M3u8TimedMetadataBehavior_PASSTHROUGH :: M3u8TimedMetadataBehavior
pattern $bM3u8TimedMetadataBehavior_PASSTHROUGH :: M3u8TimedMetadataBehavior
$mM3u8TimedMetadataBehavior_PASSTHROUGH :: forall {r}.
M3u8TimedMetadataBehavior -> ((# #) -> r) -> ((# #) -> r) -> r
M3u8TimedMetadataBehavior_PASSTHROUGH = M3u8TimedMetadataBehavior' "PASSTHROUGH"

{-# COMPLETE
  M3u8TimedMetadataBehavior_NO_PASSTHROUGH,
  M3u8TimedMetadataBehavior_PASSTHROUGH,
  M3u8TimedMetadataBehavior'
  #-}