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