public static interface SetInstanceHealthRequest.Builder extends AutoScalingRequest.Builder, SdkPojo, CopyableBuilder<SetInstanceHealthRequest.Builder,SetInstanceHealthRequest>
| Modifier and Type | Method and 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(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
SetInstanceHealthRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
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. |
buildoverrideConfigurationcopyapplyMutation, buildSetInstanceHealthRequest.Builder instanceId(String instanceId)
The ID of the instance.
instanceId - The ID of the instance.SetInstanceHealthRequest.Builder healthStatus(String healthStatus)
The health status of the instance. Set to Healthy to have the instance remain in service. Set to
Unhealthy to have the instance be out of service. Amazon EC2 Auto Scaling terminates and
replaces the unhealthy instance.
healthStatus - The health status of the instance. Set to Healthy to have the instance remain in service.
Set to Unhealthy to have the instance be out of service. Amazon EC2 Auto Scaling
terminates and replaces the unhealthy instance.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 to False, to have the call
not respect the grace period associated with the group.
For more information about the health check grace period, see CreateAutoScalingGroup.
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 to
False, to have the call not respect the grace period associated with the group.
For more information about the health check grace period, see CreateAutoScalingGroup.
SetInstanceHealthRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.BuilderoverrideConfiguration in interface AwsRequest.BuilderoverrideConfiguration - The override configuration.SetInstanceHealthRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.BuilderoverrideConfiguration in interface AwsRequest.BuilderbuilderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.