Class VariableValue.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.VariableValue.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VariableValue>
- Enclosing interface:
- VariableValue
@Stability(Stable)
public static final class VariableValue.Builder
extends Object
implements software.amazon.jsii.Builder<VariableValue>
A builder for
VariableValue
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofVariableValue.getLabel()
Sets the value ofVariableValue.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
value
Sets the value ofVariableValue.getValue()
- Parameters:
value
- Value of the selected item. This parameter is required.- Returns:
this
-
label
Sets the value ofVariableValue.getLabel()
- Parameters:
label
- Optional label for the selected item.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<VariableValue>
- Returns:
- a new instance of
VariableValue
- Throws:
NullPointerException
- if any required attribute was not provided
-