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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofDimension.getName()
Sets the value ofDimension.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofDimension.getName()
- Parameters:
name
- Name of the dimension. This parameter is required.- Returns:
this
-
value
Sets the value ofDimension.getValue()
- Parameters:
value
- Value of the dimension. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<Dimension>
- Returns:
- a new instance of
Dimension
- Throws:
NullPointerException
- if any required attribute was not provided
-