{-# 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.CmfcScte35Esam
-- 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.MediaConvert.Types.CmfcScte35Esam
  ( CmfcScte35Esam
      ( ..,
        CmfcScte35Esam_INSERT,
        CmfcScte35Esam_NONE
      ),
  )
where

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

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

pattern CmfcScte35Esam_INSERT :: CmfcScte35Esam
pattern $bCmfcScte35Esam_INSERT :: CmfcScte35Esam
$mCmfcScte35Esam_INSERT :: forall {r}. CmfcScte35Esam -> ((# #) -> r) -> ((# #) -> r) -> r
CmfcScte35Esam_INSERT = CmfcScte35Esam' "INSERT"

pattern CmfcScte35Esam_NONE :: CmfcScte35Esam
pattern $bCmfcScte35Esam_NONE :: CmfcScte35Esam
$mCmfcScte35Esam_NONE :: forall {r}. CmfcScte35Esam -> ((# #) -> r) -> ((# #) -> r) -> r
CmfcScte35Esam_NONE = CmfcScte35Esam' "NONE"

{-# COMPLETE
  CmfcScte35Esam_INSERT,
  CmfcScte35Esam_NONE,
  CmfcScte35Esam'
  #-}