Class CfnTemplate.LegendOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.quicksight.CfnTemplate.LegendOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTemplate.LegendOptionsProperty>
- Enclosing interface:
- CfnTemplate.LegendOptionsProperty
@Stability(Stable)
public static final class CfnTemplate.LegendOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTemplate.LegendOptionsProperty>
A builder for
CfnTemplate.LegendOptionsProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnTemplate.LegendOptionsProperty.getHeight()
Sets the value ofCfnTemplate.LegendOptionsProperty.getPosition()
title
(IResolvable title) Sets the value ofCfnTemplate.LegendOptionsProperty.getTitle()
Sets the value ofCfnTemplate.LegendOptionsProperty.getTitle()
visibility
(String visibility) Sets the value ofCfnTemplate.LegendOptionsProperty.getVisibility()
Sets the value ofCfnTemplate.LegendOptionsProperty.getWidth()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
height
Sets the value ofCfnTemplate.LegendOptionsProperty.getHeight()
- Parameters:
height
- The height of the legend. If this value is omitted, a default height is used when rendering.- Returns:
this
-
position
Sets the value ofCfnTemplate.LegendOptionsProperty.getPosition()
- Parameters:
position
- The positions for the legend. Choose one of the following options:.AUTO
RIGHT
BOTTOM
LEFT
- Returns:
this
-
title
Sets the value ofCfnTemplate.LegendOptionsProperty.getTitle()
- Parameters:
title
- The custom title for the legend.- Returns:
this
-
title
@Stability(Stable) public CfnTemplate.LegendOptionsProperty.Builder title(CfnTemplate.LabelOptionsProperty title) Sets the value ofCfnTemplate.LegendOptionsProperty.getTitle()
- Parameters:
title
- The custom title for the legend.- Returns:
this
-
visibility
Sets the value ofCfnTemplate.LegendOptionsProperty.getVisibility()
- Parameters:
visibility
- Determines whether or not the legend is visible.- Returns:
this
-
width
Sets the value ofCfnTemplate.LegendOptionsProperty.getWidth()
- Parameters:
width
- The width of the legend. If this value is omitted, a default width is used when rendering.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTemplate.LegendOptionsProperty>
- Returns:
- a new instance of
CfnTemplate.LegendOptionsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-