com.amazonaws.services.elasticloadbalancing.model
Class Instance

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

public class Instance
extends Object

The Instance data type.


Constructor Summary
Instance()
          Default constructor for a new Instance object.
Instance(String instanceId)
          Constructs a new Instance object.
 
Method Summary
 boolean equals(Object obj)
           
 String getInstanceId()
          Provides an EC2 instance ID.
 int hashCode()
           
 void setInstanceId(String instanceId)
          Provides an EC2 instance ID.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Instance withInstanceId(String instanceId)
          Provides an EC2 instance ID.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Instance

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


Instance

public Instance(String instanceId)
Constructs a new Instance object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
instanceId - Provides an EC2 instance ID.
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 Instance 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.

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.