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