{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MediaPackage.Types.AdTriggersElement
( AdTriggersElement
( ..,
AdTriggersElement_BREAK,
AdTriggersElement_DISTRIBUTOR_ADVERTISEMENT,
AdTriggersElement_DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY,
AdTriggersElement_DISTRIBUTOR_PLACEMENT_OPPORTUNITY,
AdTriggersElement_PROVIDER_ADVERTISEMENT,
AdTriggersElement_PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY,
AdTriggersElement_PROVIDER_PLACEMENT_OPPORTUNITY,
AdTriggersElement_SPLICE_INSERT
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype AdTriggersElement = AdTriggersElement'
{ AdTriggersElement -> Text
fromAdTriggersElement ::
Core.Text
}
deriving stock
( Int -> AdTriggersElement -> ShowS
[AdTriggersElement] -> ShowS
AdTriggersElement -> String
(Int -> AdTriggersElement -> ShowS)
-> (AdTriggersElement -> String)
-> ([AdTriggersElement] -> ShowS)
-> Show AdTriggersElement
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AdTriggersElement] -> ShowS
$cshowList :: [AdTriggersElement] -> ShowS
show :: AdTriggersElement -> String
$cshow :: AdTriggersElement -> String
showsPrec :: Int -> AdTriggersElement -> ShowS
$cshowsPrec :: Int -> AdTriggersElement -> ShowS
Prelude.Show,
ReadPrec [AdTriggersElement]
ReadPrec AdTriggersElement
Int -> ReadS AdTriggersElement
ReadS [AdTriggersElement]
(Int -> ReadS AdTriggersElement)
-> ReadS [AdTriggersElement]
-> ReadPrec AdTriggersElement
-> ReadPrec [AdTriggersElement]
-> Read AdTriggersElement
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AdTriggersElement]
$creadListPrec :: ReadPrec [AdTriggersElement]
readPrec :: ReadPrec AdTriggersElement
$creadPrec :: ReadPrec AdTriggersElement
readList :: ReadS [AdTriggersElement]
$creadList :: ReadS [AdTriggersElement]
readsPrec :: Int -> ReadS AdTriggersElement
$creadsPrec :: Int -> ReadS AdTriggersElement
Prelude.Read,
AdTriggersElement -> AdTriggersElement -> Bool
(AdTriggersElement -> AdTriggersElement -> Bool)
-> (AdTriggersElement -> AdTriggersElement -> Bool)
-> Eq AdTriggersElement
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AdTriggersElement -> AdTriggersElement -> Bool
$c/= :: AdTriggersElement -> AdTriggersElement -> Bool
== :: AdTriggersElement -> AdTriggersElement -> Bool
$c== :: AdTriggersElement -> AdTriggersElement -> Bool
Prelude.Eq,
Eq AdTriggersElement
Eq AdTriggersElement
-> (AdTriggersElement -> AdTriggersElement -> Ordering)
-> (AdTriggersElement -> AdTriggersElement -> Bool)
-> (AdTriggersElement -> AdTriggersElement -> Bool)
-> (AdTriggersElement -> AdTriggersElement -> Bool)
-> (AdTriggersElement -> AdTriggersElement -> Bool)
-> (AdTriggersElement -> AdTriggersElement -> AdTriggersElement)
-> (AdTriggersElement -> AdTriggersElement -> AdTriggersElement)
-> Ord AdTriggersElement
AdTriggersElement -> AdTriggersElement -> Bool
AdTriggersElement -> AdTriggersElement -> Ordering
AdTriggersElement -> AdTriggersElement -> AdTriggersElement
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 :: AdTriggersElement -> AdTriggersElement -> AdTriggersElement
$cmin :: AdTriggersElement -> AdTriggersElement -> AdTriggersElement
max :: AdTriggersElement -> AdTriggersElement -> AdTriggersElement
$cmax :: AdTriggersElement -> AdTriggersElement -> AdTriggersElement
>= :: AdTriggersElement -> AdTriggersElement -> Bool
$c>= :: AdTriggersElement -> AdTriggersElement -> Bool
> :: AdTriggersElement -> AdTriggersElement -> Bool
$c> :: AdTriggersElement -> AdTriggersElement -> Bool
<= :: AdTriggersElement -> AdTriggersElement -> Bool
$c<= :: AdTriggersElement -> AdTriggersElement -> Bool
< :: AdTriggersElement -> AdTriggersElement -> Bool
$c< :: AdTriggersElement -> AdTriggersElement -> Bool
compare :: AdTriggersElement -> AdTriggersElement -> Ordering
$ccompare :: AdTriggersElement -> AdTriggersElement -> Ordering
$cp1Ord :: Eq AdTriggersElement
Prelude.Ord,
(forall x. AdTriggersElement -> Rep AdTriggersElement x)
-> (forall x. Rep AdTriggersElement x -> AdTriggersElement)
-> Generic AdTriggersElement
forall x. Rep AdTriggersElement x -> AdTriggersElement
forall x. AdTriggersElement -> Rep AdTriggersElement x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AdTriggersElement x -> AdTriggersElement
$cfrom :: forall x. AdTriggersElement -> Rep AdTriggersElement x
Prelude.Generic
)
deriving newtype
( Int -> AdTriggersElement -> Int
AdTriggersElement -> Int
(Int -> AdTriggersElement -> Int)
-> (AdTriggersElement -> Int) -> Hashable AdTriggersElement
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AdTriggersElement -> Int
$chash :: AdTriggersElement -> Int
hashWithSalt :: Int -> AdTriggersElement -> Int
$chashWithSalt :: Int -> AdTriggersElement -> Int
Prelude.Hashable,
AdTriggersElement -> ()
(AdTriggersElement -> ()) -> NFData AdTriggersElement
forall a. (a -> ()) -> NFData a
rnf :: AdTriggersElement -> ()
$crnf :: AdTriggersElement -> ()
Prelude.NFData,
Text -> Either String AdTriggersElement
(Text -> Either String AdTriggersElement)
-> FromText AdTriggersElement
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AdTriggersElement
$cfromText :: Text -> Either String AdTriggersElement
Core.FromText,
AdTriggersElement -> Text
(AdTriggersElement -> Text) -> ToText AdTriggersElement
forall a. (a -> Text) -> ToText a
toText :: AdTriggersElement -> Text
$ctoText :: AdTriggersElement -> Text
Core.ToText,
AdTriggersElement -> ByteString
(AdTriggersElement -> ByteString) -> ToByteString AdTriggersElement
forall a. (a -> ByteString) -> ToByteString a
toBS :: AdTriggersElement -> ByteString
$ctoBS :: AdTriggersElement -> ByteString
Core.ToByteString,
AdTriggersElement -> ByteStringBuilder
(AdTriggersElement -> ByteStringBuilder) -> ToLog AdTriggersElement
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AdTriggersElement -> ByteStringBuilder
$cbuild :: AdTriggersElement -> ByteStringBuilder
Core.ToLog,
HeaderName -> AdTriggersElement -> [Header]
(HeaderName -> AdTriggersElement -> [Header])
-> ToHeader AdTriggersElement
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AdTriggersElement -> [Header]
$ctoHeader :: HeaderName -> AdTriggersElement -> [Header]
Core.ToHeader,
AdTriggersElement -> QueryString
(AdTriggersElement -> QueryString) -> ToQuery AdTriggersElement
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AdTriggersElement -> QueryString
$ctoQuery :: AdTriggersElement -> QueryString
Core.ToQuery,
Value -> Parser [AdTriggersElement]
Value -> Parser AdTriggersElement
(Value -> Parser AdTriggersElement)
-> (Value -> Parser [AdTriggersElement])
-> FromJSON AdTriggersElement
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AdTriggersElement]
$cparseJSONList :: Value -> Parser [AdTriggersElement]
parseJSON :: Value -> Parser AdTriggersElement
$cparseJSON :: Value -> Parser AdTriggersElement
Core.FromJSON,
FromJSONKeyFunction [AdTriggersElement]
FromJSONKeyFunction AdTriggersElement
FromJSONKeyFunction AdTriggersElement
-> FromJSONKeyFunction [AdTriggersElement]
-> FromJSONKey AdTriggersElement
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AdTriggersElement]
$cfromJSONKeyList :: FromJSONKeyFunction [AdTriggersElement]
fromJSONKey :: FromJSONKeyFunction AdTriggersElement
$cfromJSONKey :: FromJSONKeyFunction AdTriggersElement
Core.FromJSONKey,
[AdTriggersElement] -> Encoding
[AdTriggersElement] -> Value
AdTriggersElement -> Encoding
AdTriggersElement -> Value
(AdTriggersElement -> Value)
-> (AdTriggersElement -> Encoding)
-> ([AdTriggersElement] -> Value)
-> ([AdTriggersElement] -> Encoding)
-> ToJSON AdTriggersElement
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AdTriggersElement] -> Encoding
$ctoEncodingList :: [AdTriggersElement] -> Encoding
toJSONList :: [AdTriggersElement] -> Value
$ctoJSONList :: [AdTriggersElement] -> Value
toEncoding :: AdTriggersElement -> Encoding
$ctoEncoding :: AdTriggersElement -> Encoding
toJSON :: AdTriggersElement -> Value
$ctoJSON :: AdTriggersElement -> Value
Core.ToJSON,
ToJSONKeyFunction [AdTriggersElement]
ToJSONKeyFunction AdTriggersElement
ToJSONKeyFunction AdTriggersElement
-> ToJSONKeyFunction [AdTriggersElement]
-> ToJSONKey AdTriggersElement
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AdTriggersElement]
$ctoJSONKeyList :: ToJSONKeyFunction [AdTriggersElement]
toJSONKey :: ToJSONKeyFunction AdTriggersElement
$ctoJSONKey :: ToJSONKeyFunction AdTriggersElement
Core.ToJSONKey,
[Node] -> Either String AdTriggersElement
([Node] -> Either String AdTriggersElement)
-> FromXML AdTriggersElement
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AdTriggersElement
$cparseXML :: [Node] -> Either String AdTriggersElement
Core.FromXML,
AdTriggersElement -> XML
(AdTriggersElement -> XML) -> ToXML AdTriggersElement
forall a. (a -> XML) -> ToXML a
toXML :: AdTriggersElement -> XML
$ctoXML :: AdTriggersElement -> XML
Core.ToXML
)
pattern AdTriggersElement_BREAK :: AdTriggersElement
pattern $bAdTriggersElement_BREAK :: AdTriggersElement
$mAdTriggersElement_BREAK :: forall r. AdTriggersElement -> (Void# -> r) -> (Void# -> r) -> r
AdTriggersElement_BREAK = AdTriggersElement' "BREAK"
pattern AdTriggersElement_DISTRIBUTOR_ADVERTISEMENT :: AdTriggersElement
pattern $bAdTriggersElement_DISTRIBUTOR_ADVERTISEMENT :: AdTriggersElement
$mAdTriggersElement_DISTRIBUTOR_ADVERTISEMENT :: forall r. AdTriggersElement -> (Void# -> r) -> (Void# -> r) -> r
AdTriggersElement_DISTRIBUTOR_ADVERTISEMENT = AdTriggersElement' "DISTRIBUTOR_ADVERTISEMENT"
pattern AdTriggersElement_DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY :: AdTriggersElement
pattern $bAdTriggersElement_DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY :: AdTriggersElement
$mAdTriggersElement_DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY :: forall r. AdTriggersElement -> (Void# -> r) -> (Void# -> r) -> r
AdTriggersElement_DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY = AdTriggersElement' "DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY"
pattern AdTriggersElement_DISTRIBUTOR_PLACEMENT_OPPORTUNITY :: AdTriggersElement
pattern $bAdTriggersElement_DISTRIBUTOR_PLACEMENT_OPPORTUNITY :: AdTriggersElement
$mAdTriggersElement_DISTRIBUTOR_PLACEMENT_OPPORTUNITY :: forall r. AdTriggersElement -> (Void# -> r) -> (Void# -> r) -> r
AdTriggersElement_DISTRIBUTOR_PLACEMENT_OPPORTUNITY = AdTriggersElement' "DISTRIBUTOR_PLACEMENT_OPPORTUNITY"
pattern AdTriggersElement_PROVIDER_ADVERTISEMENT :: AdTriggersElement
pattern $bAdTriggersElement_PROVIDER_ADVERTISEMENT :: AdTriggersElement
$mAdTriggersElement_PROVIDER_ADVERTISEMENT :: forall r. AdTriggersElement -> (Void# -> r) -> (Void# -> r) -> r
AdTriggersElement_PROVIDER_ADVERTISEMENT = AdTriggersElement' "PROVIDER_ADVERTISEMENT"
pattern AdTriggersElement_PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY :: AdTriggersElement
pattern $bAdTriggersElement_PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY :: AdTriggersElement
$mAdTriggersElement_PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY :: forall r. AdTriggersElement -> (Void# -> r) -> (Void# -> r) -> r
AdTriggersElement_PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY = AdTriggersElement' "PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY"
pattern AdTriggersElement_PROVIDER_PLACEMENT_OPPORTUNITY :: AdTriggersElement
pattern $bAdTriggersElement_PROVIDER_PLACEMENT_OPPORTUNITY :: AdTriggersElement
$mAdTriggersElement_PROVIDER_PLACEMENT_OPPORTUNITY :: forall r. AdTriggersElement -> (Void# -> r) -> (Void# -> r) -> r
AdTriggersElement_PROVIDER_PLACEMENT_OPPORTUNITY = AdTriggersElement' "PROVIDER_PLACEMENT_OPPORTUNITY"
pattern AdTriggersElement_SPLICE_INSERT :: AdTriggersElement
pattern $bAdTriggersElement_SPLICE_INSERT :: AdTriggersElement
$mAdTriggersElement_SPLICE_INSERT :: forall r. AdTriggersElement -> (Void# -> r) -> (Void# -> r) -> r
AdTriggersElement_SPLICE_INSERT = AdTriggersElement' "SPLICE_INSERT"
{-# COMPLETE
AdTriggersElement_BREAK,
AdTriggersElement_DISTRIBUTOR_ADVERTISEMENT,
AdTriggersElement_DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY,
AdTriggersElement_DISTRIBUTOR_PLACEMENT_OPPORTUNITY,
AdTriggersElement_PROVIDER_ADVERTISEMENT,
AdTriggersElement_PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY,
AdTriggersElement_PROVIDER_PLACEMENT_OPPORTUNITY,
AdTriggersElement_SPLICE_INSERT,
AdTriggersElement'
#-}