Interface CfnCampaign.InAppMessageContentProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnCampaign.InAppMessageContentProperty.Jsii$Proxy
- Enclosing class:
CfnCampaign
@Stability(Stable)
public static interface CfnCampaign.InAppMessageContentProperty
extends software.amazon.jsii.JsiiSerializable
Specifies the configuration and contents of an in-app message.
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.*;
InAppMessageContentProperty inAppMessageContentProperty = InAppMessageContentProperty.builder()
.backgroundColor("backgroundColor")
.bodyConfig(InAppMessageBodyConfigProperty.builder()
.alignment("alignment")
.body("body")
.textColor("textColor")
.build())
.headerConfig(InAppMessageHeaderConfigProperty.builder()
.alignment("alignment")
.header("header")
.textColor("textColor")
.build())
.imageUrl("imageUrl")
.primaryBtn(InAppMessageButtonProperty.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(InAppMessageButtonProperty.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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnCampaign.InAppMessageContentPropertystatic final classAn implementation forCfnCampaign.InAppMessageContentProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe background color for an in-app message banner, expressed as a hex color code (such as #000000 for black).default ObjectSpecifies the configuration of main body text in an in-app message template.default ObjectSpecifies the configuration and content of the header or title text of the in-app message.default StringThe URL of the image that appears on an in-app message banner.default ObjectAn object that contains configuration information about the primary button in an in-app message.default ObjectAn object that contains configuration information about the secondary button in an in-app message.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getBackgroundColor
The background color for an in-app message banner, expressed as a hex color code (such as #000000 for black).- See Also:
-
getBodyConfig
Specifies the configuration of main body text in an in-app message template.Returns union: either
IResolvableorCfnCampaign.InAppMessageBodyConfigProperty- See Also:
-
getHeaderConfig
Specifies the configuration and content of the header or title text of the in-app message.Returns union: either
IResolvableorCfnCampaign.InAppMessageHeaderConfigProperty- See Also:
-
getImageUrl
The URL of the image that appears on an in-app message banner.- See Also:
-
getPrimaryBtn
An object that contains configuration information about the primary button in an in-app message.Returns union: either
IResolvableorCfnCampaign.InAppMessageButtonProperty- See Also:
-
getSecondaryBtn
An object that contains configuration information about the secondary button in an in-app message.Returns union: either
IResolvableorCfnCampaign.InAppMessageButtonProperty- See Also:
-
builder
-