Class CfnInAppTemplate.Builder
java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnInAppTemplate.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInAppTemplate>
- Enclosing class:
CfnInAppTemplate
@Stability(Stable)
public static final class CfnInAppTemplate.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInAppTemplate>
A fluent builder for
CfnInAppTemplate.-
Method Summary
Modifier and TypeMethodDescriptionbuild()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.content(IResolvable 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.static CfnInAppTemplate.BuildercustomConfig(Object customConfig) Custom data, in the form of key-value pairs, that is included in an in-app messaging payload.A string that determines the appearance of the in-app message.An array of key-value pairs to apply to this resource.templateDescription(String templateDescription) An optional description of the in-app template.templateName(String templateName) The name of the in-app message template.
-
Method Details
-
create
@Stability(Stable) public static CfnInAppTemplate.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnInAppTemplate.Builder.
-
templateName
The name of the in-app message template.- Parameters:
templateName- The name of the in-app message template. This parameter is required.- Returns:
this- See Also:
-
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.- 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. This parameter is required.- Returns:
this- See Also:
-
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.- 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. This parameter is required.- Returns:
this- See Also:
-
customConfig
Custom data, in the form of key-value pairs, that is included in an in-app messaging payload.- Parameters:
customConfig- Custom data, in the form of key-value pairs, that is included in an in-app messaging payload. This parameter is required.- Returns:
this- See Also:
-
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.
- Parameters:
layout- A string that determines the appearance of the in-app message. You can specify one of the following:. This parameter is required.- Returns:
this- See Also:
-
tags
An array of key-value pairs to apply to this resource.For more information, see Tag .
- Parameters:
tags- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this- See Also:
-
templateDescription
An optional description of the in-app template.- Parameters:
templateDescription- An optional description of the in-app template. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInAppTemplate>- Returns:
- a newly built instance of
CfnInAppTemplate.
-