module Stratosphere.Pinpoint.PushTemplate (
        module Exports, PushTemplate(..), mkPushTemplate
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Pinpoint.PushTemplate.APNSPushNotificationTemplateProperty as Exports
import {-# SOURCE #-} Stratosphere.Pinpoint.PushTemplate.AndroidPushNotificationTemplateProperty as Exports
import {-# SOURCE #-} Stratosphere.Pinpoint.PushTemplate.DefaultPushNotificationTemplateProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PushTemplate
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-pushtemplate.html>
    PushTemplate {PushTemplate -> ()
haddock_workaround_ :: (),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-pushtemplate.html#cfn-pinpoint-pushtemplate-adm>
                  PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
aDM :: (Prelude.Maybe AndroidPushNotificationTemplateProperty),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-pushtemplate.html#cfn-pinpoint-pushtemplate-apns>
                  PushTemplate -> Maybe APNSPushNotificationTemplateProperty
aPNS :: (Prelude.Maybe APNSPushNotificationTemplateProperty),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-pushtemplate.html#cfn-pinpoint-pushtemplate-baidu>
                  PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
baidu :: (Prelude.Maybe AndroidPushNotificationTemplateProperty),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-pushtemplate.html#cfn-pinpoint-pushtemplate-default>
                  PushTemplate -> Maybe DefaultPushNotificationTemplateProperty
default' :: (Prelude.Maybe DefaultPushNotificationTemplateProperty),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-pushtemplate.html#cfn-pinpoint-pushtemplate-defaultsubstitutions>
                  PushTemplate -> Maybe (Value Text)
defaultSubstitutions :: (Prelude.Maybe (Value Prelude.Text)),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-pushtemplate.html#cfn-pinpoint-pushtemplate-gcm>
                  PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
gCM :: (Prelude.Maybe AndroidPushNotificationTemplateProperty),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-pushtemplate.html#cfn-pinpoint-pushtemplate-tags>
                  PushTemplate -> Maybe Object
tags :: (Prelude.Maybe JSON.Object),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-pushtemplate.html#cfn-pinpoint-pushtemplate-templatedescription>
                  PushTemplate -> Maybe (Value Text)
templateDescription :: (Prelude.Maybe (Value Prelude.Text)),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-pushtemplate.html#cfn-pinpoint-pushtemplate-templatename>
                  PushTemplate -> Value Text
templateName :: (Value Prelude.Text)}
  deriving stock (PushTemplate -> PushTemplate -> Bool
(PushTemplate -> PushTemplate -> Bool)
-> (PushTemplate -> PushTemplate -> Bool) -> Eq PushTemplate
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PushTemplate -> PushTemplate -> Bool
== :: PushTemplate -> PushTemplate -> Bool
$c/= :: PushTemplate -> PushTemplate -> Bool
/= :: PushTemplate -> PushTemplate -> Bool
Prelude.Eq, Int -> PushTemplate -> ShowS
[PushTemplate] -> ShowS
PushTemplate -> String
(Int -> PushTemplate -> ShowS)
-> (PushTemplate -> String)
-> ([PushTemplate] -> ShowS)
-> Show PushTemplate
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PushTemplate -> ShowS
showsPrec :: Int -> PushTemplate -> ShowS
$cshow :: PushTemplate -> String
show :: PushTemplate -> String
$cshowList :: [PushTemplate] -> ShowS
showList :: [PushTemplate] -> ShowS
Prelude.Show)
mkPushTemplate :: Value Prelude.Text -> PushTemplate
mkPushTemplate :: Value Text -> PushTemplate
mkPushTemplate Value Text
templateName
  = PushTemplate
      {haddock_workaround_ :: ()
haddock_workaround_ = (), templateName :: Value Text
templateName = Value Text
templateName,
       aDM :: Maybe AndroidPushNotificationTemplateProperty
aDM = Maybe AndroidPushNotificationTemplateProperty
forall a. Maybe a
Prelude.Nothing, aPNS :: Maybe APNSPushNotificationTemplateProperty
aPNS = Maybe APNSPushNotificationTemplateProperty
forall a. Maybe a
Prelude.Nothing,
       baidu :: Maybe AndroidPushNotificationTemplateProperty
baidu = Maybe AndroidPushNotificationTemplateProperty
forall a. Maybe a
Prelude.Nothing, default' :: Maybe DefaultPushNotificationTemplateProperty
default' = Maybe DefaultPushNotificationTemplateProperty
forall a. Maybe a
Prelude.Nothing,
       defaultSubstitutions :: Maybe (Value Text)
defaultSubstitutions = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, gCM :: Maybe AndroidPushNotificationTemplateProperty
gCM = Maybe AndroidPushNotificationTemplateProperty
forall a. Maybe a
Prelude.Nothing,
       tags :: Maybe Object
tags = Maybe Object
forall a. Maybe a
Prelude.Nothing, templateDescription :: Maybe (Value Text)
templateDescription = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PushTemplate where
  toResourceProperties :: PushTemplate -> ResourceProperties
toResourceProperties PushTemplate {Maybe Object
Maybe (Value Text)
Maybe APNSPushNotificationTemplateProperty
Maybe AndroidPushNotificationTemplateProperty
Maybe DefaultPushNotificationTemplateProperty
()
Value Text
haddock_workaround_ :: PushTemplate -> ()
aDM :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
aPNS :: PushTemplate -> Maybe APNSPushNotificationTemplateProperty
baidu :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
default' :: PushTemplate -> Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: PushTemplate -> Maybe (Value Text)
gCM :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
tags :: PushTemplate -> Maybe Object
templateDescription :: PushTemplate -> Maybe (Value Text)
templateName :: PushTemplate -> Value Text
haddock_workaround_ :: ()
aDM :: Maybe AndroidPushNotificationTemplateProperty
aPNS :: Maybe APNSPushNotificationTemplateProperty
baidu :: Maybe AndroidPushNotificationTemplateProperty
default' :: Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: Maybe (Value Text)
gCM :: Maybe AndroidPushNotificationTemplateProperty
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Pinpoint::PushTemplate",
         supportsTags :: Bool
supportsTags = Bool
Prelude.True,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"TemplateName" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
templateName]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> AndroidPushNotificationTemplateProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ADM" (AndroidPushNotificationTemplateProperty -> (Key, Value))
-> Maybe AndroidPushNotificationTemplateProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AndroidPushNotificationTemplateProperty
aDM,
                               Key -> APNSPushNotificationTemplateProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"APNS" (APNSPushNotificationTemplateProperty -> (Key, Value))
-> Maybe APNSPushNotificationTemplateProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe APNSPushNotificationTemplateProperty
aPNS,
                               Key -> AndroidPushNotificationTemplateProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Baidu" (AndroidPushNotificationTemplateProperty -> (Key, Value))
-> Maybe AndroidPushNotificationTemplateProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AndroidPushNotificationTemplateProperty
baidu,
                               Key -> DefaultPushNotificationTemplateProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Default" (DefaultPushNotificationTemplateProperty -> (Key, Value))
-> Maybe DefaultPushNotificationTemplateProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DefaultPushNotificationTemplateProperty
default',
                               Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DefaultSubstitutions" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
defaultSubstitutions,
                               Key -> AndroidPushNotificationTemplateProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"GCM" (AndroidPushNotificationTemplateProperty -> (Key, Value))
-> Maybe AndroidPushNotificationTemplateProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AndroidPushNotificationTemplateProperty
gCM, Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
tags,
                               Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TemplateDescription" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
templateDescription]))}
instance JSON.ToJSON PushTemplate where
  toJSON :: PushTemplate -> Value
