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 ActiveInstanceclone()booleanequals(Object obj)StringgetInstanceId()The ID of the instance.StringgetInstanceType()The instance type.StringgetSpotInstanceRequestId()The ID of the Spot instance request.inthashCode()voidsetInstanceId(String instanceId)The ID of the instance.voidsetInstanceType(String instanceType)The instance type.voidsetSpotInstanceRequestId(String spotInstanceRequestId)The ID of the Spot instance request.StringtoString()Returns a string representation of this object; useful for testing and debugging.ActiveInstancewithInstanceId(String instanceId)The ID of the instance.ActiveInstancewithInstanceType(String instanceType)The instance type.ActiveInstancewithSpotInstanceRequestId(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ActiveInstance clone()
-
-