Class Instance
- java.lang.Object
-
- com.amazonaws.services.elasticloadbalancing.model.Instance
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Instance extends Object implements Serializable, Cloneable
The ID of a back-end instance.
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Instance
clone()
boolean
equals(Object obj)
String
getInstanceId()
The ID of the instance.int
hashCode()
void
setInstanceId(String instanceId)
The ID of the instance.String
toString()
Returns a string representation of this object; useful for testing and debugging.Instance
withInstanceId(String instanceId)
The ID of the instance.
-
-
-
Constructor Detail
-
Instance
public Instance()
Default constructor for Instance object. Callers should use the setter or fluent setter (with...) methods to initialize the 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
- The ID of the instance.
-
-
Method Detail
-
setInstanceId
public void setInstanceId(String instanceId)
The ID of the instance.
- Parameters:
instanceId
- The ID of the instance.
-
getInstanceId
public String getInstanceId()
The ID of the instance.
- Returns:
- The ID of the instance.
-
withInstanceId
public Instance withInstanceId(String instanceId)
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.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-