Class CfnInAppTemplatePropsMixin.BodyConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.pinpoint.CfnInAppTemplatePropsMixin.BodyConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInAppTemplatePropsMixin.BodyConfigProperty>
- Enclosing interface:
CfnInAppTemplatePropsMixin.BodyConfigProperty
@Stability(Stable)
public static final class CfnInAppTemplatePropsMixin.BodyConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInAppTemplatePropsMixin.BodyConfigProperty>
A builder for
CfnInAppTemplatePropsMixin.BodyConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnInAppTemplatePropsMixin.BodyConfigProperty.getAlignment()Sets the value ofCfnInAppTemplatePropsMixin.BodyConfigProperty.getBody()build()Builds the configured instance.Sets the value ofCfnInAppTemplatePropsMixin.BodyConfigProperty.getTextColor()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alignment
@Stability(Stable) public CfnInAppTemplatePropsMixin.BodyConfigProperty.Builder alignment(String alignment) Sets the value ofCfnInAppTemplatePropsMixin.BodyConfigProperty.getAlignment()- Parameters:
alignment- The text alignment of the main body text of the message. Acceptable values:LEFT,CENTER,RIGHT.- Returns:
this
-
body
Sets the value ofCfnInAppTemplatePropsMixin.BodyConfigProperty.getBody()- Parameters:
body- The main body text of the message.- Returns:
this
-
textColor
@Stability(Stable) public CfnInAppTemplatePropsMixin.BodyConfigProperty.Builder textColor(String textColor) Sets the value ofCfnInAppTemplatePropsMixin.BodyConfigProperty.getTextColor()- Parameters:
textColor- The color of the body text, 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<CfnInAppTemplatePropsMixin.BodyConfigProperty>- Returns:
- a new instance of
CfnInAppTemplatePropsMixin.BodyConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-