{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MediaPackageVOD.Types.PeriodTriggersElement
( PeriodTriggersElement
( ..,
PeriodTriggersElement_ADS
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype PeriodTriggersElement = PeriodTriggersElement'
{ PeriodTriggersElement -> Text
fromPeriodTriggersElement ::
Core.Text
}
deriving stock
( Int -> PeriodTriggersElement -> ShowS
[PeriodTriggersElement] -> ShowS
PeriodTriggersElement -> String
(Int -> PeriodTriggersElement -> ShowS)
-> (PeriodTriggersElement -> String)
-> ([PeriodTriggersElement] -> ShowS)
-> Show PeriodTriggersElement
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PeriodTriggersElement] -> ShowS
$cshowList :: [PeriodTriggersElement] -> ShowS
show :: PeriodTriggersElement -> String
$cshow :: PeriodTriggersElement -> String
showsPrec :: Int -> PeriodTriggersElement -> ShowS
$cshowsPrec :: Int -> PeriodTriggersElement -> ShowS
Prelude.Show,
ReadPrec [PeriodTriggersElement]
ReadPrec PeriodTriggersElement
Int -> ReadS PeriodTriggersElement
ReadS [PeriodTriggersElement]
(Int -> ReadS PeriodTriggersElement)
-> ReadS [PeriodTriggersElement]
-> ReadPrec PeriodTriggersElement
-> ReadPrec [PeriodTriggersElement]
-> Read PeriodTriggersElement
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PeriodTriggersElement]
$creadListPrec :: ReadPrec [PeriodTriggersElement]
readPrec :: ReadPrec PeriodTriggersElement
$creadPrec :: ReadPrec PeriodTriggersElement
readList :: ReadS [PeriodTriggersElement]
$creadList :: ReadS [PeriodTriggersElement]
readsPrec :: Int -> ReadS PeriodTriggersElement
$creadsPrec :: Int -> ReadS PeriodTriggersElement
Prelude.Read,
PeriodTriggersElement -> PeriodTriggersElement -> Bool
(PeriodTriggersElement -> PeriodTriggersElement -> Bool)
-> (PeriodTriggersElement -> PeriodTriggersElement -> Bool)
-> Eq PeriodTriggersElement
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PeriodTriggersElement -> PeriodTriggersElement -> Bool
$c/= :: PeriodTriggersElement -> PeriodTriggersElement -> Bool
== :: PeriodTriggersElement -> PeriodTriggersElement -> Bool
$c== :: PeriodTriggersElement -> PeriodTriggersElement -> Bool
Prelude.Eq,
Eq PeriodTriggersElement
Eq PeriodTriggersElement
-> (PeriodTriggersElement -> PeriodTriggersElement -> Ordering)
-> (PeriodTriggersElement -> PeriodTriggersElement -> Bool)
-> (PeriodTriggersElement -> PeriodTriggersElement -> Bool)
-> (PeriodTriggersElement -> PeriodTriggersElement -> Bool)
-> (PeriodTriggersElement -> PeriodTriggersElement -> Bool)
-> (PeriodTriggersElement
-> PeriodTriggersElement -> PeriodTriggersElement)
-> (PeriodTriggersElement
-> PeriodTriggersElement -> PeriodTriggersElement)
-> Ord PeriodTriggersElement
PeriodTriggersElement -> PeriodTriggersElement -> Bool
PeriodTriggersElement -> PeriodTriggersElement -> Ordering
PeriodTriggersElement
-> PeriodTriggersElement -> PeriodTriggersElement
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 :: PeriodTriggersElement
-> PeriodTriggersElement -> PeriodTriggersElement
$cmin :: PeriodTriggersElement
-> PeriodTriggersElement -> PeriodTriggersElement
max :: PeriodTriggersElement
-> PeriodTriggersElement -> PeriodTriggersElement
$cmax :: PeriodTriggersElement
-> PeriodTriggersElement -> PeriodTriggersElement
>= :: PeriodTriggersElement -> PeriodTriggersElement -> Bool
$c>= :: PeriodTriggersElement -> PeriodTriggersElement -> Bool
> :: PeriodTriggersElement -> PeriodTriggersElement -> Bool
$c> :: PeriodTriggersElement -> PeriodTriggersElement -> Bool
<= :: PeriodTriggersElement -> PeriodTriggersElement -> Bool
$c<= :: PeriodTriggersElement -> PeriodTriggersElement -> Bool
< :: PeriodTriggersElement -> PeriodTriggersElement -> Bool
$c< :: PeriodTriggersElement -> PeriodTriggersElement -> Bool
compare :: PeriodTriggersElement -> PeriodTriggersElement -> Ordering
$ccompare :: PeriodTriggersElement -> PeriodTriggersElement -> Ordering
$cp1Ord :: Eq PeriodTriggersElement
Prelude.Ord,
(forall x. PeriodTriggersElement -> Rep PeriodTriggersElement x)
-> (forall x. Rep PeriodTriggersElement x -> PeriodTriggersElement)
-> Generic PeriodTriggersElement
forall x. Rep PeriodTriggersElement x -> PeriodTriggersElement
forall x. PeriodTriggersElement -> Rep PeriodTriggersElement x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PeriodTriggersElement x -> PeriodTriggersElement
$cfrom :: forall x. PeriodTriggersElement -> Rep PeriodTriggersElement x
Prelude.Generic
)
deriving newtype
( Int -> PeriodTriggersElement -> Int
PeriodTriggersElement -> Int
(Int -> PeriodTriggersElement -> Int)
-> (PeriodTriggersElement -> Int) -> Hashable PeriodTriggersElement
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: PeriodTriggersElement -> Int
$chash :: PeriodTriggersElement -> Int
hashWithSalt :: Int -> PeriodTriggersElement -> Int
$chashWithSalt :: Int -> PeriodTriggersElement -> Int
Prelude.Hashable,
PeriodTriggersElement -> ()
(PeriodTriggersElement -> ()) -> NFData PeriodTriggersElement
forall a. (a -> ()) -> NFData a
rnf :: PeriodTriggersElement -> ()
$crnf :: PeriodTriggersElement -> ()
Prelude.NFData,
Text -> Either String PeriodTriggersElement
(Text -> Either String PeriodTriggersElement)
-> FromText PeriodTriggersElement
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String PeriodTriggersElement
$cfromText :: Text -> Either String PeriodTriggersElement
Core.FromText,
PeriodTriggersElement -> Text
(PeriodTriggersElement -> Text) -> ToText PeriodTriggersElement
forall a. (a -> Text) -> ToText a
toText :: PeriodTriggersElement -> Text
$ctoText :: PeriodTriggersElement -> Text
Core.ToText,
PeriodTriggersElement -> ByteString
(PeriodTriggersElement -> ByteString)
-> ToByteString PeriodTriggersElement
forall a. (a -> ByteString) -> ToByteString a
toBS :: PeriodTriggersElement -> ByteString
$ctoBS :: PeriodTriggersElement -> ByteString
Core.ToByteString,
PeriodTriggersElement -> ByteStringBuilder
(PeriodTriggersElement -> ByteStringBuilder)
-> ToLog PeriodTriggersElement
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: PeriodTriggersElement -> ByteStringBuilder
$cbuild :: PeriodTriggersElement -> ByteStringBuilder
Core.ToLog,
HeaderName -> PeriodTriggersElement -> [Header]
(HeaderName -> PeriodTriggersElement -> [Header])
-> ToHeader PeriodTriggersElement
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> PeriodTriggersElement -> [Header]
$ctoHeader :: HeaderName -> PeriodTriggersElement -> [Header]
Core.ToHeader,
PeriodTriggersElement -> QueryString
(PeriodTriggersElement -> QueryString)
-> ToQuery PeriodTriggersElement
forall a. (a -> QueryString) -> ToQuery a
toQuery :: PeriodTriggersElement -> QueryString
$ctoQuery :: PeriodTriggersElement -> QueryString
Core.ToQuery,
Value -> Parser [PeriodTriggersElement]
Value -> Parser PeriodTriggersElement
(Value -> Parser PeriodTriggersElement)
-> (Value -> Parser [PeriodTriggersElement])
-> FromJSON PeriodTriggersElement
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [PeriodTriggersElement]
$cparseJSONList :: Value -> Parser [PeriodTriggersElement]
parseJSON :: Value -> Parser PeriodTriggersElement
$cparseJSON :: Value -> Parser PeriodTriggersElement
Core.FromJSON,
FromJSONKeyFunction [PeriodTriggersElement]
FromJSONKeyFunction PeriodTriggersElement
FromJSONKeyFunction PeriodTriggersElement
-> FromJSONKeyFunction [PeriodTriggersElement]
-> FromJSONKey PeriodTriggersElement
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [PeriodTriggersElement]
$cfromJSONKeyList :: FromJSONKeyFunction [PeriodTriggersElement]
fromJSONKey :: FromJSONKeyFunction PeriodTriggersElement
$cfromJSONKey :: FromJSONKeyFunction PeriodTriggersElement
Core.FromJSONKey,
[PeriodTriggersElement] -> Encoding
[PeriodTriggersElement] -> Value
PeriodTriggersElement -> Encoding
PeriodTriggersElement -> Value
(PeriodTriggersElement -> Value)
-> (PeriodTriggersElement -> Encoding)
-> ([PeriodTriggersElement] -> Value)
-> ([PeriodTriggersElement] -> Encoding)
-> ToJSON PeriodTriggersElement
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [PeriodTriggersElement] -> Encoding
$ctoEncodingList :: [PeriodTriggersElement] -> Encoding
toJSONList :: [PeriodTriggersElement] -> Value
$ctoJSONList :: [PeriodTriggersElement] -> Value
toEncoding :: PeriodTriggersElement -> Encoding
$ctoEncoding :: PeriodTriggersElement -> Encoding
toJSON :: PeriodTriggersElement -> Value
$ctoJSON :: PeriodTriggersElement -> Value
Core.ToJSON,
ToJSONKeyFunction [PeriodTriggersElement]
ToJSONKeyFunction PeriodTriggersElement
ToJSONKeyFunction PeriodTriggersElement
-> ToJSONKeyFunction [PeriodTriggersElement]
-> ToJSONKey PeriodTriggersElement
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [PeriodTriggersElement]
$ctoJSONKeyList :: ToJSONKeyFunction [PeriodTriggersElement]
toJSONKey :: ToJSONKeyFunction PeriodTriggersElement
$ctoJSONKey :: ToJSONKeyFunction PeriodTriggersElement
Core.ToJSONKey,
[Node] -> Either String PeriodTriggersElement
([Node] -> Either String PeriodTriggersElement)
-> FromXML PeriodTriggersElement
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String PeriodTriggersElement
$cparseXML :: [Node] -> Either String PeriodTriggersElement
Core.FromXML,
PeriodTriggersElement -> XML
(PeriodTriggersElement -> XML) -> ToXML PeriodTriggersElement
forall a. (a -> XML) -> ToXML a
toXML :: PeriodTriggersElement -> XML
$ctoXML :: PeriodTriggersElement -> XML
Core.ToXML
)
pattern PeriodTriggersElement_ADS :: PeriodTriggersElement
pattern $bPeriodTriggersElement_ADS :: PeriodTriggersElement
$mPeriodTriggersElement_ADS :: forall r.
PeriodTriggersElement -> (Void# -> r) -> (Void# -> r) -> r
PeriodTriggersElement_ADS = PeriodTriggersElement' "ADS"
{-# COMPLETE
PeriodTriggersElement_ADS,
PeriodTriggersElement'
#-}