Class Spacer.Builder

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

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

    • create

      @Stability(Stable) public static Spacer.Builder create()
      Returns:
      a new instance of Spacer.Builder.
    • height

      @Stability(Stable) public Spacer.Builder height(Number height)
      Height of the spacer.

      Default: : 1

      Parameters:
      height - Height of the spacer. This parameter is required.
      Returns:
      this
    • width

      @Stability(Stable) public Spacer.Builder width(Number width)
      Width of the spacer.

      Default: 1

      Parameters:
      width - Width of the spacer. This parameter is required.
      Returns:
      this
    • build

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