Class DashboardVariableOptions.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.DashboardVariableOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DashboardVariableOptions>
- Enclosing interface:
DashboardVariableOptions
@Stability(Stable)
public static final class DashboardVariableOptions.Builder
extends Object
implements software.amazon.jsii.Builder<DashboardVariableOptions>
A builder for
DashboardVariableOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.defaultValue
(DefaultValue defaultValue) Sets the value ofDashboardVariableOptions.getDefaultValue()
Sets the value ofDashboardVariableOptions.getId()
inputType
(VariableInputType inputType) Sets the value ofDashboardVariableOptions.getInputType()
Sets the value ofDashboardVariableOptions.getLabel()
type
(VariableType type) Sets the value ofDashboardVariableOptions.getType()
Sets the value ofDashboardVariableOptions.getValue()
Sets the value ofDashboardVariableOptions.getValues()
Sets the value ofDashboardVariableOptions.getVisible()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Sets the value ofDashboardVariableOptions.getId()
- Parameters:
id
- Unique id. This parameter is required.- Returns:
this
-
inputType
Sets the value ofDashboardVariableOptions.getInputType()
- Parameters:
inputType
- The way the variable value is selected. This parameter is required.- Returns:
this
-
type
Sets the value ofDashboardVariableOptions.getType()
- Parameters:
type
- Type of the variable. This parameter is required.- Returns:
this
-
value
Sets the value ofDashboardVariableOptions.getValue()
- Parameters:
value
- Pattern or property value to replace. This parameter is required.- Returns:
this
-
defaultValue
Sets the value ofDashboardVariableOptions.getDefaultValue()
- Parameters:
defaultValue
- Optional default value.- Returns:
this
-
label
Sets the value ofDashboardVariableOptions.getLabel()
- Parameters:
label
- Optional label in the toolbar.- Returns:
this
-
values
Sets the value ofDashboardVariableOptions.getValues()
- Parameters:
values
- Optional values (required forinvalid @link
VariableInputType.RADIO
invalid @link
VariableInputType.SELECT
- Returns:
this
-
visible
Sets the value ofDashboardVariableOptions.getVisible()
- Parameters:
visible
- Whether the variable is visible.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DashboardVariableOptions>
- Returns:
- a new instance of
DashboardVariableOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-