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