Package com.amazonaws.services.ec2.model
Class ActiveInstance
java.lang.Object
com.amazonaws.services.ec2.model.ActiveInstance
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a running instance in a Spot fleet.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The ID of the instance.The instance type.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.toString()
Returns a string representation of this object; useful for testing and debugging.withInstanceId
(String instanceId) The ID of the instance.withInstanceType
(String instanceType) The instance type.withSpotInstanceRequestId
(String spotInstanceRequestId) The ID of the Spot instance request.
-
Constructor Details
-
ActiveInstance
public ActiveInstance()
-
-
Method Details
-
setInstanceType
The instance type.
- Parameters:
instanceType
- The instance type.
-
getInstanceType
The instance type.
- Returns:
- The instance type.
-
withInstanceType
The instance type.
- Parameters:
instanceType
- The instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceId
The ID of the instance.
- Parameters:
instanceId
- The ID of the instance.
-
getInstanceId
The ID of the instance.
- Returns:
- The ID of the instance.
-
withInstanceId
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
The ID of the Spot instance request.
- Parameters:
spotInstanceRequestId
- The ID of the Spot instance request.
-
getSpotInstanceRequestId
The ID of the Spot instance request.
- Returns:
- The ID of the Spot instance request.
-
withSpotInstanceRequestId
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-