Class CfnDashboardProps.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.CfnDashboardProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDashboardProps>
- Enclosing interface:
- CfnDashboardProps
@Stability(Stable)
public static final class CfnDashboardProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDashboardProps>
A builder for
CfnDashboardProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.dashboardBody
(String dashboardBody) Sets the value ofCfnDashboardProps.getDashboardBody()
dashboardName
(String dashboardName) Sets the value ofCfnDashboardProps.getDashboardName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dashboardBody
Sets the value ofCfnDashboardProps.getDashboardBody()
- Parameters:
dashboardBody
- The detailed information about the dashboard in JSON format, including the widgets to include and their location on the dashboard. This parameter is required. This parameter is required.For more information about the syntax, see Dashboard Body Structure and Syntax .
- Returns:
this
-
dashboardName
Sets the value ofCfnDashboardProps.getDashboardName()
- Parameters:
dashboardName
- The name of the dashboard. The name must be between 1 and 255 characters. If you do not specify a name, one will be generated automatically.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDashboardProps>
- Returns:
- a new instance of
CfnDashboardProps
- Throws:
NullPointerException
- if any required attribute was not provided
-