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