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