Interface ServiceLevelIndicator.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ServiceLevelIndicator.Builder,
,ServiceLevelIndicator> SdkBuilder<ServiceLevelIndicator.Builder,
,ServiceLevelIndicator> SdkPojo
- Enclosing class:
ServiceLevelIndicator
@Mutable
@NotThreadSafe
public static interface ServiceLevelIndicator.Builder
extends SdkPojo, CopyableBuilder<ServiceLevelIndicator.Builder,ServiceLevelIndicator>
-
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) The value that the SLI metric is compared to.default ServiceLevelIndicator.Builder
sliMetric
(Consumer<ServiceLevelIndicatorMetric.Builder> sliMetric) A structure that contains information about the metric that the SLO monitors.sliMetric
(ServiceLevelIndicatorMetric sliMetric) 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, sdkFieldNameToField, sdkFields
-
Method Details
-
sliMetric
A structure that contains information about the metric that the SLO monitors.
- Parameters:
sliMetric
- 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.
-
sliMetric
default ServiceLevelIndicator.Builder sliMetric(Consumer<ServiceLevelIndicatorMetric.Builder> sliMetric) A structure that contains information about the metric that the SLO monitors.
This is a convenience method that creates an instance of theServiceLevelIndicatorMetric.Builder
avoiding the need to create one manually viaServiceLevelIndicatorMetric.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosliMetric(ServiceLevelIndicatorMetric)
.- Parameters:
sliMetric
- a consumer that will call methods onServiceLevelIndicatorMetric.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metricThreshold
The value that the SLI metric is compared to.
- Parameters:
metricThreshold
- The value that the SLI metric is 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
ServiceLevelIndicator.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:
-