public static final class CfnInAppTemplateProps.Builder
extends java.lang.Object
CfnInAppTemplateProps
Constructor and Description |
---|
Builder() |
public CfnInAppTemplateProps.Builder templateName(java.lang.String templateName)
CfnInAppTemplateProps.getTemplateName()
templateName
- The name of the in-app message template. This parameter is required.this
public CfnInAppTemplateProps.Builder content(IResolvable content)
CfnInAppTemplateProps.getContent()
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.this
public CfnInAppTemplateProps.Builder content(java.util.List<? extends java.lang.Object> content)
CfnInAppTemplateProps.getContent()
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.this
public CfnInAppTemplateProps.Builder customConfig(java.lang.Object customConfig)
CfnInAppTemplateProps.getCustomConfig()
customConfig
- Custom data, in the form of key-value pairs, that is included in an in-app messaging payload.this
public CfnInAppTemplateProps.Builder layout(java.lang.String layout)
CfnInAppTemplateProps.getLayout()
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.this
public CfnInAppTemplateProps.Builder tags(java.lang.Object tags)
CfnInAppTemplateProps.getTags()
tags
- An array of key-value pairs to apply to this resource.
For more information, see Tag .this
public CfnInAppTemplateProps.Builder templateDescription(java.lang.String templateDescription)
CfnInAppTemplateProps.getTemplateDescription()
templateDescription
- An optional description of the in-app template.this
public CfnInAppTemplateProps build()
CfnInAppTemplateProps
java.lang.NullPointerException
- if any required attribute was not provided