{-# 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.RtmpAdMarkers
-- 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.RtmpAdMarkers
  ( RtmpAdMarkers
      ( ..,
        RtmpAdMarkers_ON_CUE_POINT_SCTE35
      ),
  )
where

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

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

pattern RtmpAdMarkers_ON_CUE_POINT_SCTE35 :: RtmpAdMarkers
pattern $bRtmpAdMarkers_ON_CUE_POINT_SCTE35 :: RtmpAdMarkers
$mRtmpAdMarkers_ON_CUE_POINT_SCTE35 :: forall r. RtmpAdMarkers -> (Void# -> r) -> (Void# -> r) -> r
RtmpAdMarkers_ON_CUE_POINT_SCTE35 = RtmpAdMarkers' "ON_CUE_POINT_SCTE35"

{-# COMPLETE
  RtmpAdMarkers_ON_CUE_POINT_SCTE35,
  RtmpAdMarkers'
  #-}