com.amazonaws.services.elasticloadbalancing.model
Class InstanceState

java.lang.Object
  extended by com.amazonaws.services.elasticloadbalancing.model.InstanceState
All Implemented Interfaces:
java.io.Serializable

public class InstanceState
extends java.lang.Object
implements java.io.Serializable

The InstanceState data type.

See Also:
Serialized Form

Constructor Summary
InstanceState()
          Default constructor for a new InstanceState object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDescription()
          Provides a description of the instance state.
 java.lang.String getInstanceId()
          Provides an EC2 instance ID.
 java.lang.String getReasonCode()
          Provides information about the cause of OutOfService instances.
 java.lang.String getState()
          Specifies the current state of the instance.
 int hashCode()
           
 void setDescription(java.lang.String description)
          Provides a description of the instance state.
 void setInstanceId(java.lang.String instanceId)
          Provides an EC2 instance ID.
 void setReasonCode(java.lang.String reasonCode)
          Provides information about the cause of OutOfService instances.
 void setState(java.lang.String state)
          Specifies the current state of the instance.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 InstanceState withDescription(java.lang.String description)
          Provides a description of the instance state.
 InstanceState withInstanceId(java.lang.String instanceId)
          Provides an EC2 instance ID.
 InstanceState withReasonCode(java.lang.String reasonCode)
          Provides information about the cause of OutOfService instances.
 InstanceState withState(java.lang.String state)
          Specifies the current state of the instance.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceState

public InstanceState()
Default constructor for a new InstanceState object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

Method Detail

getInstanceId

public java.lang.String getInstanceId()
Provides an EC2 instance ID.

Returns:
Provides an EC2 instance ID.

setInstanceId

public void setInstanceId(java.lang.String instanceId)
Provides an EC2 instance ID.

Parameters:
instanceId - Provides an EC2 instance ID.

withInstanceId

public InstanceState withInstanceId(java.lang.String instanceId)
Provides an EC2 instance ID.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceId - Provides an EC2 instance ID.
Returns:
A reference to this updated object so that method calls can be chained together.

getState

public java.lang.String getState()
Specifies the current state of the instance.

Valid value: InService|OutOfService

Returns:
Specifies the current state of the instance.

Valid value: InService|OutOfService


setState

public void setState(java.lang.String state)
Specifies the current state of the instance.

Valid value: InService|OutOfService

Parameters:
state - Specifies the current state of the instance.

Valid value: InService|OutOfService


withState

public InstanceState withState(java.lang.String state)
Specifies the current state of the instance.

Valid value: InService|OutOfService

Returns a reference to this object so that method calls can be chained together.

Parameters:
state - Specifies the current state of the instance.

Valid value: InService|OutOfService

Returns:
A reference to this updated object so that method calls can be chained together.

getReasonCode

public java.lang.String getReasonCode()
Provides information about the cause of OutOfService instances. Specifically, it indicates whether the cause is Elastic Load Balancing or the instance behind the load balancer.

Valid value: ELB|Instance|N/A

Returns:
Provides information about the cause of OutOfService instances. Specifically, it indicates whether the cause is Elastic Load Balancing or the instance behind the load balancer.

Valid value: ELB|Instance|N/A


setReasonCode

public void setReasonCode(java.lang.String reasonCode)
Provides information about the cause of OutOfService instances. Specifically, it indicates whether the cause is Elastic Load Balancing or the instance behind the load balancer.

Valid value: ELB|Instance|N/A

Parameters:
reasonCode - Provides information about the cause of OutOfService instances. Specifically, it indicates whether the cause is Elastic Load Balancing or the instance behind the load balancer.

Valid value: ELB|Instance|N/A


withReasonCode

public InstanceState withReasonCode(java.lang.String reasonCode)
Provides information about the cause of OutOfService instances. Specifically, it indicates whether the cause is Elastic Load Balancing or the instance behind the load balancer.

Valid value: ELB|Instance|N/A

Returns a reference to this object so that method calls can be chained together.

Parameters:
reasonCode - Provides information about the cause of OutOfService instances. Specifically, it indicates whether the cause is Elastic Load Balancing or the instance behind the load balancer.

Valid value: ELB|Instance|N/A

Returns:
A reference to this updated object so that method calls can be chained together.

getDescription

public java.lang.String getDescription()
Provides a description of the instance state.

Returns:
Provides a description of the instance state.

setDescription

public void setDescription(java.lang.String description)
Provides a description of the instance state.

Parameters:
description - Provides a description of the instance state.

withDescription

public InstanceState withDescription(java.lang.String description)
Provides a description of the instance state.

Returns a reference to this object so that method calls can be chained together.

Parameters:
description - Provides a description of the instance state.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.