Package com.amazonaws.services.ec2.model
Class ActiveInstance
- java.lang.Object
-
- com.amazonaws.services.ec2.model.ActiveInstance
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ActiveInstance extends Object implements Serializable, Cloneable
Describes a running instance in a Spot fleet.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActiveInstance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
setInstanceType
public void setInstanceType(String instanceType)
The instance type.
- Parameters:
instanceType
- The instance type.
-
getInstanceType
public String getInstanceType()
The instance type.
- Returns:
- The instance type.
-
withInstanceType
public ActiveInstance withInstanceType(String instanceType)
The instance type.
- Parameters:
instanceType
- The instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceId
public void setInstanceId(String instanceId)
The ID of the instance.
- Parameters:
instanceId
- The ID of the instance.
-
getInstanceId
public String getInstanceId()
The ID of the instance.
- Returns:
- The ID of the instance.
-
withInstanceId
public ActiveInstance withInstanceId(String instanceId)
The ID of the instance.
- Parameters:
instanceId
- The ID of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSpotInstanceRequestId
public void setSpotInstanceRequestId(String spotInstanceRequestId)
The ID of the Spot instance request.
- Parameters:
spotInstanceRequestId
- The ID of the Spot instance request.
-
getSpotInstanceRequestId
public String getSpotInstanceRequestId()
The ID of the Spot instance request.
- Returns:
- The ID of the Spot instance request.
-
withSpotInstanceRequestId
public ActiveInstance withSpotInstanceRequestId(String spotInstanceRequestId)
The ID of the Spot instance request.
- Parameters:
spotInstanceRequestId
- The ID of the Spot instance request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ActiveInstance clone()
-
-