toJSON PushTemplate {Maybe Object
Maybe (Value Text)
Maybe APNSPushNotificationTemplateProperty
Maybe AndroidPushNotificationTemplateProperty
Maybe DefaultPushNotificationTemplateProperty
()
Value Text
haddock_workaround_ :: PushTemplate -> ()
aDM :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
aPNS :: PushTemplate -> Maybe APNSPushNotificationTemplateProperty
baidu :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
default' :: PushTemplate -> Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: PushTemplate -> Maybe (Value Text)
gCM :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
tags :: PushTemplate -> Maybe Object
templateDescription :: PushTemplate -> Maybe (Value Text)
templateName :: PushTemplate -> Value Text
haddock_workaround_ :: ()
aDM :: Maybe AndroidPushNotificationTemplateProperty
aPNS :: Maybe APNSPushNotificationTemplateProperty
baidu :: Maybe AndroidPushNotificationTemplateProperty
default' :: Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: Maybe (Value Text)
gCM :: Maybe AndroidPushNotificationTemplateProperty
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"TemplateName" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
templateName]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> AndroidPushNotificationTemplateProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ADM" (AndroidPushNotificationTemplateProperty -> (Key, Value))
-> Maybe AndroidPushNotificationTemplateProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AndroidPushNotificationTemplateProperty
aDM,
                  Key -> APNSPushNotificationTemplateProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"APNS" (APNSPushNotificationTemplateProperty -> (Key, Value))
-> Maybe APNSPushNotificationTemplateProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe APNSPushNotificationTemplateProperty
aPNS,
                  Key -> AndroidPushNotificationTemplateProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Baidu" (AndroidPushNotificationTemplateProperty -> (Key, Value))
-> Maybe AndroidPushNotificationTemplateProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AndroidPushNotificationTemplateProperty
baidu,
                  Key -> DefaultPushNotificationTemplateProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Default" (DefaultPushNotificationTemplateProperty -> (Key, Value))
-> Maybe DefaultPushNotificationTemplateProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DefaultPushNotificationTemplateProperty
default',
                  Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DefaultSubstitutions" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
defaultSubstitutions,
                  Key -> AndroidPushNotificationTemplateProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"GCM" (AndroidPushNotificationTemplateProperty -> (Key, Value))
-> Maybe AndroidPushNotificationTemplateProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AndroidPushNotificationTemplateProperty
gCM, Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
tags,
                  Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TemplateDescription" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
templateDescription])))
instance Property "ADM" PushTemplate where
  type PropertyType "ADM" PushTemplate = AndroidPushNotificationTemplateProperty
  set :: PropertyType "ADM" PushTemplate -> PushTemplate -> PushTemplate
set PropertyType "ADM" PushTemplate
newValue PushTemplate {Maybe Object
Maybe (Value Text)
Maybe APNSPushNotificationTemplateProperty
Maybe AndroidPushNotificationTemplateProperty
Maybe DefaultPushNotificationTemplateProperty
()
Value Text
haddock_workaround_ :: PushTemplate -> ()
aDM :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
aPNS :: PushTemplate -> Maybe APNSPushNotificationTemplateProperty
baidu :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
default' :: PushTemplate -> Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: PushTemplate -> Maybe (Value Text)
gCM :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
tags :: PushTemplate -> Maybe Object
templateDescription :: PushTemplate -> Maybe (Value Text)
templateName :: PushTemplate -> Value Text
haddock_workaround_ :: ()
aDM :: Maybe AndroidPushNotificationTemplateProperty
aPNS :: Maybe APNSPushNotificationTemplateProperty
baidu :: Maybe AndroidPushNotificationTemplateProperty
default' :: Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: Maybe (Value Text)
gCM :: Maybe AndroidPushNotificationTemplateProperty
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
..}
    = PushTemplate {aDM :: Maybe AndroidPushNotificationTemplateProperty
aDM = AndroidPushNotificationTemplateProperty
-> Maybe AndroidPushNotificationTemplateProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ADM" PushTemplate
AndroidPushNotificationTemplateProperty
newValue, Maybe Object
Maybe (Value Text)
Maybe APNSPushNotificationTemplateProperty
Maybe AndroidPushNotificationTemplateProperty
Maybe DefaultPushNotificationTemplateProperty
()
Value Text
haddock_workaround_ :: ()
aPNS :: Maybe APNSPushNotificationTemplateProperty
baidu :: Maybe AndroidPushNotificationTemplateProperty
default' :: Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: Maybe (Value Text)
gCM :: Maybe AndroidPushNotificationTemplateProperty
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
haddock_workaround_ :: ()
aPNS :: Maybe APNSPushNotificationTemplateProperty
baidu :: Maybe AndroidPushNotificationTemplateProperty
default' :: Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: Maybe (Value Text)
gCM :: Maybe AndroidPushNotificationTemplateProperty
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
..}
instance Property "APNS" PushTemplate where
  type PropertyType "APNS" PushTemplate = APNSPushNotificationTemplateProperty
  set :: PropertyType "APNS" PushTemplate -> PushTemplate -> PushTemplate
