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