Class InstanceState
- All Implemented Interfaces:
Serializable,Cloneable
Information about the state of a back-end instance.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanA description of the instance state.The ID of the instance.Information about the cause ofOutOfServiceinstances.getState()The current state of the instance.inthashCode()voidsetDescription(String description) A description of the instance state.voidsetInstanceId(String instanceId) The ID of the instance.voidsetReasonCode(String reasonCode) Information about the cause ofOutOfServiceinstances.voidThe current state of the instance.toString()Returns a string representation of this object; useful for testing and debugging.withDescription(String description) A description of the instance state.withInstanceId(String instanceId) The ID of the instance.withReasonCode(String reasonCode) Information about the cause ofOutOfServiceinstances.The current state of the instance.
-
Constructor Details
-
InstanceState
public InstanceState()
-
-
Method Details
-
setInstanceId
The ID of the instance.
- Parameters:
instanceId- The ID of the instance.
-
getInstanceId
The ID of the instance.
- Returns:
- The ID of the instance.
-
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.
-
setState
The current state of the instance.
Valid values:
InService|OutOfService|Unknown- Parameters:
state- The current state of the instance.Valid values:
InService|OutOfService|Unknown
-
getState
The current state of the instance.
Valid values:
InService|OutOfService|Unknown- Returns:
- The current state of the instance.
Valid values:
InService|OutOfService|Unknown
-
withState
The current state of the instance.
Valid values:
InService|OutOfService|Unknown- Parameters:
state- The current state of the instance.Valid values:
InService|OutOfService|Unknown- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setReasonCode
Information about the cause of
OutOfServiceinstances. Specifically, whether the cause is Elastic Load Balancing or the instance.Valid values:
ELB|Instance|N/A- Parameters:
reasonCode- Information about the cause ofOutOfServiceinstances. Specifically, whether the cause is Elastic Load Balancing or the instance.Valid values:
ELB|Instance|N/A
-
getReasonCode
Information about the cause of
OutOfServiceinstances. Specifically, whether the cause is Elastic Load Balancing or the instance.Valid values:
ELB|Instance|N/A- Returns:
- Information about the cause of
OutOfServiceinstances. Specifically, whether the cause is Elastic Load Balancing or the instance.Valid values:
ELB|Instance|N/A
-
withReasonCode
Information about the cause of
OutOfServiceinstances. Specifically, whether the cause is Elastic Load Balancing or the instance.Valid values:
ELB|Instance|N/A- Parameters:
reasonCode- Information about the cause ofOutOfServiceinstances. Specifically, whether the cause is Elastic Load Balancing or the instance.Valid values:
ELB|Instance|N/A- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
A description of the instance state. This string can contain one or more of the following messages.
-
N/A -
A transient error occurred. Please try again later. -
Instance has failed at least the UnhealthyThreshold number of health checks consecutively. -
Instance has not passed the configured HealthyThreshold number of health checks consecutively. -
Instance registration is still in progress. -
Instance is in the EC2 Availability Zone for which LoadBalancer is not configured to route traffic to. -
Instance is not currently registered with the LoadBalancer. -
Instance deregistration currently in progress. -
Disable Availability Zone is currently in progress. -
Instance is in pending state. -
Instance is in stopped state. -
Instance is in terminated state.
- Parameters:
description- A description of the instance state. This string can contain one or more of the following messages.-
N/A -
A transient error occurred. Please try again later. -
Instance has failed at least the UnhealthyThreshold number of health checks consecutively. -
Instance has not passed the configured HealthyThreshold number of health checks consecutively. -
Instance registration is still in progress. -
Instance is in the EC2 Availability Zone for which LoadBalancer is not configured to route traffic to. -
Instance is not currently registered with the LoadBalancer. -
Instance deregistration currently in progress. -
Disable Availability Zone is currently in progress. -
Instance is in pending state. -
Instance is in stopped state. -
Instance is in terminated state.
-
-
-
getDescription
A description of the instance state. This string can contain one or more of the following messages.
-
N/A -
A transient error occurred. Please try again later. -
Instance has failed at least the UnhealthyThreshold number of health checks consecutively. -
Instance has not passed the configured HealthyThreshold number of health checks consecutively. -
Instance registration is still in progress. -
Instance is in the EC2 Availability Zone for which LoadBalancer is not configured to route traffic to. -
Instance is not currently registered with the LoadBalancer. -
Instance deregistration currently in progress. -
Disable Availability Zone is currently in progress. -
Instance is in pending state. -
Instance is in stopped state. -
Instance is in terminated state.
- Returns:
- A description of the instance state. This string can contain one
or more of the following messages.
-
N/A -
A transient error occurred. Please try again later. -
Instance has failed at least the UnhealthyThreshold number of health checks consecutively. -
Instance has not passed the configured HealthyThreshold number of health checks consecutively. -
Instance registration is still in progress. -
Instance is in the EC2 Availability Zone for which LoadBalancer is not configured to route traffic to. -
Instance is not currently registered with the LoadBalancer. -
Instance deregistration currently in progress. -
Disable Availability Zone is currently in progress. -
Instance is in pending state. -
Instance is in stopped state. -
Instance is in terminated state.
-
-
-
withDescription
A description of the instance state. This string can contain one or more of the following messages.
-
N/A -
A transient error occurred. Please try again later. -
Instance has failed at least the UnhealthyThreshold number of health checks consecutively. -
Instance has not passed the configured HealthyThreshold number of health checks consecutively. -
Instance registration is still in progress. -
Instance is in the EC2 Availability Zone for which LoadBalancer is not configured to route traffic to. -
Instance is not currently registered with the LoadBalancer. -
Instance deregistration currently in progress. -
Disable Availability Zone is currently in progress. -
Instance is in pending state. -
Instance is in stopped state. -
Instance is in terminated state.
- Parameters:
description- A description of the instance state. This string can contain one or more of the following messages.-
N/A -
A transient error occurred. Please try again later. -
Instance has failed at least the UnhealthyThreshold number of health checks consecutively. -
Instance has not passed the configured HealthyThreshold number of health checks consecutively. -
Instance registration is still in progress. -
Instance is in the EC2 Availability Zone for which LoadBalancer is not configured to route traffic to. -
Instance is not currently registered with the LoadBalancer. -
Instance deregistration currently in progress. -
Disable Availability Zone is currently in progress. -
Instance is in pending state. -
Instance is in stopped state. -
Instance is in terminated state.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-