Interface RequestBasedServiceLevelIndicatorConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RequestBasedServiceLevelIndicatorConfig.Builder,
,RequestBasedServiceLevelIndicatorConfig> SdkBuilder<RequestBasedServiceLevelIndicatorConfig.Builder,
,RequestBasedServiceLevelIndicatorConfig> SdkPojo
- Enclosing class:
RequestBasedServiceLevelIndicatorConfig
-
Method Summary
Modifier and TypeMethodDescriptioncomparisonOperator
(String comparisonOperator) The arithmetic operation to use when comparing the specified metric to the threshold.comparisonOperator
(ServiceLevelIndicatorComparisonOperator comparisonOperator) The arithmetic operation to use when comparing the specified metric to the threshold.metricThreshold
(Double metricThreshold) The value that the SLI metric is compared to.requestBasedSliMetricConfig
(Consumer<RequestBasedServiceLevelIndicatorMetricConfig.Builder> requestBasedSliMetricConfig) Use this structure to specify the metric to be used for the SLO.requestBasedSliMetricConfig
(RequestBasedServiceLevelIndicatorMetricConfig requestBasedSliMetricConfig) Use this structure to specify the metric to be used for the SLO.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
-
requestBasedSliMetricConfig
RequestBasedServiceLevelIndicatorConfig.Builder requestBasedSliMetricConfig(RequestBasedServiceLevelIndicatorMetricConfig requestBasedSliMetricConfig) Use this structure to specify the metric to be used for the SLO.
- Parameters:
requestBasedSliMetricConfig
- Use this structure to specify the metric to be used for the SLO.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestBasedSliMetricConfig
default RequestBasedServiceLevelIndicatorConfig.Builder requestBasedSliMetricConfig(Consumer<RequestBasedServiceLevelIndicatorMetricConfig.Builder> requestBasedSliMetricConfig) Use this structure to specify the metric to be used for the SLO.
This is a convenience method that creates an instance of theRequestBasedServiceLevelIndicatorMetricConfig.Builder
avoiding the need to create one manually viaRequestBasedServiceLevelIndicatorMetricConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torequestBasedSliMetricConfig(RequestBasedServiceLevelIndicatorMetricConfig)
.- Parameters:
requestBasedSliMetricConfig
- a consumer that will call methods onRequestBasedServiceLevelIndicatorMetricConfig.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. This parameter is required if this SLO is tracking the
Latency
metric.- Parameters:
metricThreshold
- The value that the SLI metric is compared to. This parameter is required if this SLO is tracking theLatency
metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
comparisonOperator
The arithmetic operation to use when comparing the specified metric to the threshold. This parameter is required if this SLO is tracking the
Latency
metric.- Parameters:
comparisonOperator
- The arithmetic operation to use when comparing the specified metric to the threshold. This parameter is required if this SLO is tracking theLatency
metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
comparisonOperator
RequestBasedServiceLevelIndicatorConfig.Builder comparisonOperator(ServiceLevelIndicatorComparisonOperator comparisonOperator) The arithmetic operation to use when comparing the specified metric to the threshold. This parameter is required if this SLO is tracking the
Latency
metric.- Parameters:
comparisonOperator
- The arithmetic operation to use when comparing the specified metric to the threshold. This parameter is required if this SLO is tracking theLatency
metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-