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. |
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
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.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.