Interface SetInstanceHealthRequest.Builder
- All Superinterfaces:
AutoScalingRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<SetInstanceHealthRequest.Builder,,SetInstanceHealthRequest> SdkBuilder<SetInstanceHealthRequest.Builder,,SetInstanceHealthRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
SetInstanceHealthRequest
-
Method Summary
Modifier and TypeMethodDescriptionhealthStatus(String healthStatus) The health status of the instance.instanceId(String instanceId) The ID of the instance.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.shouldRespectGracePeriod(Boolean shouldRespectGracePeriod) If the Auto Scaling group of the specified instance has aHealthCheckGracePeriodspecified for the group, by default, this call respects the grace period.Methods inherited from interface software.amazon.awssdk.services.autoscaling.model.AutoScalingRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
The health status of the instance. Set to
Healthyto have the instance remain in service. Set toUnhealthyto 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 toHealthyto have the instance remain in service. Set toUnhealthyto 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
If the Auto Scaling group of the specified instance has a
HealthCheckGracePeriodspecified 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 Set the health check grace period for an Auto Scaling group in the Amazon EC2 Auto Scaling User Guide.
- Parameters:
shouldRespectGracePeriod- If the Auto Scaling group of the specified instance has aHealthCheckGracePeriodspecified 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 Set the health check grace period for an Auto Scaling group in the Amazon EC2 Auto Scaling User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
SetInstanceHealthRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
SetInstanceHealthRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-