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

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

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

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

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

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