com.amazonaws.services.elasticloadbalancing.model
Class InstanceState

java.lang.Object
  extended by com.amazonaws.services.elasticloadbalancing.model.InstanceState

public class InstanceState
extends Object

The InstanceState data type.


Constructor Summary
InstanceState()
          Default constructor for a new InstanceState object.
 
Method Summary
 boolean equals(Object obj)
           
 String getDescription()
          Provides a description of the instance.
 String getInstanceId()
          Provides an EC2 instance ID.
 String getReasonCode()
          Provides information about the cause of OutOfService instances.
 String getState()
          Specifies the current status of the instance.
 int hashCode()
           
 void setDescription(String description)
          Provides a description of the instance.
 void setInstanceId(String instanceId)
          Provides an EC2 instance ID.
 void setReasonCode(String reasonCode)
          Provides information about the cause of OutOfService instances.
 void setState(String state)
          Specifies the current status of the instance.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 InstanceState withDescription(String description)
          Provides a description of the instance.
 InstanceState withInstanceId(String instanceId)
          Provides an EC2 instance ID.
 InstanceState withReasonCode(String reasonCode)
          Provides information about the cause of OutOfService instances.
 InstanceState withState(String state)
          Specifies the current status 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 String getInstanceId()
Provides an EC2 instance ID.

Returns:
Provides an EC2 instance ID.

setInstanceId

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

Parameters:
instanceId - Provides an EC2 instance ID.

withInstanceId

public InstanceState withInstanceId(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 String getState()
Specifies the current status of the instance.

Returns:
Specifies the current status of the instance.

setState

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

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

withState

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

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

Parameters:
state - Specifies the current status of the instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getReasonCode

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

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

setReasonCode

public void setReasonCode(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 LoadBalancer.

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

withReasonCode

public InstanceState withReasonCode(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 LoadBalancer.

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 LoadBalancer.
Returns:
A reference to this updated object so that method calls can be chained together.

getDescription

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

Returns:
Provides a description of the instance.

setDescription

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

Parameters:
description - Provides a description of the instance.

withDescription

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

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

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

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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