Class CfnServiceLevelObjective.MonitoredRequestCountMetricProperty.Builder
java.lang.Object
software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MonitoredRequestCountMetricProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceLevelObjective.MonitoredRequestCountMetricProperty>
- Enclosing interface:
CfnServiceLevelObjective.MonitoredRequestCountMetricProperty
@Stability(Stable)
public static final class CfnServiceLevelObjective.MonitoredRequestCountMetricProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceLevelObjective.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 CfnServiceLevelObjective.MonitoredRequestCountMetricProperty.Builder badCountMetric(IResolvable badCountMetric) - 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 CfnServiceLevelObjective.MonitoredRequestCountMetricProperty.Builder badCountMetric(List<? extends Object> badCountMetric) - 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 CfnServiceLevelObjective.MonitoredRequestCountMetricProperty.Builder goodCountMetric(IResolvable goodCountMetric) - 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 CfnServiceLevelObjective.MonitoredRequestCountMetricProperty.Builder goodCountMetric(List<? extends Object> goodCountMetric) - 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
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServiceLevelObjective.MonitoredRequestCountMetricProperty>- Returns:
- a new instance of
CfnServiceLevelObjective.MonitoredRequestCountMetricProperty - Throws:
NullPointerException- if any required attribute was not provided
-