Class DashboardVariable.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.DashboardVariable.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DashboardVariable>
- Enclosing class:
DashboardVariable
@Stability(Stable)
public static final class DashboardVariable.Builder
extends Object
implements software.amazon.jsii.Builder<DashboardVariable>
A fluent builder for
DashboardVariable
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static DashboardVariable.Builder
create()
defaultValue
(DefaultValue defaultValue) Optional default value.Unique id.inputType
(VariableInputType inputType) The way the variable value is selected.Optional label in the toolbar.type
(VariableType type) Type of the variable.Pattern or property value to replace.Optional values (required forinvalid @link
VariableInputType.RADIO
invalid @link
VariableInputType.SELECT
Whether the variable is visible.
-
Method Details
-
create
- Returns:
- a new instance of
DashboardVariable.Builder
.
-
id
Unique id.- Parameters:
id
- Unique id. This parameter is required.- Returns:
this
-
inputType
The way the variable value is selected.- Parameters:
inputType
- The way the variable value is selected. This parameter is required.- Returns:
this
-
type
Type of the variable.- Parameters:
type
- Type of the variable. This parameter is required.- Returns:
this
-
value
Pattern or property value to replace.- Parameters:
value
- Pattern or property value to replace. This parameter is required.- Returns:
this
-
defaultValue
Optional default value.Default: - no default value is set
- Parameters:
defaultValue
- Optional default value. This parameter is required.- Returns:
this
-
label
Optional label in the toolbar.Default: - the variable's value
- Parameters:
label
- Optional label in the toolbar. This parameter is required.- Returns:
this
-
values
Optional values (required forinvalid @link
VariableInputType.RADIO
invalid @link
VariableInputType.SELECT
Default: - no values
- Parameters:
values
- Optional values (required forinvalid @link
VariableInputType.RADIO
invalid @link
VariableInputType.SELECT
- Returns:
this
-
visible
Whether the variable is visible.Default: - true
- Parameters:
visible
- Whether the variable is visible. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DashboardVariable>
- Returns:
- a newly built instance of
DashboardVariable
.
-