Interface CfnCampaign.DefaultButtonConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnCampaign.DefaultButtonConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnCampaign
@Stability(Stable)
public static interface CfnCampaign.DefaultButtonConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
Specifies the default behavior for a button that appears in an in-app message.
You can optionally add button configurations that specifically apply to iOS, Android, or web browser users.
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.*; DefaultButtonConfigurationProperty defaultButtonConfigurationProperty = DefaultButtonConfigurationProperty.builder() .backgroundColor("backgroundColor") .borderRadius(123) .buttonAction("buttonAction") .link("link") .text("text") .textColor("textColor") .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnCampaign.DefaultButtonConfigurationProperty
static final class
An implementation forCfnCampaign.DefaultButtonConfigurationProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
The background color of a button, expressed as a hex color code (such as #000000 for black).default Number
The border radius of a button.default String
The action that occurs when a recipient chooses a button in an in-app message.default String
getLink()
The destination (such as a URL) for a button.default String
getText()
The text that appears on a button in an in-app message.default String
The color of the body text in a button, expressed as a hex color code (such as #000000 for black).Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getBackgroundColor
The background color of a button, expressed as a hex color code (such as #000000 for black).- See Also:
-
getBorderRadius
The border radius of a button.- See Also:
-
getButtonAction
The action that occurs when a recipient chooses a button in an in-app message.You can specify one of the following:
LINK
– A link to a web destination.DEEP_LINK
– A link to a specific page in an application.CLOSE
– Dismisses the message.
- See Also:
-
getLink
The destination (such as a URL) for a button.- See Also:
-
getText
The text that appears on a button in an in-app message.- See Also:
-
getTextColor
The color of the body text in a button, expressed as a hex color code (such as #000000 for black).- See Also:
-
builder
-