set PropertyType "APNS" PushTemplate
newValue PushTemplate {Maybe Object
Maybe (Value Text)
Maybe APNSPushNotificationTemplateProperty
Maybe AndroidPushNotificationTemplateProperty
Maybe DefaultPushNotificationTemplateProperty
()
Value Text
haddock_workaround_ :: PushTemplate -> ()
aDM :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
aPNS :: PushTemplate -> Maybe APNSPushNotificationTemplateProperty
baidu :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
default' :: PushTemplate -> Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: PushTemplate -> Maybe (Value Text)
gCM :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
tags :: PushTemplate -> Maybe Object
templateDescription :: PushTemplate -> Maybe (Value Text)
templateName :: PushTemplate -> Value Text
haddock_workaround_ :: ()
aDM :: Maybe AndroidPushNotificationTemplateProperty
aPNS :: Maybe APNSPushNotificationTemplateProperty
baidu :: Maybe AndroidPushNotificationTemplateProperty
default' :: Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: Maybe (Value Text)
gCM :: Maybe AndroidPushNotificationTemplateProperty
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
..}
    = PushTemplate {aPNS :: Maybe APNSPushNotificationTemplateProperty
aPNS = APNSPushNotificationTemplateProperty
-> Maybe APNSPushNotificationTemplateProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "APNS" PushTemplate
APNSPushNotificationTemplateProperty
newValue, Maybe Object
Maybe (Value Text)
Maybe AndroidPushNotificationTemplateProperty
Maybe DefaultPushNotificationTemplateProperty
()
Value Text
haddock_workaround_ :: ()
aDM :: Maybe AndroidPushNotificationTemplateProperty
baidu :: Maybe AndroidPushNotificationTemplateProperty
default' :: Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: Maybe (Value Text)
gCM :: Maybe AndroidPushNotificationTemplateProperty
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
haddock_workaround_ :: ()
aDM :: Maybe AndroidPushNotificationTemplateProperty
baidu :: Maybe AndroidPushNotificationTemplateProperty
default' :: Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: Maybe (Value Text)
gCM :: Maybe AndroidPushNotificationTemplateProperty
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
..}
instance Property "Baidu" PushTemplate where
  type PropertyType "Baidu" PushTemplate = AndroidPushNotificationTemplateProperty
  set :: PropertyType "Baidu" PushTemplate -> PushTemplate -> PushTemplate
