Interface RequestBasedServiceLevelIndicator.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RequestBasedServiceLevelIndicator.Builder,
,RequestBasedServiceLevelIndicator> SdkBuilder<RequestBasedServiceLevelIndicator.Builder,
,RequestBasedServiceLevelIndicator> SdkPojo
- Enclosing class:
RequestBasedServiceLevelIndicator
public static interface RequestBasedServiceLevelIndicator.Builder
extends SdkPojo, CopyableBuilder<RequestBasedServiceLevelIndicator.Builder,RequestBasedServiceLevelIndicator>
-
Method Summary
Modifier and TypeMethodDescriptioncomparisonOperator
(String comparisonOperator) The arithmetic operation used when comparing the specified metric to the threshold.comparisonOperator
(ServiceLevelIndicatorComparisonOperator comparisonOperator) The arithmetic operation used when comparing the specified metric to the threshold.metricThreshold
(Double metricThreshold) This value is the threshold that the observed metric values of the SLI metric are compared to.requestBasedSliMetric
(Consumer<RequestBasedServiceLevelIndicatorMetric.Builder> requestBasedSliMetric) A structure that contains information about the metric that the SLO monitors.requestBasedSliMetric
(RequestBasedServiceLevelIndicatorMetric requestBasedSliMetric) A structure that contains information about the metric that the SLO monitors.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
requestBasedSliMetric
RequestBasedServiceLevelIndicator.Builder requestBasedSliMetric(RequestBasedServiceLevelIndicatorMetric requestBasedSliMetric) A structure that contains information about the metric that the SLO monitors.
- Parameters:
requestBasedSliMetric
- A structure that contains information about the metric that the SLO monitors.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestBasedSliMetric
default RequestBasedServiceLevelIndicator.Builder requestBasedSliMetric(Consumer<RequestBasedServiceLevelIndicatorMetric.Builder> requestBasedSliMetric) A structure that contains information about the metric that the SLO monitors.
This is a convenience method that creates an instance of theRequestBasedServiceLevelIndicatorMetric.Builder
avoiding the need to create one manually viaRequestBasedServiceLevelIndicatorMetric.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torequestBasedSliMetric(RequestBasedServiceLevelIndicatorMetric)
.- Parameters:
requestBasedSliMetric
- a consumer that will call methods onRequestBasedServiceLevelIndicatorMetric.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metricThreshold
This value is the threshold that the observed metric values of the SLI metric are compared to.
- Parameters:
metricThreshold
- This value is the threshold that the observed metric values of the SLI metric are compared to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
comparisonOperator
The arithmetic operation used when comparing the specified metric to the threshold.
- Parameters:
comparisonOperator
- The arithmetic operation used when comparing the specified metric to the threshold.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
comparisonOperator
RequestBasedServiceLevelIndicator.Builder comparisonOperator(ServiceLevelIndicatorComparisonOperator comparisonOperator) The arithmetic operation used when comparing the specified metric to the threshold.
- Parameters:
comparisonOperator
- The arithmetic operation used when comparing the specified metric to the threshold.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-