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