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()
           
 
Method Summary
 String getDescription()
           
 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.
 void setDescription(String description)
           
 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.
 InstanceState withDescription(String description)
           Returns a reference to this object so that method calls can be chained together.
 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceState

public InstanceState()
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 Load Balancer.

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.

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 Load Balancer.

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.

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 Load Balancer.

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

getDescription

public String getDescription()
Returns:

setDescription

public void setDescription(String description)
Parameters:
description -

withDescription

public InstanceState withDescription(String description)

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

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


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