Class CfnInAppTemplate.DefaultButtonConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnInAppTemplate.DefaultButtonConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInAppTemplate.DefaultButtonConfigurationProperty>
- Enclosing interface:
CfnInAppTemplate.DefaultButtonConfigurationProperty
@Stability(Stable)
public static final class CfnInAppTemplate.DefaultButtonConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInAppTemplate.DefaultButtonConfigurationProperty>
A builder for
CfnInAppTemplate.DefaultButtonConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbackgroundColor(String backgroundColor) Sets the value ofCfnInAppTemplate.DefaultButtonConfigurationProperty.getBackgroundColor()borderRadius(Number borderRadius) Sets the value ofCfnInAppTemplate.DefaultButtonConfigurationProperty.getBorderRadius()build()Builds the configured instance.buttonAction(String buttonAction) Sets the value ofCfnInAppTemplate.DefaultButtonConfigurationProperty.getButtonAction()Sets the value ofCfnInAppTemplate.DefaultButtonConfigurationProperty.getLink()Sets the value ofCfnInAppTemplate.DefaultButtonConfigurationProperty.getText()Sets the value ofCfnInAppTemplate.DefaultButtonConfigurationProperty.getTextColor()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
backgroundColor
@Stability(Stable) public CfnInAppTemplate.DefaultButtonConfigurationProperty.Builder backgroundColor(String backgroundColor) Sets the value ofCfnInAppTemplate.DefaultButtonConfigurationProperty.getBackgroundColor()- Parameters:
backgroundColor- The background color of a button, expressed as a hex color code (such as #000000 for black).- Returns:
this
-
borderRadius
@Stability(Stable) public CfnInAppTemplate.DefaultButtonConfigurationProperty.Builder borderRadius(Number borderRadius) Sets the value ofCfnInAppTemplate.DefaultButtonConfigurationProperty.getBorderRadius()- Parameters:
borderRadius- The border radius of a button.- Returns:
this
-
buttonAction
@Stability(Stable) public CfnInAppTemplate.DefaultButtonConfigurationProperty.Builder buttonAction(String buttonAction) Sets the value ofCfnInAppTemplate.DefaultButtonConfigurationProperty.getButtonAction()- Parameters:
buttonAction- 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.
- Returns:
this
-
link
@Stability(Stable) public CfnInAppTemplate.DefaultButtonConfigurationProperty.Builder link(String link) Sets the value ofCfnInAppTemplate.DefaultButtonConfigurationProperty.getLink()- Parameters:
link- The destination (such as a URL) for a button.- Returns:
this
-
text
@Stability(Stable) public CfnInAppTemplate.DefaultButtonConfigurationProperty.Builder text(String text) Sets the value ofCfnInAppTemplate.DefaultButtonConfigurationProperty.getText()- Parameters:
text- The text that appears on a button in an in-app message.- Returns:
this
-
textColor
@Stability(Stable) public CfnInAppTemplate.DefaultButtonConfigurationProperty.Builder textColor(String textColor) Sets the value ofCfnInAppTemplate.DefaultButtonConfigurationProperty.getTextColor()- Parameters:
textColor- The color of the body text in a button, expressed as a hex color code (such as #000000 for black).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInAppTemplate.DefaultButtonConfigurationProperty>- Returns:
- a new instance of
CfnInAppTemplate.DefaultButtonConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-