{-# 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.M3u8Scte35Source
-- 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.MediaConvert.Types.M3u8Scte35Source
  ( M3u8Scte35Source
      ( ..,
        M3u8Scte35Source_NONE,
        M3u8Scte35Source_PASSTHROUGH
      ),
  )
where

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

-- | For SCTE-35 markers from your input-- Choose Passthrough (PASSTHROUGH)
-- if you want SCTE-35 markers that appear in your input to also appear in
-- this output. Choose None (NONE) if you don\'t want SCTE-35 markers in
-- this output. For SCTE-35 markers from an ESAM XML document-- Choose None
-- (NONE) if you don\'t want manifest conditioning. Choose Passthrough
-- (PASSTHROUGH) and choose Ad markers (adMarkers) if you do want manifest
-- conditioning. In both cases, also provide the ESAM XML as a string in
-- the setting Signal processing notification XML (sccXml).
newtype M3u8Scte35Source = M3u8Scte35Source'
  { M3u8Scte35Source -> Text
fromM3u8Scte35Source ::
      Core.Text
  }
  deriving stock
    ( Int -> M3u8Scte35Source -> ShowS
[M3u8Scte35Source] -> ShowS
M3u8Scte35Source -> String
(Int -> M3u8Scte35Source -> ShowS)
-> (M3u8Scte35Source -> String)
-> ([M3u8Scte35Source] -> ShowS)
-> Show M3u8Scte35Source
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [M3u8Scte35Source] -> ShowS
$cshowList :: [M3u8Scte35Source] -> ShowS
show :: M3u8Scte35Source -> String
$cshow :: M3u8Scte35Source -> String
showsPrec :: Int -> M3u8Scte35Source -> ShowS
$cshowsPrec :: Int -> M3u8Scte35Source -> ShowS
Prelude.Show,
      ReadPrec [M3u8Scte35Source]
ReadPrec M3u8Scte35Source
Int -> ReadS M3u8Scte35Source
ReadS [M3u8Scte35Source]
(Int -> ReadS M3u8Scte35Source)
-> ReadS [M3u8Scte35Source]
-> ReadPrec M3u8Scte35Source
-> ReadPrec [M3u8Scte35Source]
-> Read M3u8Scte35Source
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [M3u8Scte35Source]
$creadListPrec :: ReadPrec [M3u8Scte35Source]
readPrec :: ReadPrec M3u8Scte35Source
$creadPrec :: ReadPrec M3u8Scte35Source
readList :: ReadS [M3u8Scte35Source]
$creadList :: ReadS [M3u8Scte35Source]
readsPrec :: Int -> ReadS M3u8Scte35Source
$creadsPrec :: Int -> ReadS M3u8Scte35Source
Prelude.Read,
      M3u8Scte35Source -> M3u8Scte35Source -> Bool
(M3u8Scte35Source -> M3u8Scte35Source -> Bool)
-> (M3u8Scte35Source -> M3u8Scte35Source -> Bool)
-> Eq M3u8Scte35Source
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: M3u8Scte35Source -> M3u8Scte35Source -> Bool
$c/= :: M3u8Scte35Source -> M3u8Scte35Source -> Bool
== :: M3u8Scte35Source -> M3u8Scte35Source -> Bool
$c== :: M3u8Scte35Source -> M3u8Scte35Source -> Bool
Prelude.Eq,
      Eq M3u8Scte35Source
Eq M3u8Scte35Source
-> (M3u8Scte35Source -> M3u8Scte35Source -> Ordering)
-> (M3u8Scte35Source -> M3u8Scte35Source -> Bool)
-> (M3u8Scte35Source -> M3u8Scte35Source -> Bool)
-> (M3u8Scte35Source -> M3u8Scte35Source -> Bool)
-> (M3u8Scte35Source -> M3u8Scte35Source -> Bool)
-> (M3u8Scte35Source -> M3u8Scte35Source -> M3u8Scte35Source)
-> (M3u8Scte35Source -> M3u8Scte35Source -> M3u8Scte35Source)
-> Ord M3u8Scte35Source
M3u8Scte35Source -> M3u8Scte35Source -> Bool
M3u8Scte35Source -> M3u8Scte35Source -> Ordering
M3u8Scte35Source -> M3u8Scte35Source -> M3u8Scte35Source
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 :: M3u8Scte35Source -> M3u8Scte35Source -> M3u8Scte35Source
$cmin :: M3u8Scte35Source -> M3u8Scte35Source -> M3u8Scte35Source
max :: M3u8Scte35Source -> M3u8Scte35Source -> M3u8Scte35Source
$cmax :: M3u8Scte35Source -> M3u8Scte35Source -> M3u8Scte35Source
>= :: M3u8Scte35Source -> M3u8Scte35Source -> Bool
$c>= :: M3u8Scte35Source -> M3u8Scte35Source -> Bool
> :: M3u8Scte35Source -> M3u8Scte35Source -> Bool
$c> :: M3u8Scte35Source -> M3u8Scte35Source -> Bool
<= :: M3u8Scte35Source -> M3u8Scte35Source -> Bool
$c<= :: M3u8Scte35Source -> M3u8Scte35Source -> Bool
< :: M3u8Scte35Source -> M3u8Scte35Source -> Bool
$c< :: M3u8Scte35Source -> M3u8Scte35Source -> Bool
compare :: M3u8Scte35Source -> M3u8Scte35Source -> Ordering
$ccompare :: M3u8Scte35Source -> M3u8Scte35Source -> Ordering
$cp1Ord :: Eq M3u8Scte35Source
Prelude.Ord,
      (forall x. M3u8Scte35Source -> Rep M3u8Scte35Source x)
-> (forall x. Rep M3u8Scte35Source x -> M3u8Scte35Source)
-> Generic M3u8Scte35Source
forall x. Rep M3u8Scte35Source x -> M3u8Scte35Source
forall x. M3u8Scte35Source -> Rep M3u8Scte35Source x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep M3u8Scte35Source x -> M3u8Scte35Source
$cfrom :: forall x. M3u8Scte35Source -> Rep M3u8Scte35Source x
Prelude.Generic
    )
  deriving newtype
    ( Int -> M3u8Scte35Source -> Int
M3u8Scte35Source -> Int
(Int -> M3u8Scte35Source -> Int)
-> (M3u8Scte35Source -> Int) -> Hashable M3u8Scte35Source
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: M3u8Scte35Source -> Int
$chash :: M3u8Scte35Source -> Int
hashWithSalt :: Int -> M3u8Scte35Source -> Int
$chashWithSalt :: Int -> M3u8Scte35Source -> Int
Prelude.Hashable,
      M3u8Scte35Source -> ()
(M3u8Scte35Source -> ()) -> NFData M3u8Scte35Source
forall a. (a -> ()) -> NFData a
rnf :: M3u8Scte35Source -> ()
$crnf :: M3u8Scte35Source -> ()
Prelude.NFData,
      Text -> Either String M3u8Scte35Source
(Text -> Either String M3u8Scte35Source)
-> FromText M3u8Scte35Source
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String M3u8Scte35Source
$cfromText :: Text -> Either String M3u8Scte35Source
Core.FromText,
      M3u8Scte35Source -> Text
(M3u8Scte35Source -> Text) -> ToText M3u8Scte35Source
forall a. (a -> Text) -> ToText a
toText :: M3u8Scte35Source -> Text
$ctoText :: M3u8Scte35Source -> Text
Core.ToText,
      M3u8Scte35Source -> ByteString
(M3u8Scte35Source -> ByteString) -> ToByteString M3u8Scte35Source
forall a. (a -> ByteString) -> ToByteString a
toBS :: M3u8Scte35Source -> ByteString
$ctoBS :: M3u8Scte35Source -> ByteString
Core.ToByteString,
      M3u8Scte35Source -> ByteStringBuilder
(M3u8Scte35Source -> ByteStringBuilder) -> ToLog M3u8Scte35Source
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: M3u8Scte35Source -> ByteStringBuilder
$cbuild :: M3u8Scte35Source -> ByteStringBuilder
Core.ToLog,
      HeaderName -> M3u8Scte35Source -> [Header]
(HeaderName -> M3u8Scte35Source -> [Header])
-> ToHeader M3u8Scte35Source
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> M3u8Scte35Source -> [Header]
$ctoHeader :: HeaderName -> M3u8Scte35Source -> [Header]
Core.ToHeader,
      M3u8Scte35Source -> QueryString
(M3u8Scte35Source -> QueryString) -> ToQuery M3u8Scte35Source
forall a. (a -> QueryString) -> ToQuery a
toQuery :: M3u8Scte35Source -> QueryString
$ctoQuery :: M3u8Scte35Source -> QueryString
Core.ToQuery,
      Value -> Parser [M3u8Scte35Source]
Value -> Parser M3u8Scte35Source
(Value -> Parser M3u8Scte35Source)
-> (Value -> Parser [M3u8Scte35Source])
-> FromJSON M3u8Scte35Source
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [M3u8Scte35Source]
$cparseJSONList :: Value -> Parser [M3u8Scte35Source]
parseJSON :: Value -> Parser M3u8Scte35Source
$cparseJSON :: Value -> Parser M3u8Scte35Source
Core.FromJSON,
      FromJSONKeyFunction [M3u8Scte35Source]
FromJSONKeyFunction M3u8Scte35Source
FromJSONKeyFunction M3u8Scte35Source
-> FromJSONKeyFunction [M3u8Scte35Source]
-> FromJSONKey M3u8Scte35Source
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [M3u8Scte35Source]
$cfromJSONKeyList :: FromJSONKeyFunction [M3u8Scte35Source]
fromJSONKey :: FromJSONKeyFunction M3u8Scte35Source
$cfromJSONKey :: FromJSONKeyFunction M3u8Scte35Source
Core.FromJSONKey,
      [M3u8Scte35Source] -> Encoding
[M3u8Scte35Source] -> Value
M3u8Scte35Source -> Encoding
M3u8Scte35Source -> Value
(M3u8Scte35Source -> Value)
-> (M3u8Scte35Source -> Encoding)
-> ([M3u8Scte35Source] -> Value)
-> ([M3u8Scte35Source] -> Encoding)
-> ToJSON M3u8Scte35Source
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [M3u8Scte35Source] -> Encoding
$ctoEncodingList :: [M3u8Scte35Source] -> Encoding
toJSONList :: [M3u8Scte35Source] -> Value
$ctoJSONList :: [M3u8Scte35Source] -> Value
toEncoding :: M3u8Scte35Source -> Encoding
$ctoEncoding :: M3u8Scte35Source -> Encoding
toJSON :: M3u8Scte35Source -> Value
$ctoJSON :: M3u8Scte35Source -> Value
Core.ToJSON,
      ToJSONKeyFunction [M3u8Scte35Source]
ToJSONKeyFunction M3u8Scte35Source
ToJSONKeyFunction M3u8Scte35Source
-> ToJSONKeyFunction [M3u8Scte35Source]
-> ToJSONKey M3u8Scte35Source
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [M3u8Scte35Source]
$ctoJSONKeyList :: ToJSONKeyFunction [M3u8Scte35Source]
toJSONKey :: ToJSONKeyFunction M3u8Scte35Source
$ctoJSONKey :: ToJSONKeyFunction M3u8Scte35Source
Core.ToJSONKey,
      [Node] -> Either String M3u8Scte35Source
([Node] -> Either String M3u8Scte35Source)
-> FromXML M3u8Scte35Source
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String M3u8Scte35Source
$cparseXML :: [Node] -> Either String M3u8Scte35Source
Core.FromXML,
      M3u8Scte35Source -> XML
(M3u8Scte35Source -> XML) -> ToXML M3u8Scte35Source
forall a. (a -> XML) -> ToXML a
toXML :: M3u8Scte35Source -> XML
$ctoXML :: M3u8Scte35Source -> XML
Core.ToXML
    )

pattern M3u8Scte35Source_NONE :: M3u8Scte35Source
pattern $bM3u8Scte35Source_NONE :: M3u8Scte35Source
$mM3u8Scte35Source_NONE :: forall r. M3u8Scte35Source -> (Void# -> r) -> (Void# -> r) -> r
M3u8Scte35Source_NONE = M3u8Scte35Source' "NONE"

pattern M3u8Scte35Source_PASSTHROUGH :: M3u8Scte35Source
pattern $bM3u8Scte35Source_PASSTHROUGH :: M3u8Scte35Source
$mM3u8Scte35Source_PASSTHROUGH :: forall r. M3u8Scte35Source -> (Void# -> r) -> (Void# -> r) -> r
M3u8Scte35Source_PASSTHROUGH = M3u8Scte35Source' "PASSTHROUGH"

{-# COMPLETE
  M3u8Scte35Source_NONE,
  M3u8Scte35Source_PASSTHROUGH,
  M3u8Scte35Source'
  #-}