set PropertyType "Baidu" PushTemplate
newValue PushTemplate {Maybe Object
Maybe (Value Text)
Maybe APNSPushNotificationTemplateProperty
Maybe AndroidPushNotificationTemplateProperty
Maybe DefaultPushNotificationTemplateProperty
()
Value Text
haddock_workaround_ :: PushTemplate -> ()
aDM :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
aPNS :: PushTemplate -> Maybe APNSPushNotificationTemplateProperty
baidu :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
default' :: PushTemplate -> Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: PushTemplate -> Maybe (Value Text)
gCM :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
tags :: PushTemplate -> Maybe Object
templateDescription :: PushTemplate -> Maybe (Value Text)
templateName :: PushTemplate -> Value Text
haddock_workaround_ :: ()
aDM :: Maybe AndroidPushNotificationTemplateProperty
aPNS :: Maybe APNSPushNotificationTemplateProperty
baidu :: Maybe AndroidPushNotificationTemplateProperty
default' :: Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: Maybe (Value Text)
gCM :: Maybe AndroidPushNotificationTemplateProperty
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
..}
    = PushTemplate {baidu :: Maybe AndroidPushNotificationTemplateProperty
baidu = AndroidPushNotificationTemplateProperty
-> Maybe AndroidPushNotificationTemplateProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Baidu" PushTemplate
AndroidPushNotificationTemplateProperty
newValue, Maybe Object
Maybe (Value Text)
Maybe APNSPushNotificationTemplateProperty
Maybe AndroidPushNotificationTemplateProperty
Maybe DefaultPushNotificationTemplateProperty
()
Value Text
haddock_workaround_ :: ()
aDM :: Maybe AndroidPushNotificationTemplateProperty
aPNS :: Maybe APNSPushNotificationTemplateProperty
default' :: Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: Maybe (Value Text)
gCM :: Maybe AndroidPushNotificationTemplateProperty
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
haddock_workaround_ :: ()
aDM :: Maybe AndroidPushNotificationTemplateProperty
aPNS :: Maybe APNSPushNotificationTemplateProperty
default' :: Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: Maybe (Value Text)
gCM :: Maybe AndroidPushNotificationTemplateProperty
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
..}
instance Property "Default" PushTemplate where
  type PropertyType "Default" PushTemplate = DefaultPushNotificationTemplateProperty
  set :: PropertyType "Default" PushTemplate -> PushTemplate -> PushTemplate
set PropertyType "Default" PushTemplate
newValue PushTemplate {Maybe Object
Maybe (Value Text)
Maybe APNSPushNotificationTemplateProperty
Maybe AndroidPushNotificationTemplateProperty
Maybe DefaultPushNotificationTemplateProperty
()
Value Text
haddock_workaround_ :: PushTemplate -> ()
aDM :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
aPNS :: PushTemplate -> Maybe APNSPushNotificationTemplateProperty
baidu :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
default' :: PushTemplate -> Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: PushTemplate -> Maybe (Value Text)
gCM :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
tags :: PushTemplate -> Maybe Object
templateDescription :: PushTemplate -> Maybe (Value Text)
templateName :: PushTemplate -> Value Text
haddock_workaround_ :: ()
aDM :: Maybe AndroidPushNotificationTemplateProperty
aPNS :: Maybe APNSPushNotificationTemplateProperty
baidu :: Maybe AndroidPushNotificationTemplateProperty
default' :: Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: Maybe (Value Text)
gCM :: Maybe AndroidPushNotificationTemplateProperty
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
..}
    = PushTemplate {default' :: Maybe DefaultPushNotificationTemplateProperty
default' = DefaultPushNotificationTemplateProperty
-> Maybe DefaultPushNotificationTemplateProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Default" PushTemplate
DefaultPushNotificationTemplateProperty
newValue, Maybe Object
Maybe (Value Text)
Maybe APNSPushNotificationTemplateProperty
Maybe AndroidPushNotificationTemplateProperty
()
Value Text
haddock_workaround_ :: ()
aDM :: Maybe AndroidPushNotificationTemplateProperty
aPNS :: Maybe APNSPushNotificationTemplateProperty
baidu :: Maybe AndroidPushNotificationTemplateProperty
defaultSubstitutions :: Maybe (Value Text)
gCM :: Maybe AndroidPushNotificationTemplateProperty
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
haddock_workaround_ :: ()
aDM :: Maybe AndroidPushNotificationTemplateProperty
aPNS :: Maybe APNSPushNotificationTemplateProperty
baidu :: Maybe AndroidPushNotificationTemplateProperty
defaultSubstitutions :: Maybe (Value Text)
gCM :: Maybe AndroidPushNotificationTemplateProperty
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
..}
instance Property "DefaultSubstitutions" PushTemplate where
  type PropertyType "DefaultSubstitutions" PushTemplate = Value Prelude.Text
  set :: PropertyType "DefaultSubstitutions" PushTemplate
