Interface TargetHealthDescription.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<TargetHealthDescription.Builder,
,TargetHealthDescription> SdkBuilder<TargetHealthDescription.Builder,
,TargetHealthDescription> SdkPojo
- Enclosing class:
TargetHealthDescription
-
Method Summary
Modifier and TypeMethodDescriptiondefault TargetHealthDescription.Builder
anomalyDetection
(Consumer<AnomalyDetection.Builder> anomalyDetection) The anomaly detection result for the target.anomalyDetection
(AnomalyDetection anomalyDetection) The anomaly detection result for the target.healthCheckPort
(String healthCheckPort) The port to use to connect with the target.default TargetHealthDescription.Builder
target
(Consumer<TargetDescription.Builder> target) The description of the target.target
(TargetDescription target) The description of the target.default TargetHealthDescription.Builder
targetHealth
(Consumer<TargetHealth.Builder> targetHealth) The health information for the target.targetHealth
(TargetHealth targetHealth) The health information for the target.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
-
target
The description of the target.
- Parameters:
target
- The description of the target.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
target
The description of the target.
This is a convenience method that creates an instance of theTargetDescription.Builder
avoiding the need to create one manually viaTargetDescription.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totarget(TargetDescription)
.- Parameters:
target
- a consumer that will call methods onTargetDescription.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
healthCheckPort
The port to use to connect with the target.
- Parameters:
healthCheckPort
- The port to use to connect with the target.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetHealth
The health information for the target.
- Parameters:
targetHealth
- The health information for the target.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetHealth
The health information for the target.
This is a convenience method that creates an instance of theTargetHealth.Builder
avoiding the need to create one manually viaTargetHealth.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totargetHealth(TargetHealth)
.- Parameters:
targetHealth
- a consumer that will call methods onTargetHealth.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
anomalyDetection
The anomaly detection result for the target.
If no anomalies were detected, the result is
normal
.If anomalies were detected, the result is
anomalous
.- Parameters:
anomalyDetection
- The anomaly detection result for the target.If no anomalies were detected, the result is
normal
.If anomalies were detected, the result is
anomalous
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalyDetection
default TargetHealthDescription.Builder anomalyDetection(Consumer<AnomalyDetection.Builder> anomalyDetection) The anomaly detection result for the target.
If no anomalies were detected, the result is
normal
.If anomalies were detected, the result is
This is a convenience method that creates an instance of theanomalous
.AnomalyDetection.Builder
avoiding the need to create one manually viaAnomalyDetection.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toanomalyDetection(AnomalyDetection)
.- Parameters:
anomalyDetection
- a consumer that will call methods onAnomalyDetection.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-