public class ActiveInstance
extends java.lang.Object
implements java.io.Serializable
Describes a running instance in a Spot fleet.
| Constructor and Description |
|---|
ActiveInstance() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public java.lang.String getInstanceType()
public void setInstanceType(java.lang.String instanceType)
instanceType - The instance type.public ActiveInstance withInstanceType(java.lang.String instanceType)
Returns a reference to this object so that method calls can be chained together.
instanceType - The instance type.public java.lang.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId - The ID of the instance.public ActiveInstance withInstanceId(java.lang.String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId - The ID of the instance.public java.lang.String getSpotInstanceRequestId()
public void setSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
spotInstanceRequestId - The ID of the Spot instance request.public ActiveInstance withSpotInstanceRequestId(java.lang.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 java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.