Interface TargetHealthDescription.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TargetHealthDescription.Builder,TargetHealthDescription>,SdkBuilder<TargetHealthDescription.Builder,TargetHealthDescription>,SdkPojo
- Enclosing class:
- TargetHealthDescription
public static interface TargetHealthDescription.Builder extends SdkPojo, CopyableBuilder<TargetHealthDescription.Builder,TargetHealthDescription>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TargetHealthDescription.BuilderanomalyDetection(Consumer<AnomalyDetection.Builder> anomalyDetection)The anomaly detection result for the target.TargetHealthDescription.BuilderanomalyDetection(AnomalyDetection anomalyDetection)The anomaly detection result for the target.TargetHealthDescription.BuilderhealthCheckPort(String healthCheckPort)The port to use to connect with the target.default TargetHealthDescription.Buildertarget(Consumer<TargetDescription.Builder> target)The description of the target.TargetHealthDescription.Buildertarget(TargetDescription target)The description of the target.default TargetHealthDescription.BuildertargetHealth(Consumer<TargetHealth.Builder> targetHealth)The health information for the target.TargetHealthDescription.BuildertargetHealth(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 Detail
-
target
TargetHealthDescription.Builder target(TargetDescription 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
default TargetHealthDescription.Builder target(Consumer<TargetDescription.Builder> target)
The description of the target.
This is a convenience method that creates an instance of theTargetDescription.Builderavoiding the need to create one manually viaTargetDescription.builder().When the
Consumercompletes,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:
target(TargetDescription)
-
healthCheckPort
TargetHealthDescription.Builder healthCheckPort(String 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
TargetHealthDescription.Builder targetHealth(TargetHealth 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
default TargetHealthDescription.Builder targetHealth(Consumer<TargetHealth.Builder> targetHealth)
The health information for the target.
This is a convenience method that creates an instance of theTargetHealth.Builderavoiding the need to create one manually viaTargetHealth.builder().When the
Consumercompletes,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:
targetHealth(TargetHealth)
-
anomalyDetection
TargetHealthDescription.Builder anomalyDetection(AnomalyDetection 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.Builderavoiding the need to create one manually viaAnomalyDetection.builder().When the
Consumercompletes,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:
anomalyDetection(AnomalyDetection)
-
-