@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.236Z") @Stability(value=Stable) public interface CfnInAppTemplateProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.pinpoint.*;
Object customConfig;
Object tags;
CfnInAppTemplateProps cfnInAppTemplateProps = CfnInAppTemplateProps.builder()
.templateName("templateName")
// the properties below are optional
.content(List.of(InAppMessageContentProperty.builder()
.backgroundColor("backgroundColor")
.bodyConfig(BodyConfigProperty.builder()
.alignment("alignment")
.body("body")
.textColor("textColor")
.build())
.headerConfig(HeaderConfigProperty.builder()
.alignment("alignment")
.header("header")
.textColor("textColor")
.build())
.imageUrl("imageUrl")
.primaryBtn(ButtonConfigProperty.builder()
.android(OverrideButtonConfigurationProperty.builder()
.buttonAction("buttonAction")
.link("link")
.build())
.defaultConfig(DefaultButtonConfigurationProperty.builder()
.backgroundColor("backgroundColor")
.borderRadius(123)
.buttonAction("buttonAction")
.link("link")
.text("text")
.textColor("textColor")
.build())
.ios(OverrideButtonConfigurationProperty.builder()
.buttonAction("buttonAction")
.link("link")
.build())
.web(OverrideButtonConfigurationProperty.builder()
.buttonAction("buttonAction")
.link("link")
.build())
.build())
.secondaryBtn(ButtonConfigProperty.builder()
.android(OverrideButtonConfigurationProperty.builder()
.buttonAction("buttonAction")
.link("link")
.build())
.defaultConfig(DefaultButtonConfigurationProperty.builder()
.backgroundColor("backgroundColor")
.borderRadius(123)
.buttonAction("buttonAction")
.link("link")
.text("text")
.textColor("textColor")
.build())
.ios(OverrideButtonConfigurationProperty.builder()
.buttonAction("buttonAction")
.link("link")
.build())
.web(OverrideButtonConfigurationProperty.builder()
.buttonAction("buttonAction")
.link("link")
.build())
.build())
.build()))
.customConfig(customConfig)
.layout("layout")
.tags(tags)
.templateDescription("templateDescription")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnInAppTemplateProps.Builder
A builder for
CfnInAppTemplateProps |
static class |
CfnInAppTemplateProps.Jsii$Proxy
An implementation for
CfnInAppTemplateProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnInAppTemplateProps.Builder |
builder() |
default Object |
getContent()
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.
|
default Object |
getCustomConfig()
Custom data, in the form of key-value pairs, that is included in an in-app messaging payload.
|
default String |
getLayout()
A string that determines the appearance of the in-app message.
|
default Object |
getTags()
An array of key-value pairs to apply to this resource.
|
default String |
getTemplateDescription()
An optional description of the in-app template.
|
String |
getTemplateName()
The name of the in-app message template.
|
@Stability(value=Stable) @NotNull String getTemplateName()
@Stability(value=Stable) @Nullable default Object getContent()
@Stability(value=Stable) @Nullable default Object getCustomConfig()
@Stability(value=Stable) @Nullable default String getLayout()
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.@Stability(value=Stable) @Nullable default Object getTags()
For more information, see Tag .
@Stability(value=Stable) @Nullable default String getTemplateDescription()
@Stability(value=Stable) static CfnInAppTemplateProps.Builder builder()
CfnInAppTemplateProps.Builder of CfnInAppTemplatePropsCopyright © 2022. All rights reserved.