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 void setInstanceType(String instanceType)
The instance type.
instanceType
- The instance type.public String getInstanceType()
The instance type.
public ActiveInstance withInstanceType(String instanceType)
The instance type.
instanceType
- The instance type.public void setInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public String getInstanceId()
The ID of the instance.
public ActiveInstance withInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public void setSpotInstanceRequestId(String spotInstanceRequestId)
The ID of the Spot instance request.
spotInstanceRequestId
- The ID of the Spot instance request.public String getSpotInstanceRequestId()
The ID of the Spot instance request.
public ActiveInstance withSpotInstanceRequestId(String spotInstanceRequestId)
The ID of the Spot instance request.
spotInstanceRequestId
- The ID of the Spot instance request.public String toString()
toString
in class Object
Object.toString()
public ActiveInstance clone()
Copyright © 2016. All rights reserved.