Class Dimension.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • name

      @Stability(Stable) public Dimension.Builder name(String name)
      Sets the value of Dimension.getName()
      Parameters:
      name - Name of the dimension. This parameter is required.
      Returns:
      this
    • value

      @Stability(Stable) public Dimension.Builder value(Object value)
      Sets the value of Dimension.getValue()
      Parameters:
      value - Value of the dimension. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public Dimension build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<Dimension>
      Returns:
      a new instance of Dimension
      Throws:
      NullPointerException - if any required attribute was not provided