Interface CfnInAppTemplate.InAppMessageContentProperty

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

@Stability(Stable) public static interface CfnInAppTemplate.InAppMessageContentProperty extends software.amazon.jsii.JsiiSerializable
Specifies the configuration of an in-app message, including its header, body, buttons, colors, and images.

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.*;
 InAppMessageContentProperty inAppMessageContentProperty = InAppMessageContentProperty.builder()
         .backgroundColor("backgroundColor")
         .bodyConfig(BodyConfigProperty.builder()
                 .alignment("alignment")
                 .body("body")
                 .textColor("textColor")
                 .build())
         .headerConfig(HeaderConfigProperty.builder()
                 .alignment("alignment")
                 .header("header")
                 .textColor("textColor")
                 .build())
         .imageUrl("imageUrl")
         .primaryBtn(ButtonConfigProperty.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(ButtonConfigProperty.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();
 
  • Method Details

    • getBackgroundColor

      @Stability(Stable) @Nullable default String getBackgroundColor()
      The background color for an in-app message banner, expressed as a hex color code (such as #000000 for black).
    • getBodyConfig

      @Stability(Stable) @Nullable default Object getBodyConfig()
      An object that contains configuration information about the header or title text of the in-app message.
    • getHeaderConfig

      @Stability(Stable) @Nullable default Object getHeaderConfig()
      An object that contains configuration information about the header or title text of the in-app message.
    • getImageUrl

      @Stability(Stable) @Nullable default String getImageUrl()
      The URL of the image that appears on an in-app message banner.
    • getPrimaryBtn

      @Stability(Stable) @Nullable default Object getPrimaryBtn()
      An object that contains configuration information about the primary button in an in-app message.
    • getSecondaryBtn

      @Stability(Stable) @Nullable default Object getSecondaryBtn()
      An object that contains configuration information about the secondary button in an in-app message.
    • builder

      @Stability(Stable) static CfnInAppTemplate.InAppMessageContentProperty.Builder builder()
      Returns:
      a CfnInAppTemplate.InAppMessageContentProperty.Builder of CfnInAppTemplate.InAppMessageContentProperty