-> PushTemplate -> PushTemplate
set PropertyType "DefaultSubstitutions" PushTemplate
newValue PushTemplate {Maybe Object
Maybe (Value Text)
Maybe APNSPushNotificationTemplateProperty
Maybe AndroidPushNotificationTemplateProperty
Maybe DefaultPushNotificationTemplateProperty
()
Value Text
haddock_workaround_ :: PushTemplate -> ()
aDM :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
aPNS :: PushTemplate -> Maybe APNSPushNotificationTemplateProperty
baidu :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
default' :: PushTemplate -> Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: PushTemplate -> Maybe (Value Text)
gCM :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
tags :: PushTemplate -> Maybe Object
templateDescription :: PushTemplate -> Maybe (Value Text)
templateName :: PushTemplate -> Value Text
haddock_workaround_ :: ()
aDM :: Maybe AndroidPushNotificationTemplateProperty
aPNS :: Maybe APNSPushNotificationTemplateProperty
baidu :: Maybe AndroidPushNotificationTemplateProperty
default' :: Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: Maybe (Value Text)
gCM :: Maybe AndroidPushNotificationTemplateProperty
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
..}
    = PushTemplate {defaultSubstitutions :: Maybe (Value Text)
defaultSubstitutions = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DefaultSubstitutions" PushTemplate
Value Text
newValue, Maybe Object
Maybe (Value Text)
Maybe APNSPushNotificationTemplateProperty
Maybe AndroidPushNotificationTemplateProperty
Maybe DefaultPushNotificationTemplateProperty
()
Value Text
haddock_workaround_ :: ()
aDM :: Maybe AndroidPushNotificationTemplateProperty
aPNS :: Maybe APNSPushNotificationTemplateProperty
baidu :: Maybe AndroidPushNotificationTemplateProperty
default' :: Maybe DefaultPushNotificationTemplateProperty
gCM :: Maybe AndroidPushNotificationTemplateProperty
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
haddock_workaround_ :: ()
aDM :: Maybe AndroidPushNotificationTemplateProperty
aPNS :: Maybe APNSPushNotificationTemplateProperty
baidu :: Maybe AndroidPushNotificationTemplateProperty
default' :: Maybe DefaultPushNotificationTemplateProperty
gCM :: Maybe AndroidPushNotificationTemplateProperty
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
..}
instance Property "GCM" PushTemplate where
  type PropertyType "GCM" PushTemplate = AndroidPushNotificationTemplateProperty
  set :: PropertyType "GCM" PushTemplate -> PushTemplate -> PushTemplate
set PropertyType "GCM" PushTemplate
newValue PushTemplate {Maybe Object
Maybe (Value Text)
Maybe APNSPushNotificationTemplateProperty
Maybe AndroidPushNotificationTemplateProperty
Maybe DefaultPushNotificationTemplateProperty
()
Value Text
haddock_workaround_ :: PushTemplate -> ()
aDM :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
aPNS :: PushTemplate -> Maybe APNSPushNotificationTemplateProperty
baidu :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
default' :: PushTemplate -> Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: PushTemplate -> Maybe (Value Text)
gCM :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
tags :: PushTemplate -> Maybe Object
templateDescription :: PushTemplate -> Maybe (Value Text)
templateName :: PushTemplate -> Value Text
haddock_workaround_ :: ()
aDM :: Maybe AndroidPushNotificationTemplateProperty
aPNS :: Maybe APNSPushNotificationTemplateProperty
baidu :: Maybe AndroidPushNotificationTemplateProperty
default' :: Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: Maybe (Value Text)
gCM :: Maybe AndroidPushNotificationTemplateProperty
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
..}
    = PushTemplate {gCM :: Maybe AndroidPushNotificationTemplateProperty
gCM = AndroidPushNotificationTemplateProperty
-> Maybe AndroidPushNotificationTemplateProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "GCM" PushTemplate
AndroidPushNotificationTemplateProperty
newValue, Maybe Object
Maybe (Value Text)
Maybe APNSPushNotificationTemplateProperty
Maybe AndroidPushNotificationTemplateProperty
Maybe DefaultPushNotificationTemplateProperty
()
Value Text
haddock_workaround_ :: ()
aDM :: Maybe AndroidPushNotificationTemplateProperty
aPNS :: Maybe APNSPushNotificationTemplateProperty
baidu :: Maybe AndroidPushNotificationTemplateProperty
default' :: Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: Maybe (Value Text)
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
haddock_workaround_ :: ()
aDM :: Maybe AndroidPushNotificationTemplateProperty
aPNS :: Maybe APNSPushNotificationTemplateProperty
baidu :: Maybe AndroidPushNotificationTemplateProperty
default' :: Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: Maybe (Value Text)
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
..}
instance Property "Tags" PushTemplate where
  type PropertyType "Tags" PushTemplate = JSON.Object
  set :: PropertyType "Tags" PushTemplate -> PushTemplate -> PushTemplate
