Class YAxisProps.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.YAxisProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<YAxisProps>
- Enclosing interface:
YAxisProps
@Stability(Stable)
public static final class YAxisProps.Builder
extends Object
implements software.amazon.jsii.Builder<YAxisProps>
A builder for
YAxisProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofYAxisProps.getLabel()Sets the value ofYAxisProps.getMax()Sets the value ofYAxisProps.getMin()Sets the value ofYAxisProps.getShowUnits()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
label
Sets the value ofYAxisProps.getLabel()- Parameters:
label- The label.- Returns:
this
-
max
Sets the value ofYAxisProps.getMax()- Parameters:
max- The max value.- Returns:
this
-
min
Sets the value ofYAxisProps.getMin()- Parameters:
min- The min value.- Returns:
this
-
showUnits
Sets the value ofYAxisProps.getShowUnits()- Parameters:
showUnits- Whether to show units.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<YAxisProps>- Returns:
- a new instance of
YAxisProps - Throws:
NullPointerException- if any required attribute was not provided
-