Class CfnInAppTemplateProps.Builder
java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnInAppTemplateProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInAppTemplateProps>
- Enclosing interface:
CfnInAppTemplateProps
@Stability(Stable)
public static final class CfnInAppTemplateProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInAppTemplateProps>
A builder for
CfnInAppTemplateProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnInAppTemplateProps.getContent()content(IResolvable content) Sets the value ofCfnInAppTemplateProps.getContent()customConfig(Object customConfig) Sets the value ofCfnInAppTemplateProps.getCustomConfig()Sets the value ofCfnInAppTemplateProps.getLayout()Sets the value ofCfnInAppTemplateProps.getTags()templateDescription(String templateDescription) Sets the value ofCfnInAppTemplateProps.getTemplateDescription()templateName(String templateName) Sets the value ofCfnInAppTemplateProps.getTemplateName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
templateName
Sets the value ofCfnInAppTemplateProps.getTemplateName()- Parameters:
templateName- The name of the in-app message template. This parameter is required.- Returns:
this
-
content
Sets the value ofCfnInAppTemplateProps.getContent()- Parameters:
content- An object that contains information about the content of an in-app message, including its title and body text, text colors, background colors, images, buttons, and behaviors.- Returns:
this
-
content
Sets the value ofCfnInAppTemplateProps.getContent()- Parameters:
content- An object that contains information about the content of an in-app message, including its title and body text, text colors, background colors, images, buttons, and behaviors.- Returns:
this
-
customConfig
Sets the value ofCfnInAppTemplateProps.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 ofCfnInAppTemplateProps.getLayout()- Parameters:
layout- A string that determines the appearance of the in-app message. 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
-
tags
Sets the value ofCfnInAppTemplateProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource. For more information, see Tag .- Returns:
this
-
templateDescription
@Stability(Stable) public CfnInAppTemplateProps.Builder templateDescription(String templateDescription) Sets the value ofCfnInAppTemplateProps.getTemplateDescription()- Parameters:
templateDescription- An optional description of the in-app template.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInAppTemplateProps>- Returns:
- a new instance of
CfnInAppTemplateProps - Throws:
NullPointerException- if any required attribute was not provided
-