public class ActiveInstance extends Object implements Serializable, Cloneable
Describes a running instance in a Spot fleet.
Constructor and Description |
---|
ActiveInstance() |
Modifier and Type | Method and Description |
---|---|
ActiveInstance |
clone() |
boolean |
equals(Object obj) |
String |
getInstanceId()
The ID of the instance.
|
String |
getInstanceType()
The instance type.
|
String |
getSpotInstanceRequestId()
The ID of the Spot Instance request.
|
int |
hashCode() |
void |
setInstanceId(String instanceId)
The ID of the instance.
|
void |
setInstanceType(String instanceType)
The instance type.
|
void |
setSpotInstanceRequestId(String spotInstanceRequestId)
The ID of the Spot Instance request.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ActiveInstance |
withInstanceId(String instanceId)
The ID of the instance.
|
ActiveInstance |
withInstanceType(String instanceType)
The instance type.
|
ActiveInstance |
withSpotInstanceRequestId(String spotInstanceRequestId)
The ID of the Spot Instance request.
|
public String getInstanceType()
public void setInstanceType(String instanceType)
instanceType
- The instance type.public ActiveInstance withInstanceType(String instanceType)
Returns a reference to this object so that method calls can be chained together.
instanceType
- The instance type.public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- The ID of the instance.public ActiveInstance withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- The ID of the instance.public String getSpotInstanceRequestId()
public void setSpotInstanceRequestId(String spotInstanceRequestId)
spotInstanceRequestId
- The ID of the Spot Instance request.public ActiveInstance withSpotInstanceRequestId(String spotInstanceRequestId)
Returns a reference to this object so that method calls can be chained together.
spotInstanceRequestId
- The ID of the Spot Instance request.public String toString()
toString
in class Object
Object.toString()
public ActiveInstance clone()
Copyright © 2015. All rights reserved.