public class ActiveInstance
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a running instance in a Spot fleet.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
instanceId
The ID of the instance.
|
private java.lang.String |
instanceType
The instance type.
|
private java.lang.String |
spotInstanceRequestId
The ID of the Spot instance request.
|
Constructor and Description |
---|
ActiveInstance() |
Modifier and Type | Method and Description |
---|---|
ActiveInstance |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getInstanceId()
The ID of the instance.
|
java.lang.String |
getInstanceType()
The instance type.
|
java.lang.String |
getSpotInstanceRequestId()
The ID of the Spot instance request.
|
int |
hashCode() |
void |
setInstanceId(java.lang.String instanceId)
The ID of the instance.
|
void |
setInstanceType(java.lang.String instanceType)
The instance type.
|
void |
setSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
The ID of the Spot instance request.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ActiveInstance |
withInstanceId(java.lang.String instanceId)
The ID of the instance.
|
ActiveInstance |
withInstanceType(java.lang.String instanceType)
The instance type.
|
ActiveInstance |
withSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
The ID of the Spot instance request.
|
private java.lang.String instanceType
The instance type.
private java.lang.String instanceId
The ID of the instance.
private java.lang.String spotInstanceRequestId
The ID of the Spot instance request.
public void setInstanceType(java.lang.String instanceType)
The instance type.
instanceType
- The instance type.public java.lang.String getInstanceType()
The instance type.
public ActiveInstance withInstanceType(java.lang.String instanceType)
The instance type.
instanceType
- The instance type.public void setInstanceId(java.lang.String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public java.lang.String getInstanceId()
The ID of the instance.
public ActiveInstance withInstanceId(java.lang.String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public void setSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
The ID of the Spot instance request.
spotInstanceRequestId
- The ID of the Spot instance request.public java.lang.String getSpotInstanceRequestId()
The ID of the Spot instance request.
public ActiveInstance withSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
The ID of the Spot instance request.
spotInstanceRequestId
- The ID of the Spot instance request.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ActiveInstance clone()
clone
in class java.lang.Object