Interface OutlierDetection.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<OutlierDetection.Builder,
,OutlierDetection> SdkBuilder<OutlierDetection.Builder,
,OutlierDetection> SdkPojo
- Enclosing class:
OutlierDetection
public static interface OutlierDetection.Builder
extends SdkPojo, CopyableBuilder<OutlierDetection.Builder,OutlierDetection>
-
Method Summary
Modifier and TypeMethodDescriptiondefault OutlierDetection.Builder
baseEjectionDuration
(Consumer<Duration.Builder> baseEjectionDuration) The base amount of time for which a host is ejected.baseEjectionDuration
(Duration baseEjectionDuration) The base amount of time for which a host is ejected.default OutlierDetection.Builder
interval
(Consumer<Duration.Builder> interval) The time interval between ejection sweep analysis.The time interval between ejection sweep analysis.maxEjectionPercent
(Integer maxEjectionPercent) Maximum percentage of hosts in load balancing pool for upstream service that can be ejected.maxServerErrors
(Long maxServerErrors) Number of consecutive5xx
errors required for ejection.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
-
baseEjectionDuration
The base amount of time for which a host is ejected.
- Parameters:
baseEjectionDuration
- The base amount of time for which a host is ejected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
baseEjectionDuration
default OutlierDetection.Builder baseEjectionDuration(Consumer<Duration.Builder> baseEjectionDuration) The base amount of time for which a host is ejected.
This is a convenience method that creates an instance of theDuration.Builder
avoiding the need to create one manually viaDuration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobaseEjectionDuration(Duration)
.- Parameters:
baseEjectionDuration
- a consumer that will call methods onDuration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
interval
The time interval between ejection sweep analysis.
- Parameters:
interval
- The time interval between ejection sweep analysis.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
interval
The time interval between ejection sweep analysis.
This is a convenience method that creates an instance of theDuration.Builder
avoiding the need to create one manually viaDuration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tointerval(Duration)
.- Parameters:
interval
- a consumer that will call methods onDuration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxEjectionPercent
Maximum percentage of hosts in load balancing pool for upstream service that can be ejected. Will eject at least one host regardless of the value.
- Parameters:
maxEjectionPercent
- Maximum percentage of hosts in load balancing pool for upstream service that can be ejected. Will eject at least one host regardless of the value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxServerErrors
Number of consecutive
5xx
errors required for ejection.- Parameters:
maxServerErrors
- Number of consecutive5xx
errors required for ejection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-