Class CfnAnalysis.LegendOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.quicksight.CfnAnalysis.LegendOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnalysis.LegendOptionsProperty>
- Enclosing interface:
CfnAnalysis.LegendOptionsProperty
@Stability(Stable)
public static final class CfnAnalysis.LegendOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnalysis.LegendOptionsProperty>
A builder for
CfnAnalysis.LegendOptionsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnAnalysis.LegendOptionsProperty.getHeight()
Sets the value ofCfnAnalysis.LegendOptionsProperty.getPosition()
title
(IResolvable title) Sets the value ofCfnAnalysis.LegendOptionsProperty.getTitle()
Sets the value ofCfnAnalysis.LegendOptionsProperty.getTitle()
visibility
(String visibility) Sets the value ofCfnAnalysis.LegendOptionsProperty.getVisibility()
Sets the value ofCfnAnalysis.LegendOptionsProperty.getWidth()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
height
Sets the value ofCfnAnalysis.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 ofCfnAnalysis.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 ofCfnAnalysis.LegendOptionsProperty.getTitle()
- Parameters:
title
- The custom title for the legend.- Returns:
this
-
title
@Stability(Stable) public CfnAnalysis.LegendOptionsProperty.Builder title(CfnAnalysis.LabelOptionsProperty title) Sets the value ofCfnAnalysis.LegendOptionsProperty.getTitle()
- Parameters:
title
- The custom title for the legend.- Returns:
this
-
visibility
Sets the value ofCfnAnalysis.LegendOptionsProperty.getVisibility()
- Parameters:
visibility
- Determines whether or not the legend is visible.- Returns:
this
-
width
Sets the value ofCfnAnalysis.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<CfnAnalysis.LegendOptionsProperty>
- Returns:
- a new instance of
CfnAnalysis.LegendOptionsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-