Class CfnDashboard.Builder

java.lang.Object
software.amazon.awscdk.services.cloudwatch.CfnDashboard.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDashboard>
Enclosing class:
CfnDashboard

@Stability(Stable) public static final class CfnDashboard.Builder extends Object implements software.amazon.jsii.Builder<CfnDashboard>
A fluent builder for CfnDashboard.
  • Method Details

    • create

      @Stability(Stable) public static CfnDashboard.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnDashboard.Builder.
    • dashboardBody

      @Stability(Stable) public CfnDashboard.Builder dashboardBody(String 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.

      For more information about the syntax, see Dashboard Body Structure and Syntax .

      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.
      Returns:
      this
    • dashboardName

      @Stability(Stable) public CfnDashboard.Builder dashboardName(String 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.

      Parameters:
      dashboardName - The name of the dashboard. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnDashboard build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnDashboard>
      Returns:
      a newly built instance of CfnDashboard.