{-# 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.MpdScte35Source
-- 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.MpdScte35Source
  ( MpdScte35Source
      ( ..,
        MpdScte35Source_NONE,
        MpdScte35Source_PASSTHROUGH
      ),
  )
where

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

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

pattern MpdScte35Source_NONE :: MpdScte35Source
pattern $bMpdScte35Source_NONE :: MpdScte35Source
$mMpdScte35Source_NONE :: forall r. MpdScte35Source -> (Void# -> r) -> (Void# -> r) -> r
MpdScte35Source_NONE = MpdScte35Source' "NONE"

pattern MpdScte35Source_PASSTHROUGH :: MpdScte35Source
pattern $bMpdScte35Source_PASSTHROUGH :: MpdScte35Source
$mMpdScte35Source_PASSTHROUGH :: forall r. MpdScte35Source -> (Void# -> r) -> (Void# -> r) -> r
MpdScte35Source_PASSTHROUGH = MpdScte35Source' "PASSTHROUGH"

{-# COMPLETE
  MpdScte35Source_NONE,
  MpdScte35Source_PASSTHROUGH,
  MpdScte35Source'
  #-}