Class CfnAnomalyDetectorPropsMixin.LabelProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.aps.CfnAnomalyDetectorPropsMixin.LabelProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalyDetectorPropsMixin.LabelProperty>
- Enclosing interface:
CfnAnomalyDetectorPropsMixin.LabelProperty
@Stability(Stable)
public static final class CfnAnomalyDetectorPropsMixin.LabelProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnomalyDetectorPropsMixin.LabelProperty>
A builder for
CfnAnomalyDetectorPropsMixin.LabelProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnAnomalyDetectorPropsMixin.LabelProperty.getKey()Sets the value ofCfnAnomalyDetectorPropsMixin.LabelProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
Sets the value ofCfnAnomalyDetectorPropsMixin.LabelProperty.getKey()- Parameters:
key- The key of the label.- Returns:
this
-
value
Sets the value ofCfnAnomalyDetectorPropsMixin.LabelProperty.getValue()- Parameters:
value- The value for this label.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAnomalyDetectorPropsMixin.LabelProperty>- Returns:
- a new instance of
CfnAnomalyDetectorPropsMixin.LabelProperty - Throws:
NullPointerException- if any required attribute was not provided
-