Class SpacerProps.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.SpacerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SpacerProps>
- Enclosing interface:
SpacerProps
@Stability(Stable)
public static final class SpacerProps.Builder
extends Object
implements software.amazon.jsii.Builder<SpacerProps>
A builder for
SpacerProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofSpacerProps.getHeight()
Sets the value ofSpacerProps.getWidth()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
height
Sets the value ofSpacerProps.getHeight()
- Parameters:
height
- Height of the spacer.- Returns:
this
-
width
Sets the value ofSpacerProps.getWidth()
- Parameters:
width
- Width of the spacer.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SpacerProps>
- Returns:
- a new instance of
SpacerProps
- Throws:
NullPointerException
- if any required attribute was not provided
-