Interface CfnCampaign.DefaultButtonConfigurationProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnCampaign.DefaultButtonConfigurationProperty extends
Specifies the default behavior for a button that appears in an in-app message.

You can optionally add button configurations that specifically apply to iOS, Android, or web browser users.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 DefaultButtonConfigurationProperty defaultButtonConfigurationProperty = DefaultButtonConfigurationProperty.builder()
  • Method Details

    • getBackgroundColor

      @Stability(Stable) @Nullable default String getBackgroundColor()
      The background color of a button, expressed as a hex color code (such as #000000 for black).
    • getBorderRadius

      @Stability(Stable) @Nullable default Number getBorderRadius()
      The border radius of a button.
    • getButtonAction

      @Stability(Stable) @Nullable default String getButtonAction()
      The action that occurs when a recipient chooses a button in an in-app message.

      You can specify one of the following:

      • LINK – A link to a web destination.
      • DEEP_LINK – A link to a specific page in an application.
      • CLOSE – Dismisses the message.
    • getLink

      @Stability(Stable) @Nullable default String getLink()
      The destination (such as a URL) for a button.
    • getText

      @Stability(Stable) @Nullable default String getText()
      The text that appears on a button in an in-app message.
    • getTextColor

      @Stability(Stable) @Nullable default String getTextColor()
      The color of the body text in a button, expressed as a hex color code (such as #000000 for black).
    • builder

      @Stability(Stable) static CfnCampaign.DefaultButtonConfigurationProperty.Builder builder()
      a CfnCampaign.DefaultButtonConfigurationProperty.Builder of CfnCampaign.DefaultButtonConfigurationProperty