set PropertyType "Tags" PushTemplate
newValue PushTemplate {Maybe Object
Maybe (Value Text)
Maybe APNSPushNotificationTemplateProperty
Maybe AndroidPushNotificationTemplateProperty
Maybe DefaultPushNotificationTemplateProperty
()
Value Text
haddock_workaround_ :: PushTemplate -> ()
aDM :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
aPNS :: PushTemplate -> Maybe APNSPushNotificationTemplateProperty
baidu :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
default' :: PushTemplate -> Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: PushTemplate -> Maybe (Value Text)
gCM :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
tags :: PushTemplate -> Maybe Object
templateDescription :: PushTemplate -> Maybe (Value Text)
templateName :: PushTemplate -> Value Text
haddock_workaround_ :: ()
aDM :: Maybe AndroidPushNotificationTemplateProperty
aPNS :: Maybe APNSPushNotificationTemplateProperty
baidu :: Maybe AndroidPushNotificationTemplateProperty
default' :: Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: Maybe (Value Text)
gCM :: Maybe AndroidPushNotificationTemplateProperty
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
..}
    = PushTemplate {tags :: Maybe Object
tags = Object -> Maybe Object
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Object
PropertyType "Tags" PushTemplate
newValue, Maybe (Value Text)
Maybe APNSPushNotificationTemplateProperty
Maybe AndroidPushNotificationTemplateProperty
Maybe DefaultPushNotificationTemplateProperty
()
Value Text
haddock_workaround_ :: ()
aDM :: Maybe AndroidPushNotificationTemplateProperty
aPNS :: Maybe APNSPushNotificationTemplateProperty
baidu :: Maybe AndroidPushNotificationTemplateProperty
default' :: Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: Maybe (Value Text)
gCM :: Maybe AndroidPushNotificationTemplateProperty
templateDescription :: Maybe (Value Text)
templateName :: Value Text
haddock_workaround_ :: ()
aDM :: Maybe AndroidPushNotificationTemplateProperty
aPNS :: Maybe APNSPushNotificationTemplateProperty
baidu :: Maybe AndroidPushNotificationTemplateProperty
default' :: Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: Maybe (Value Text)
gCM :: Maybe AndroidPushNotificationTemplateProperty
templateDescription :: Maybe (Value Text)
templateName :: Value Text
..}
instance Property "TemplateDescription" PushTemplate where
  type PropertyType "TemplateDescription" PushTemplate = Value Prelude.Text
  set :: PropertyType "TemplateDescription" PushTemplate
