Class SetInstanceHealthRequest
- All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable
- See Also:
-
Field Summary
Fields inherited from class AmazonWebServiceRequest
NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a shallow clone of this request.booleanThe health status of the instance.The ID of the instance.If the Auto Scaling group of the specified instance has aHealthCheckGracePeriodspecified for the group, by default, this call will respect the grace period.inthashCode()If the Auto Scaling group of the specified instance has aHealthCheckGracePeriodspecified for the group, by default, this call will respect the grace period.voidsetHealthStatus(String healthStatus) The health status of the instance.voidsetInstanceId(String instanceId) The ID of the instance.voidsetShouldRespectGracePeriod(Boolean shouldRespectGracePeriod) If the Auto Scaling group of the specified instance has aHealthCheckGracePeriodspecified for the group, by default, this call will respect the grace period.toString()Returns a string representation of this object; useful for testing and debugging.withHealthStatus(String healthStatus) The health status of the instance.withInstanceId(String instanceId) The ID of the instance.withShouldRespectGracePeriod(Boolean shouldRespectGracePeriod) If the Auto Scaling group of the specified instance has aHealthCheckGracePeriodspecified for the group, by default, this call will respect the grace period.Methods inherited from class AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
SetInstanceHealthRequest
public SetInstanceHealthRequest()
-
-
Method Details
-
setInstanceId
The ID of the instance.
- Parameters:
instanceId- The ID of the instance.
-
getInstanceId
-
withInstanceId
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.
-
setHealthStatus
The health status of the instance. Set to
Healthyif you want the instance to remain in service. Set toUnhealthyif you want the instance to be out of service. Auto Scaling will terminate and replace the unhealthy instance.- Parameters:
healthStatus- The health status of the instance. Set toHealthyif you want the instance to remain in service. Set toUnhealthyif you want the instance to be out of service. Auto Scaling will terminate and replace the unhealthy instance.
-
getHealthStatus
The health status of the instance. Set to
Healthyif you want the instance to remain in service. Set toUnhealthyif you want the instance to be out of service. Auto Scaling will terminate and replace the unhealthy instance.- Returns:
- The health status of the instance. Set to
Healthyif you want the instance to remain in service. Set toUnhealthyif you want the instance to be out of service. Auto Scaling will terminate and replace the unhealthy instance.
-
withHealthStatus
The health status of the instance. Set to
Healthyif you want the instance to remain in service. Set toUnhealthyif you want the instance to be out of service. Auto Scaling will terminate and replace the unhealthy instance.- Parameters:
healthStatus- The health status of the instance. Set toHealthyif you want the instance to remain in service. Set toUnhealthyif you want the instance to be out of service. Auto Scaling will terminate and replace the unhealthy instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setShouldRespectGracePeriod
If the Auto Scaling group of the specified instance has a
HealthCheckGracePeriodspecified for the group, by default, this call will respect the grace period. Set this toFalse, 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.
- Parameters:
shouldRespectGracePeriod- If the Auto Scaling group of the specified instance has aHealthCheckGracePeriodspecified for the group, by default, this call will respect the grace period. Set this toFalse, 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.
-
getShouldRespectGracePeriod
If the Auto Scaling group of the specified instance has a
HealthCheckGracePeriodspecified for the group, by default, this call will respect the grace period. Set this toFalse, 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.
- Returns:
- If the Auto Scaling group of the specified instance has a
HealthCheckGracePeriodspecified for the group, by default, this call will respect the grace period. Set this toFalse, 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.
-
withShouldRespectGracePeriod
If the Auto Scaling group of the specified instance has a
HealthCheckGracePeriodspecified for the group, by default, this call will respect the grace period. Set this toFalse, 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.
- Parameters:
shouldRespectGracePeriod- If the Auto Scaling group of the specified instance has aHealthCheckGracePeriodspecified for the group, by default, this call will respect the grace period. Set this toFalse, 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isShouldRespectGracePeriod
If the Auto Scaling group of the specified instance has a
HealthCheckGracePeriodspecified for the group, by default, this call will respect the grace period. Set this toFalse, 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.
- Returns:
- If the Auto Scaling group of the specified instance has a
HealthCheckGracePeriodspecified for the group, by default, this call will respect the grace period. Set this toFalse, 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.
-
toString
-
equals
-
hashCode
-
clone
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
-