Class CfnCampaign.CampaignInAppMessageProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnCampaign.CampaignInAppMessageProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCampaign.CampaignInAppMessageProperty>
- Enclosing interface:
CfnCampaign.CampaignInAppMessageProperty
@Stability(Stable)
public static final class CfnCampaign.CampaignInAppMessageProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCampaign.CampaignInAppMessageProperty>
A builder for
CfnCampaign.CampaignInAppMessageProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnCampaign.CampaignInAppMessageProperty.getContent()
content
(IResolvable content) Sets the value ofCfnCampaign.CampaignInAppMessageProperty.getContent()
customConfig
(Object customConfig) Sets the value ofCfnCampaign.CampaignInAppMessageProperty.getCustomConfig()
Sets the value ofCfnCampaign.CampaignInAppMessageProperty.getLayout()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
content
@Stability(Stable) public CfnCampaign.CampaignInAppMessageProperty.Builder content(IResolvable content) Sets the value ofCfnCampaign.CampaignInAppMessageProperty.getContent()
- Parameters:
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.- Returns:
this
-
content
@Stability(Stable) public CfnCampaign.CampaignInAppMessageProperty.Builder content(List<? extends Object> content) Sets the value ofCfnCampaign.CampaignInAppMessageProperty.getContent()
- Parameters:
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.- Returns:
this
-
customConfig
@Stability(Stable) public CfnCampaign.CampaignInAppMessageProperty.Builder customConfig(Object customConfig) Sets the value ofCfnCampaign.CampaignInAppMessageProperty.getCustomConfig()
- Parameters:
customConfig
- Custom data, in the form of key-value pairs, that is included in an in-app messaging payload.- Returns:
this
-
layout
Sets the value ofCfnCampaign.CampaignInAppMessageProperty.getLayout()
- Parameters:
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.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCampaign.CampaignInAppMessageProperty>
- Returns:
- a new instance of
CfnCampaign.CampaignInAppMessageProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-