-> PushTemplate -> PushTemplate
set PropertyType "TemplateDescription" PushTemplate
newValue PushTemplate {Maybe Object
Maybe (Value Text)
Maybe APNSPushNotificationTemplateProperty
Maybe AndroidPushNotificationTemplateProperty
Maybe DefaultPushNotificationTemplateProperty
()
Value Text
haddock_workaround_ :: PushTemplate -> ()
aDM :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
aPNS :: PushTemplate -> Maybe APNSPushNotificationTemplateProperty
baidu :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
default' :: PushTemplate -> Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: PushTemplate -> Maybe (Value Text)
gCM :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
tags :: PushTemplate -> Maybe Object
templateDescription :: PushTemplate -> Maybe (Value Text)
templateName :: PushTemplate -> Value Text
haddock_workaround_ :: ()
aDM :: Maybe AndroidPushNotificationTemplateProperty
aPNS :: Maybe APNSPushNotificationTemplateProperty
baidu :: Maybe AndroidPushNotificationTemplateProperty
default' :: Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: Maybe (Value Text)
gCM :: Maybe AndroidPushNotificationTemplateProperty
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
..}
    = PushTemplate {templateDescription :: Maybe (Value Text)
templateDescription = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TemplateDescription" PushTemplate
Value Text
newValue, Maybe Object
Maybe (Value Text)
Maybe APNSPushNotificationTemplateProperty
Maybe AndroidPushNotificationTemplateProperty
Maybe DefaultPushNotificationTemplateProperty
()
Value Text
haddock_workaround_ :: ()
aDM :: Maybe AndroidPushNotificationTemplateProperty
aPNS :: Maybe APNSPushNotificationTemplateProperty
baidu :: Maybe AndroidPushNotificationTemplateProperty
default' :: Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: Maybe (Value Text)
gCM :: Maybe AndroidPushNotificationTemplateProperty
tags :: Maybe Object
templateName :: Value Text
haddock_workaround_ :: ()
aDM :: Maybe AndroidPushNotificationTemplateProperty
aPNS :: Maybe APNSPushNotificationTemplateProperty
baidu :: Maybe AndroidPushNotificationTemplateProperty
default' :: Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: Maybe (Value Text)
gCM :: Maybe AndroidPushNotificationTemplateProperty
tags :: Maybe Object
templateName :: Value Text
..}
instance Property "TemplateName" PushTemplate where
  type PropertyType "TemplateName" PushTemplate = Value Prelude.Text
  set :: PropertyType "TemplateName" PushTemplate
-> PushTemplate -> PushTemplate
set PropertyType "TemplateName" PushTemplate
newValue PushTemplate {Maybe Object
Maybe (Value Text)
Maybe APNSPushNotificationTemplateProperty
Maybe AndroidPushNotificationTemplateProperty
Maybe DefaultPushNotificationTemplateProperty
()
Value Text
haddock_workaround_ :: PushTemplate -> ()
aDM :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
aPNS :: PushTemplate -> Maybe APNSPushNotificationTemplateProperty
baidu :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
default' :: PushTemplate -> Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: PushTemplate -> Maybe (Value Text)
gCM :: PushTemplate -> Maybe AndroidPushNotificationTemplateProperty
tags :: PushTemplate -> Maybe Object
templateDescription :: PushTemplate -> Maybe (Value Text)
templateName :: PushTemplate -> Value Text
haddock_workaround_ :: ()
aDM :: Maybe AndroidPushNotificationTemplateProperty
aPNS :: Maybe APNSPushNotificationTemplateProperty
baidu :: Maybe AndroidPushNotificationTemplateProperty
default' :: Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: Maybe (Value Text)
gCM :: Maybe AndroidPushNotificationTemplateProperty
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
..}
    = PushTemplate {templateName :: Value Text
templateName = PropertyType "TemplateName" PushTemplate
Value Text
newValue, Maybe Object
Maybe (Value Text)
Maybe APNSPushNotificationTemplateProperty
Maybe AndroidPushNotificationTemplateProperty
Maybe DefaultPushNotificationTemplateProperty
()
haddock_workaround_ :: ()
aDM :: Maybe AndroidPushNotificationTemplateProperty
aPNS :: Maybe APNSPushNotificationTemplateProperty
baidu :: Maybe AndroidPushNotificationTemplateProperty
default' :: Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: Maybe (Value Text)
gCM :: Maybe AndroidPushNotificationTemplateProperty
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
haddock_workaround_ :: ()
aDM :: Maybe AndroidPushNotificationTemplateProperty
aPNS :: Maybe APNSPushNotificationTemplateProperty
baidu :: Maybe AndroidPushNotificationTemplateProperty
default' :: Maybe DefaultPushNotificationTemplateProperty
defaultSubstitutions :: Maybe (Value Text)
gCM :: Maybe AndroidPushNotificationTemplateProperty
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
..}