@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 |
getInstanceHealth()
The health status of the instance.
|
String |
getInstanceId()
The ID of the instance.
|
String |
getInstanceType()
The instance type.
|
String |
getSpotInstanceRequestId()
The ID of the Spot instance request.
|
int |
hashCode() |
void |
setInstanceHealth(InstanceHealthStatus instanceHealth)
The health status of the instance.
|
void |
setInstanceHealth(String instanceHealth)
The health status of the instance.
|
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 |
withInstanceHealth(InstanceHealthStatus instanceHealth)
The health status of the instance.
|
ActiveInstance |
withInstanceHealth(String instanceHealth)
The health status of the instance.
|
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 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 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 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 void setInstanceHealth(String instanceHealth)
The health status of the instance. If the status of either the instance status check or the system status check
is impaired
, the health status of the instance is unhealthy
. Otherwise, the health
status is healthy
.
instanceHealth
- The health status of the instance. If the status of either the instance status check or the system status
check is impaired
, the health status of the instance is unhealthy
. Otherwise,
the health status is healthy
.InstanceHealthStatus
public String getInstanceHealth()
The health status of the instance. If the status of either the instance status check or the system status check
is impaired
, the health status of the instance is unhealthy
. Otherwise, the health
status is healthy
.
impaired
, the health status of the instance is unhealthy
. Otherwise,
the health status is healthy
.InstanceHealthStatus
public ActiveInstance withInstanceHealth(String instanceHealth)
The health status of the instance. If the status of either the instance status check or the system status check
is impaired
, the health status of the instance is unhealthy
. Otherwise, the health
status is healthy
.
instanceHealth
- The health status of the instance. If the status of either the instance status check or the system status
check is impaired
, the health status of the instance is unhealthy
. Otherwise,
the health status is healthy
.InstanceHealthStatus
public void setInstanceHealth(InstanceHealthStatus instanceHealth)
The health status of the instance. If the status of either the instance status check or the system status check
is impaired
, the health status of the instance is unhealthy
. Otherwise, the health
status is healthy
.
instanceHealth
- The health status of the instance. If the status of either the instance status check or the system status
check is impaired
, the health status of the instance is unhealthy
. Otherwise,
the health status is healthy
.InstanceHealthStatus
public ActiveInstance withInstanceHealth(InstanceHealthStatus instanceHealth)
The health status of the instance. If the status of either the instance status check or the system status check
is impaired
, the health status of the instance is unhealthy
. Otherwise, the health
status is healthy
.
instanceHealth
- The health status of the instance. If the status of either the instance status check or the system status
check is impaired
, the health status of the instance is unhealthy
. Otherwise,
the health status is healthy
.InstanceHealthStatus
public String toString()
toString
in class Object
Object.toString()
public ActiveInstance clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.