Class CfnServiceLevelObjective.SliProperty.Builder
java.lang.Object
software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.SliProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceLevelObjective.SliProperty>
- Enclosing interface:
CfnServiceLevelObjective.SliProperty
@Stability(Stable)
public static final class CfnServiceLevelObjective.SliProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceLevelObjective.SliProperty>
A builder for
CfnServiceLevelObjective.SliProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.comparisonOperator(String comparisonOperator) Sets the value ofCfnServiceLevelObjective.SliProperty.getComparisonOperator()metricThreshold(Number metricThreshold) Sets the value ofCfnServiceLevelObjective.SliProperty.getMetricThreshold()sliMetric(IResolvable sliMetric) Sets the value ofCfnServiceLevelObjective.SliProperty.getSliMetric()Sets the value ofCfnServiceLevelObjective.SliProperty.getSliMetric()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
comparisonOperator
@Stability(Stable) public CfnServiceLevelObjective.SliProperty.Builder comparisonOperator(String comparisonOperator) Sets the value ofCfnServiceLevelObjective.SliProperty.getComparisonOperator()- Parameters:
comparisonOperator- The arithmetic operation to use when comparing the specified metric to the threshold. This parameter is required.- Returns:
this
-
metricThreshold
@Stability(Stable) public CfnServiceLevelObjective.SliProperty.Builder metricThreshold(Number metricThreshold) Sets the value ofCfnServiceLevelObjective.SliProperty.getMetricThreshold()- Parameters:
metricThreshold- The value that the SLI metric is compared to. This parameter is required.- Returns:
this
-
sliMetric
@Stability(Stable) public CfnServiceLevelObjective.SliProperty.Builder sliMetric(IResolvable sliMetric) Sets the value ofCfnServiceLevelObjective.SliProperty.getSliMetric()- Parameters:
sliMetric- Use this structure to specify the metric to be used for the SLO. This parameter is required.- Returns:
this
-
sliMetric
@Stability(Stable) public CfnServiceLevelObjective.SliProperty.Builder sliMetric(CfnServiceLevelObjective.SliMetricProperty sliMetric) Sets the value ofCfnServiceLevelObjective.SliProperty.getSliMetric()- Parameters:
sliMetric- Use this structure to specify the metric to be used for the SLO. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServiceLevelObjective.SliProperty>- Returns:
- a new instance of
CfnServiceLevelObjective.SliProperty - Throws:
NullPointerException- if any required attribute was not provided
-