Class CfnCampaign.InAppMessageBodyConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnCampaign.InAppMessageBodyConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCampaign.InAppMessageBodyConfigProperty>
- Enclosing interface:
- CfnCampaign.InAppMessageBodyConfigProperty
@Stability(Stable)
public static final class CfnCampaign.InAppMessageBodyConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCampaign.InAppMessageBodyConfigProperty>
A builder for
CfnCampaign.InAppMessageBodyConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnCampaign.InAppMessageBodyConfigProperty.getAlignment()
Sets the value ofCfnCampaign.InAppMessageBodyConfigProperty.getBody()
build()
Builds the configured instance.Sets the value ofCfnCampaign.InAppMessageBodyConfigProperty.getTextColor()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alignment
@Stability(Stable) public CfnCampaign.InAppMessageBodyConfigProperty.Builder alignment(String alignment) Sets the value ofCfnCampaign.InAppMessageBodyConfigProperty.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 ofCfnCampaign.InAppMessageBodyConfigProperty.getBody()
- Parameters:
body
- The main body text of the message.- Returns:
this
-
textColor
@Stability(Stable) public CfnCampaign.InAppMessageBodyConfigProperty.Builder textColor(String textColor) Sets the value ofCfnCampaign.InAppMessageBodyConfigProperty.getTextColor()
- Parameters:
textColor
- The color of the body text, expressed as a string consisting of a hex color code (such as "#000000" for black).- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCampaign.InAppMessageBodyConfigProperty>
- Returns:
- a new instance of
CfnCampaign.InAppMessageBodyConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-