Interface ServiceLevelIndicatorConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ServiceLevelIndicatorConfig.Builder,
,ServiceLevelIndicatorConfig> SdkBuilder<ServiceLevelIndicatorConfig.Builder,
,ServiceLevelIndicatorConfig> SdkPojo
- Enclosing class:
ServiceLevelIndicatorConfig
@Mutable
@NotThreadSafe
public static interface ServiceLevelIndicatorConfig.Builder
extends SdkPojo, CopyableBuilder<ServiceLevelIndicatorConfig.Builder,ServiceLevelIndicatorConfig>
-
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) This parameter is used only when a request-based SLO tracks theLatency
metric.sliMetricConfig
(Consumer<ServiceLevelIndicatorMetricConfig.Builder> sliMetricConfig) Use this structure to specify the metric to be used for the SLO.sliMetricConfig
(ServiceLevelIndicatorMetricConfig sliMetricConfig) 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
-
sliMetricConfig
ServiceLevelIndicatorConfig.Builder sliMetricConfig(ServiceLevelIndicatorMetricConfig sliMetricConfig) Use this structure to specify the metric to be used for the SLO.
- Parameters:
sliMetricConfig
- 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.
-
sliMetricConfig
default ServiceLevelIndicatorConfig.Builder sliMetricConfig(Consumer<ServiceLevelIndicatorMetricConfig.Builder> sliMetricConfig) Use this structure to specify the metric to be used for the SLO.
This is a convenience method that creates an instance of theServiceLevelIndicatorMetricConfig.Builder
avoiding the need to create one manually viaServiceLevelIndicatorMetricConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosliMetricConfig(ServiceLevelIndicatorMetricConfig)
.- Parameters:
sliMetricConfig
- a consumer that will call methods onServiceLevelIndicatorMetricConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metricThreshold
This parameter is used only when a request-based SLO tracks the
Latency
metric. Specify the threshold value that the observedLatency
metric values are to be compared to.- Parameters:
metricThreshold
- This parameter is used only when a request-based SLO tracks theLatency
metric. Specify the threshold value that the observedLatency
metric values are to be compared to.- 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.
- Parameters:
comparisonOperator
- The arithmetic operation to use 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
ServiceLevelIndicatorConfig.Builder comparisonOperator(ServiceLevelIndicatorComparisonOperator comparisonOperator) The arithmetic operation to use when comparing the specified metric to the threshold.
- Parameters:
comparisonOperator
- The arithmetic operation to use 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:
-