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