Class CfnDashboard.GridLayoutElementProperty.Builder
java.lang.Object
software.amazon.awscdk.services.quicksight.CfnDashboard.GridLayoutElementProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDashboard.GridLayoutElementProperty>
- Enclosing interface:
CfnDashboard.GridLayoutElementProperty
@Stability(Stable)
public static final class CfnDashboard.GridLayoutElementProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDashboard.GridLayoutElementProperty>
A builder for
CfnDashboard.GridLayoutElementProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbackgroundStyle(IResolvable backgroundStyle) Sets the value ofCfnDashboard.GridLayoutElementProperty.getBackgroundStyle()backgroundStyle(CfnDashboard.GridLayoutElementBackgroundStyleProperty backgroundStyle) Sets the value ofCfnDashboard.GridLayoutElementProperty.getBackgroundStyle()borderRadius(String borderRadius) Sets the value ofCfnDashboard.GridLayoutElementProperty.getBorderRadius()borderStyle(IResolvable borderStyle) Sets the value ofCfnDashboard.GridLayoutElementProperty.getBorderStyle()Sets the value ofCfnDashboard.GridLayoutElementProperty.getBorderStyle()build()Builds the configured instance.columnIndex(Number columnIndex) Sets the value ofCfnDashboard.GridLayoutElementProperty.getColumnIndex()columnSpan(Number columnSpan) Sets the value ofCfnDashboard.GridLayoutElementProperty.getColumnSpan()Sets the value ofCfnDashboard.GridLayoutElementProperty.getElementId()elementType(String elementType) Sets the value ofCfnDashboard.GridLayoutElementProperty.getElementType()loadingAnimation(IResolvable loadingAnimation) Sets the value ofCfnDashboard.GridLayoutElementProperty.getLoadingAnimation()loadingAnimation(CfnDashboard.LoadingAnimationProperty loadingAnimation) Sets the value ofCfnDashboard.GridLayoutElementProperty.getLoadingAnimation()Sets the value ofCfnDashboard.GridLayoutElementProperty.getPadding()Sets the value ofCfnDashboard.GridLayoutElementProperty.getRowIndex()Sets the value ofCfnDashboard.GridLayoutElementProperty.getRowSpan()selectedBorderStyle(IResolvable selectedBorderStyle) Sets the value ofCfnDashboard.GridLayoutElementProperty.getSelectedBorderStyle()selectedBorderStyle(CfnDashboard.GridLayoutElementBorderStyleProperty selectedBorderStyle) Sets the value ofCfnDashboard.GridLayoutElementProperty.getSelectedBorderStyle()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
columnSpan
@Stability(Stable) public CfnDashboard.GridLayoutElementProperty.Builder columnSpan(Number columnSpan) Sets the value ofCfnDashboard.GridLayoutElementProperty.getColumnSpan()- Parameters:
columnSpan- The width of a grid element expressed as a number of grid columns. This parameter is required.- Returns:
this
-
elementId
@Stability(Stable) public CfnDashboard.GridLayoutElementProperty.Builder elementId(String elementId) Sets the value ofCfnDashboard.GridLayoutElementProperty.getElementId()- Parameters:
elementId- A unique identifier for an element within a grid layout. This parameter is required.- Returns:
this
-
elementType
@Stability(Stable) public CfnDashboard.GridLayoutElementProperty.Builder elementType(String elementType) Sets the value ofCfnDashboard.GridLayoutElementProperty.getElementType()- Parameters:
elementType- The type of element. This parameter is required.- Returns:
this
-
rowSpan
Sets the value ofCfnDashboard.GridLayoutElementProperty.getRowSpan()- Parameters:
rowSpan- The height of a grid element expressed as a number of grid rows. This parameter is required.- Returns:
this
-
backgroundStyle
@Stability(Stable) public CfnDashboard.GridLayoutElementProperty.Builder backgroundStyle(IResolvable backgroundStyle) Sets the value ofCfnDashboard.GridLayoutElementProperty.getBackgroundStyle()- Parameters:
backgroundStyle- The background style configuration of a grid layout element.- Returns:
this
-
backgroundStyle
@Stability(Stable) public CfnDashboard.GridLayoutElementProperty.Builder backgroundStyle(CfnDashboard.GridLayoutElementBackgroundStyleProperty backgroundStyle) Sets the value ofCfnDashboard.GridLayoutElementProperty.getBackgroundStyle()- Parameters:
backgroundStyle- The background style configuration of a grid layout element.- Returns:
this
-
borderRadius
@Stability(Stable) public CfnDashboard.GridLayoutElementProperty.Builder borderRadius(String borderRadius) Sets the value ofCfnDashboard.GridLayoutElementProperty.getBorderRadius()- Parameters:
borderRadius- The border radius of a grid layout element.- Returns:
this
-
borderStyle
@Stability(Stable) public CfnDashboard.GridLayoutElementProperty.Builder borderStyle(IResolvable borderStyle) Sets the value ofCfnDashboard.GridLayoutElementProperty.getBorderStyle()- Parameters:
borderStyle- The border style configuration of a grid layout element.- Returns:
this
-
borderStyle
@Stability(Stable) public CfnDashboard.GridLayoutElementProperty.Builder borderStyle(CfnDashboard.GridLayoutElementBorderStyleProperty borderStyle) Sets the value ofCfnDashboard.GridLayoutElementProperty.getBorderStyle()- Parameters:
borderStyle- The border style configuration of a grid layout element.- Returns:
this
-
columnIndex
@Stability(Stable) public CfnDashboard.GridLayoutElementProperty.Builder columnIndex(Number columnIndex) Sets the value ofCfnDashboard.GridLayoutElementProperty.getColumnIndex()- Parameters:
columnIndex- The column index for the upper left corner of an element.- Returns:
this
-
loadingAnimation
@Stability(Stable) public CfnDashboard.GridLayoutElementProperty.Builder loadingAnimation(IResolvable loadingAnimation) Sets the value ofCfnDashboard.GridLayoutElementProperty.getLoadingAnimation()- Parameters:
loadingAnimation- the value to be set.- Returns:
this
-
loadingAnimation
@Stability(Stable) public CfnDashboard.GridLayoutElementProperty.Builder loadingAnimation(CfnDashboard.LoadingAnimationProperty loadingAnimation) Sets the value ofCfnDashboard.GridLayoutElementProperty.getLoadingAnimation()- Parameters:
loadingAnimation- the value to be set.- Returns:
this
-
padding
Sets the value ofCfnDashboard.GridLayoutElementProperty.getPadding()- Parameters:
padding- The padding of a grid layout element.- Returns:
this
-
rowIndex
Sets the value ofCfnDashboard.GridLayoutElementProperty.getRowIndex()- Parameters:
rowIndex- The row index for the upper left corner of an element.- Returns:
this
-
selectedBorderStyle
@Stability(Stable) public CfnDashboard.GridLayoutElementProperty.Builder selectedBorderStyle(IResolvable selectedBorderStyle) Sets the value ofCfnDashboard.GridLayoutElementProperty.getSelectedBorderStyle()- Parameters:
selectedBorderStyle- The border style configuration of a grid layout element. This border style is used when the element is selected.- Returns:
this
-
selectedBorderStyle
@Stability(Stable) public CfnDashboard.GridLayoutElementProperty.Builder selectedBorderStyle(CfnDashboard.GridLayoutElementBorderStyleProperty selectedBorderStyle) Sets the value ofCfnDashboard.GridLayoutElementProperty.getSelectedBorderStyle()- Parameters:
selectedBorderStyle- The border style configuration of a grid layout element. This border style is used when the element is selected.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDashboard.GridLayoutElementProperty>- Returns:
- a new instance of
CfnDashboard.GridLayoutElementProperty - Throws:
NullPointerException- if any required attribute was not provided
-