Class CfnServiceLevelObjectivePropsMixin.MonitoredRequestCountMetricProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.applicationsignals.CfnServiceLevelObjectivePropsMixin.MonitoredRequestCountMetricProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceLevelObjectivePropsMixin.MonitoredRequestCountMetricProperty>
- Enclosing interface:
CfnServiceLevelObjectivePropsMixin.MonitoredRequestCountMetricProperty
@Stability(Stable)
public static final class CfnServiceLevelObjectivePropsMixin.MonitoredRequestCountMetricProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceLevelObjectivePropsMixin.MonitoredRequestCountMetricProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbadCountMetric(List<? extends Object> badCountMetric) badCountMetric(IResolvable badCountMetric) build()Builds the configured instance.goodCountMetric(List<? extends Object> goodCountMetric) goodCountMetric(IResolvable goodCountMetric)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
badCountMetric
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.MonitoredRequestCountMetricProperty.Builder badCountMetric(IResolvable badCountMetric) Sets the value ofCfnServiceLevelObjectivePropsMixin.MonitoredRequestCountMetricProperty.getBadCountMetric()- Parameters:
badCountMetric- If you want to count "bad requests" to determine the percentage of successful requests for this request-based SLO, specify the metric to use as "bad requests" in this structure.- Returns:
this
-
badCountMetric
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.MonitoredRequestCountMetricProperty.Builder badCountMetric(List<? extends Object> badCountMetric) Sets the value ofCfnServiceLevelObjectivePropsMixin.MonitoredRequestCountMetricProperty.getBadCountMetric()- Parameters:
badCountMetric- If you want to count "bad requests" to determine the percentage of successful requests for this request-based SLO, specify the metric to use as "bad requests" in this structure.- Returns:
this
-
goodCountMetric
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.MonitoredRequestCountMetricProperty.Builder goodCountMetric(IResolvable goodCountMetric) Sets the value ofCfnServiceLevelObjectivePropsMixin.MonitoredRequestCountMetricProperty.getGoodCountMetric()- Parameters:
goodCountMetric- If you want to count "good requests" to determine the percentage of successful requests for this request-based SLO, specify the metric to use as "good requests" in this structure.- Returns:
this
-
goodCountMetric
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.MonitoredRequestCountMetricProperty.Builder goodCountMetric(List<? extends Object> goodCountMetric) Sets the value ofCfnServiceLevelObjectivePropsMixin.MonitoredRequestCountMetricProperty.getGoodCountMetric()- Parameters:
goodCountMetric- If you want to count "good requests" to determine the percentage of successful requests for this request-based SLO, specify the metric to use as "good requests" in this structure.- Returns:
this
-
build
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.MonitoredRequestCountMetricProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServiceLevelObjectivePropsMixin.MonitoredRequestCountMetricProperty>- Returns:
- a new instance of
CfnServiceLevelObjectivePropsMixin.MonitoredRequestCountMetricProperty - Throws:
NullPointerException- if any required attribute was not provided
-