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