CopyableBuilder<SetInstanceHealthRequest.Builder,SetInstanceHealthRequest>
, SdkBuilder<SetInstanceHealthRequest.Builder,SetInstanceHealthRequest>
public static interface SetInstanceHealthRequest.Builder extends CopyableBuilder<SetInstanceHealthRequest.Builder,SetInstanceHealthRequest>
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 |
shouldRespectGracePeriod(Boolean shouldRespectGracePeriod) |
If the Auto Scaling group of the specified instance has a
HealthCheckGracePeriod specified for
the group, by default, this call will respect the grace period. |
copy
apply, build
SetInstanceHealthRequest.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
if you want the instance to remain in service.
Set to Unhealthy
if you want the instance to be out of service. Auto Scaling will terminate and
replace the unhealthy instance.
healthStatus
- The health status of the instance. Set to Healthy
if you want the instance to remain in
service. Set to Unhealthy
if you want the instance to be out of service. Auto Scaling
will terminate and replace 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 will respect the grace period. Set this to False
, if you do not
want the call to respect the grace period associated with the group.
For more information, see the description of the health check grace period for CreateAutoScalingGroup.
shouldRespectGracePeriod
- If the Auto Scaling group of the specified instance has a HealthCheckGracePeriod
specified for the group, by default, this call will respect the grace period. Set this to
False
, if you do not want the call to respect the grace period associated with the
group.
For more information, see the description of the health check grace period for CreateAutoScalingGroup.
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.