Class CfnWorkspace.PalettePrimaryProperty.Builder
java.lang.Object
software.amazon.awscdk.services.connect.CfnWorkspace.PalettePrimaryProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkspace.PalettePrimaryProperty>
- Enclosing interface:
CfnWorkspace.PalettePrimaryProperty
@Stability(Stable)
public static final class CfnWorkspace.PalettePrimaryProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkspace.PalettePrimaryProperty>
A builder for
CfnWorkspace.PalettePrimaryProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnWorkspace.PalettePrimaryProperty.getActive()build()Builds the configured instance.contrastText(String contrastText) Sets the value ofCfnWorkspace.PalettePrimaryProperty.getContrastText()defaultValue(String defaultValue) Sets the value ofCfnWorkspace.PalettePrimaryProperty.getDefaultValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
active
Sets the value ofCfnWorkspace.PalettePrimaryProperty.getActive()- Parameters:
active- The primary color used for active states.- Returns:
this
-
contrastText
@Stability(Stable) public CfnWorkspace.PalettePrimaryProperty.Builder contrastText(String contrastText) Sets the value ofCfnWorkspace.PalettePrimaryProperty.getContrastText()- Parameters:
contrastText- The text color that contrasts with the primary color for readability.- Returns:
this
-
defaultValue
@Stability(Stable) public CfnWorkspace.PalettePrimaryProperty.Builder defaultValue(String defaultValue) Sets the value ofCfnWorkspace.PalettePrimaryProperty.getDefaultValue()- Parameters:
defaultValue- The default primary color used throughout the workspace.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWorkspace.PalettePrimaryProperty>- Returns:
- a new instance of
CfnWorkspace.PalettePrimaryProperty - Throws:
NullPointerException- if any required attribute was not provided
-