Interface SetInstanceHealthRequest.Builder
-
- All Superinterfaces:
AutoScalingRequest.Builder
,AwsRequest.Builder
,Buildable
,CopyableBuilder<SetInstanceHealthRequest.Builder,SetInstanceHealthRequest>
,SdkBuilder<SetInstanceHealthRequest.Builder,SetInstanceHealthRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- SetInstanceHealthRequest
public static interface SetInstanceHealthRequest.Builder extends AutoScalingRequest.Builder, SdkPojo, CopyableBuilder<SetInstanceHealthRequest.Builder,SetInstanceHealthRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SetInstanceHealthRequest.Builder
healthStatus(String healthStatus)
The health status of the instance.SetInstanceHealthRequest.Builder
instanceId(String instanceId)
The ID of the instance.SetInstanceHealthRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
SetInstanceHealthRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
SetInstanceHealthRequest.Builder
shouldRespectGracePeriod(Boolean shouldRespectGracePeriod)
If the Auto Scaling group of the specified instance has aHealthCheckGracePeriod
specified for the group, by default, this call respects the grace period.-
Methods inherited from interface software.amazon.awssdk.services.autoscaling.model.AutoScalingRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
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
-
instanceId
SetInstanceHealthRequest.Builder instanceId(String instanceId)
The ID of the instance.
- Parameters:
instanceId
- The ID of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
healthStatus
SetInstanceHealthRequest.Builder healthStatus(String healthStatus)
The health status of the instance. Set to
Healthy
to have the instance remain in service. Set toUnhealthy
to have the instance be out of service. Amazon EC2 Auto Scaling terminates and replaces the unhealthy instance.- Parameters:
healthStatus
- The health status of the instance. Set toHealthy
to have the instance remain in service. Set toUnhealthy
to have the instance be out of service. Amazon EC2 Auto Scaling terminates and replaces the unhealthy instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shouldRespectGracePeriod
SetInstanceHealthRequest.Builder shouldRespectGracePeriod(Boolean shouldRespectGracePeriod)
If the Auto Scaling group of the specified instance has a
HealthCheckGracePeriod
specified for the group, by default, this call respects the grace period. Set this toFalse
, to have the call not respect the grace period associated with the group.For more information about the health check grace period, see CreateAutoScalingGroup in the Amazon EC2 Auto Scaling API Reference.
- Parameters:
shouldRespectGracePeriod
- If the Auto Scaling group of the specified instance has aHealthCheckGracePeriod
specified for the group, by default, this call respects the grace period. Set this toFalse
, to have the call not respect the grace period associated with the group.For more information about the health check grace period, see CreateAutoScalingGroup in the Amazon EC2 Auto Scaling API Reference.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
SetInstanceHealthRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
SetInstanceHealthRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-