Interface CfnCampaign.MessageConfigurationProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnCampaign.MessageConfigurationProperty.Jsii$Proxy
Enclosing class:
CfnCampaign

@Stability(Stable) public static interface CfnCampaign.MessageConfigurationProperty extends software.amazon.jsii.JsiiSerializable
Specifies the message configuration settings for a campaign.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.pinpoint.*;
 Object customConfig;
 MessageConfigurationProperty messageConfigurationProperty = MessageConfigurationProperty.builder()
         .admMessage(MessageProperty.builder()
                 .action("action")
                 .body("body")
                 .imageIconUrl("imageIconUrl")
                 .imageSmallIconUrl("imageSmallIconUrl")
                 .imageUrl("imageUrl")
                 .jsonBody("jsonBody")
                 .mediaUrl("mediaUrl")
                 .rawContent("rawContent")
                 .silentPush(false)
                 .timeToLive(123)
                 .title("title")
                 .url("url")
                 .build())
         .apnsMessage(MessageProperty.builder()
                 .action("action")
                 .body("body")
                 .imageIconUrl("imageIconUrl")
                 .imageSmallIconUrl("imageSmallIconUrl")
                 .imageUrl("imageUrl")
                 .jsonBody("jsonBody")
                 .mediaUrl("mediaUrl")
                 .rawContent("rawContent")
                 .silentPush(false)
                 .timeToLive(123)
                 .title("title")
                 .url("url")
                 .build())
         .baiduMessage(MessageProperty.builder()
                 .action("action")
                 .body("body")
                 .imageIconUrl("imageIconUrl")
                 .imageSmallIconUrl("imageSmallIconUrl")
                 .imageUrl("imageUrl")
                 .jsonBody("jsonBody")
                 .mediaUrl("mediaUrl")
                 .rawContent("rawContent")
                 .silentPush(false)
                 .timeToLive(123)
                 .title("title")
                 .url("url")
                 .build())
         .customMessage(CampaignCustomMessageProperty.builder()
                 .data("data")
                 .build())
         .defaultMessage(MessageProperty.builder()
                 .action("action")
                 .body("body")
                 .imageIconUrl("imageIconUrl")
                 .imageSmallIconUrl("imageSmallIconUrl")
                 .imageUrl("imageUrl")
                 .jsonBody("jsonBody")
                 .mediaUrl("mediaUrl")
                 .rawContent("rawContent")
                 .silentPush(false)
                 .timeToLive(123)
                 .title("title")
                 .url("url")
                 .build())
         .emailMessage(CampaignEmailMessageProperty.builder()
                 .body("body")
                 .fromAddress("fromAddress")
                 .htmlBody("htmlBody")
                 .title("title")
                 .build())
         .gcmMessage(MessageProperty.builder()
                 .action("action")
                 .body("body")
                 .imageIconUrl("imageIconUrl")
                 .imageSmallIconUrl("imageSmallIconUrl")
                 .imageUrl("imageUrl")
                 .jsonBody("jsonBody")
                 .mediaUrl("mediaUrl")
                 .rawContent("rawContent")
                 .silentPush(false)
                 .timeToLive(123)
                 .title("title")
                 .url("url")
                 .build())
         .inAppMessage(CampaignInAppMessageProperty.builder()
                 .content(List.of(InAppMessageContentProperty.builder()
                         .backgroundColor("backgroundColor")
                         .bodyConfig(InAppMessageBodyConfigProperty.builder()
                                 .alignment("alignment")
                                 .body("body")
                                 .textColor("textColor")
                                 .build())
                         .headerConfig(InAppMessageHeaderConfigProperty.builder()
                                 .alignment("alignment")
                                 .header("header")
                                 .textColor("textColor")
                                 .build())
                         .imageUrl("imageUrl")
                         .primaryBtn(InAppMessageButtonProperty.builder()
                                 .android(OverrideButtonConfigurationProperty.builder()
                                         .buttonAction("buttonAction")
                                         .link("link")
                                         .build())
                                 .defaultConfig(DefaultButtonConfigurationProperty.builder()
                                         .backgroundColor("backgroundColor")
                                         .borderRadius(123)
                                         .buttonAction("buttonAction")
                                         .link("link")
                                         .text("text")
                                         .textColor("textColor")
                                         .build())
                                 .ios(OverrideButtonConfigurationProperty.builder()
                                         .buttonAction("buttonAction")
                                         .link("link")
                                         .build())
                                 .web(OverrideButtonConfigurationProperty.builder()
                                         .buttonAction("buttonAction")
                                         .link("link")
                                         .build())
                                 .build())
                         .secondaryBtn(InAppMessageButtonProperty.builder()
                                 .android(OverrideButtonConfigurationProperty.builder()
                                         .buttonAction("buttonAction")
                                         .link("link")
                                         .build())
                                 .defaultConfig(DefaultButtonConfigurationProperty.builder()
                                         .backgroundColor("backgroundColor")
                                         .borderRadius(123)
                                         .buttonAction("buttonAction")
                                         .link("link")
                                         .text("text")
                                         .textColor("textColor")
                                         .build())
                                 .ios(OverrideButtonConfigurationProperty.builder()
                                         .buttonAction("buttonAction")
                                         .link("link")
                                         .build())
                                 .web(OverrideButtonConfigurationProperty.builder()
                                         .buttonAction("buttonAction")
                                         .link("link")
                                         .build())
                                 .build())
                         .build()))
                 .customConfig(customConfig)
                 .layout("layout")
                 .build())
         .smsMessage(CampaignSmsMessageProperty.builder()
                 .body("body")
                 .entityId("entityId")
                 .messageType("messageType")
                 .originationNumber("originationNumber")
                 .senderId("senderId")
                 .templateId("templateId")
                 .build())
         .build();
 
  • Method Details

    • getAdmMessage

      @Stability(Stable) @Nullable default Object getAdmMessage()
      The message that the campaign sends through the ADM (Amazon Device Messaging) channel.

      If specified, this message overrides the default message.

    • getApnsMessage

      @Stability(Stable) @Nullable default Object getApnsMessage()
      The message that the campaign sends through the APNs (Apple Push Notification service) channel.

      If specified, this message overrides the default message.

    • getBaiduMessage

      @Stability(Stable) @Nullable default Object getBaiduMessage()
      The message that the campaign sends through the Baidu (Baidu Cloud Push) channel.

      If specified, this message overrides the default message.

    • getCustomMessage

      @Stability(Stable) @Nullable default Object getCustomMessage()
      CfnCampaign.MessageConfigurationProperty.CustomMessage.
    • getDefaultMessage

      @Stability(Stable) @Nullable default Object getDefaultMessage()
      The default message that the campaign sends through all the channels that are configured for the campaign.
    • getEmailMessage

      @Stability(Stable) @Nullable default Object getEmailMessage()
      The message that the campaign sends through the email channel.

      If specified, this message overrides the default message.

    • getGcmMessage

      @Stability(Stable) @Nullable default Object getGcmMessage()
      The message that the campaign sends through the GCM channel, which enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service.

      If specified, this message overrides the default message.

    • getInAppMessage

      @Stability(Stable) @Nullable default Object getInAppMessage()
      The default message for the in-app messaging channel.

      This message overrides the default message ( DefaultMessage ).

    • getSmsMessage

      @Stability(Stable) @Nullable default Object getSmsMessage()
      The message that the campaign sends through the SMS channel.

      If specified, this message overrides the default message.

    • builder

      @Stability(Stable) static CfnCampaign.MessageConfigurationProperty.Builder builder()
      Returns:
      a CfnCampaign.MessageConfigurationProperty.Builder of CfnCampaign.MessageConfigurationProperty