public static final class CfnCampaign.CampaignInAppMessageProperty.Builder
extends java.lang.Object
CfnCampaign.CampaignInAppMessageProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnCampaign.CampaignInAppMessageProperty |
build()
Builds the configured instance.
|
CfnCampaign.CampaignInAppMessageProperty.Builder |
content(IResolvable content)
Sets the value of
CfnCampaign.CampaignInAppMessageProperty.getContent() |
CfnCampaign.CampaignInAppMessageProperty.Builder |
content(java.util.List<? extends java.lang.Object> content)
Sets the value of
CfnCampaign.CampaignInAppMessageProperty.getContent() |
CfnCampaign.CampaignInAppMessageProperty.Builder |
customConfig(java.lang.Object customConfig)
Sets the value of
CfnCampaign.CampaignInAppMessageProperty.getCustomConfig() |
CfnCampaign.CampaignInAppMessageProperty.Builder |
layout(java.lang.String layout)
Sets the value of
CfnCampaign.CampaignInAppMessageProperty.getLayout() |
public CfnCampaign.CampaignInAppMessageProperty.Builder content(IResolvable content)
CfnCampaign.CampaignInAppMessageProperty.getContent()
content
- An array that contains configurtion information about the in-app message for the campaign, including title and body text, text colors, background colors, image URLs, and button configurations.this
public CfnCampaign.CampaignInAppMessageProperty.Builder content(java.util.List<? extends java.lang.Object> content)
CfnCampaign.CampaignInAppMessageProperty.getContent()
content
- An array that contains configurtion information about the in-app message for the campaign, including title and body text, text colors, background colors, image URLs, and button configurations.this
public CfnCampaign.CampaignInAppMessageProperty.Builder customConfig(java.lang.Object customConfig)
CfnCampaign.CampaignInAppMessageProperty.getCustomConfig()
customConfig
- Custom data, in the form of key-value pairs, that is included in an in-app messaging payload.this
public CfnCampaign.CampaignInAppMessageProperty.Builder layout(java.lang.String layout)
CfnCampaign.CampaignInAppMessageProperty.getLayout()
layout
- A string that describes how the in-app message will appear. You can specify one of the following:.
BOTTOM_BANNER
– a message that appears as a banner at the bottom of the page.TOP_BANNER
– a message that appears as a banner at the top of the page.OVERLAYS
– a message that covers entire screen.MOBILE_FEED
– a message that appears in a window in front of the page.MIDDLE_BANNER
– a message that appears as a banner in the middle of the page.CAROUSEL
– a scrollable layout of up to five unique messages.this
public CfnCampaign.CampaignInAppMessageProperty build()
CfnCampaign.CampaignInAppMessageProperty
java.lang.NullPointerException
- if any required attribute was not provided