public static interface SetInstanceHealthRequest.Builder extends AutoScalingRequest.Builder, 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 will respect the grace period. |
build
overrideConfiguration
copy
applyMutation, 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.
SetInstanceHealthRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.SetInstanceHealthRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.