Class SpotInstanceRequest
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a Spot instance request.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
If you specified a duration and your Spot instance request was fulfilled, this is the fixed hourly price in effect for the Spot instance while it runs.The Availability Zone group.The duration for the Spot instance, in minutes.The date and time when the Spot instance request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).getFault()
The fault codes for the Spot instance request, if any.The instance ID, if an instance has been launched to fulfill the Spot instance request.The Availability Zone in which the bid is launched.The instance launch group.Additional information for launching instances.The product description associated with the Spot instance.The ID of the Spot instance request.The maximum hourly price (bid) for the Spot instance launched to fulfill the request.getState()
The state of the Spot instance request.The status code and status message describing the Spot instance request.getTags()
Any tags assigned to the resource.getType()
The Spot instance request type.The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).The end date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).int
hashCode()
void
setActualBlockHourlyPrice
(String actualBlockHourlyPrice) If you specified a duration and your Spot instance request was fulfilled, this is the fixed hourly price in effect for the Spot instance while it runs.void
setAvailabilityZoneGroup
(String availabilityZoneGroup) The Availability Zone group.void
setBlockDurationMinutes
(Integer blockDurationMinutes) The duration for the Spot instance, in minutes.void
setCreateTime
(Date createTime) The date and time when the Spot instance request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).void
setFault
(SpotInstanceStateFault fault) The fault codes for the Spot instance request, if any.void
setInstanceId
(String instanceId) The instance ID, if an instance has been launched to fulfill the Spot instance request.void
setLaunchedAvailabilityZone
(String launchedAvailabilityZone) The Availability Zone in which the bid is launched.void
setLaunchGroup
(String launchGroup) The instance launch group.void
setLaunchSpecification
(LaunchSpecification launchSpecification) Additional information for launching instances.void
setProductDescription
(RIProductDescription productDescription) The product description associated with the Spot instance.void
setProductDescription
(String productDescription) The product description associated with the Spot instance.void
setSpotInstanceRequestId
(String spotInstanceRequestId) The ID of the Spot instance request.void
setSpotPrice
(String spotPrice) The maximum hourly price (bid) for the Spot instance launched to fulfill the request.void
setState
(SpotInstanceState state) The state of the Spot instance request.void
The state of the Spot instance request.void
setStatus
(SpotInstanceStatus status) The status code and status message describing the Spot instance request.void
setTags
(Collection<Tag> tags) Any tags assigned to the resource.void
setType
(SpotInstanceType type) The Spot instance request type.void
The Spot instance request type.void
setValidFrom
(Date validFrom) The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).void
setValidUntil
(Date validUntil) The end date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).toString()
Returns a string representation of this object; useful for testing and debugging.withActualBlockHourlyPrice
(String actualBlockHourlyPrice) If you specified a duration and your Spot instance request was fulfilled, this is the fixed hourly price in effect for the Spot instance while it runs.withAvailabilityZoneGroup
(String availabilityZoneGroup) The Availability Zone group.withBlockDurationMinutes
(Integer blockDurationMinutes) The duration for the Spot instance, in minutes.withCreateTime
(Date createTime) The date and time when the Spot instance request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).withFault
(SpotInstanceStateFault fault) The fault codes for the Spot instance request, if any.withInstanceId
(String instanceId) The instance ID, if an instance has been launched to fulfill the Spot instance request.withLaunchedAvailabilityZone
(String launchedAvailabilityZone) The Availability Zone in which the bid is launched.withLaunchGroup
(String launchGroup) The instance launch group.withLaunchSpecification
(LaunchSpecification launchSpecification) Additional information for launching instances.withProductDescription
(RIProductDescription productDescription) The product description associated with the Spot instance.withProductDescription
(String productDescription) The product description associated with the Spot instance.withSpotInstanceRequestId
(String spotInstanceRequestId) The ID of the Spot instance request.withSpotPrice
(String spotPrice) The maximum hourly price (bid) for the Spot instance launched to fulfill the request.withState
(SpotInstanceState state) The state of the Spot instance request.The state of the Spot instance request.withStatus
(SpotInstanceStatus status) The status code and status message describing the Spot instance request.Any tags assigned to the resource.withTags
(Collection<Tag> tags) Any tags assigned to the resource.withType
(SpotInstanceType type) The Spot instance request type.The Spot instance request type.withValidFrom
(Date validFrom) The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).withValidUntil
(Date validUntil) The end date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
-
Constructor Details
-
SpotInstanceRequest
public SpotInstanceRequest()
-
-
Method Details
-
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.
-
setSpotPrice
The maximum hourly price (bid) for the Spot instance launched to fulfill the request.
- Parameters:
spotPrice
- The maximum hourly price (bid) for the Spot instance launched to fulfill the request.
-
getSpotPrice
The maximum hourly price (bid) for the Spot instance launched to fulfill the request.
- Returns:
- The maximum hourly price (bid) for the Spot instance launched to fulfill the request.
-
withSpotPrice
The maximum hourly price (bid) for the Spot instance launched to fulfill the request.
- Parameters:
spotPrice
- The maximum hourly price (bid) for the Spot instance launched to fulfill the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setType
The Spot instance request type.
- Parameters:
type
- The Spot instance request type.- See Also:
-
getType
The Spot instance request type.
- Returns:
- The Spot instance request type.
- See Also:
-
withType
The Spot instance request type.
- Parameters:
type
- The Spot instance request type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setType
The Spot instance request type.
- Parameters:
type
- The Spot instance request type.- See Also:
-
withType
The Spot instance request type.
- Parameters:
type
- The Spot instance request type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setState
The state of the Spot instance request. Spot bid status information can help you track your Spot instance requests. For more information, see Spot Bid Status in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
state
- The state of the Spot instance request. Spot bid status information can help you track your Spot instance requests. For more information, see Spot Bid Status in the Amazon Elastic Compute Cloud User Guide.- See Also:
-
getState
The state of the Spot instance request. Spot bid status information can help you track your Spot instance requests. For more information, see Spot Bid Status in the Amazon Elastic Compute Cloud User Guide.
- Returns:
- The state of the Spot instance request. Spot bid status information can help you track your Spot instance requests. For more information, see Spot Bid Status in the Amazon Elastic Compute Cloud User Guide.
- See Also:
-
withState
The state of the Spot instance request. Spot bid status information can help you track your Spot instance requests. For more information, see Spot Bid Status in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
state
- The state of the Spot instance request. Spot bid status information can help you track your Spot instance requests. For more information, see Spot Bid Status in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setState
The state of the Spot instance request. Spot bid status information can help you track your Spot instance requests. For more information, see Spot Bid Status in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
state
- The state of the Spot instance request. Spot bid status information can help you track your Spot instance requests. For more information, see Spot Bid Status in the Amazon Elastic Compute Cloud User Guide.- See Also:
-
withState
The state of the Spot instance request. Spot bid status information can help you track your Spot instance requests. For more information, see Spot Bid Status in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
state
- The state of the Spot instance request. Spot bid status information can help you track your Spot instance requests. For more information, see Spot Bid Status in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setFault
The fault codes for the Spot instance request, if any.
- Parameters:
fault
- The fault codes for the Spot instance request, if any.
-
getFault
The fault codes for the Spot instance request, if any.
- Returns:
- The fault codes for the Spot instance request, if any.
-
withFault
The fault codes for the Spot instance request, if any.
- Parameters:
fault
- The fault codes for the Spot instance request, if any.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
The status code and status message describing the Spot instance request.
- Parameters:
status
- The status code and status message describing the Spot instance request.
-
getStatus
The status code and status message describing the Spot instance request.
- Returns:
- The status code and status message describing the Spot instance request.
-
withStatus
The status code and status message describing the Spot instance request.
- Parameters:
status
- The status code and status message describing the Spot instance request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValidFrom
The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The request becomes active at this date and time.
- Parameters:
validFrom
- The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The request becomes active at this date and time.
-
getValidFrom
The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The request becomes active at this date and time.
- Returns:
- The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The request becomes active at this date and time.
-
withValidFrom
The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The request becomes active at this date and time.
- Parameters:
validFrom
- The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The request becomes active at this date and time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValidUntil
The end date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). If this is a one-time request, it remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date is reached.
- Parameters:
validUntil
- The end date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). If this is a one-time request, it remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date is reached.
-
getValidUntil
The end date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). If this is a one-time request, it remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date is reached.
- Returns:
- The end date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). If this is a one-time request, it remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date is reached.
-
withValidUntil
The end date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). If this is a one-time request, it remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date is reached.
- Parameters:
validUntil
- The end date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). If this is a one-time request, it remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date is reached.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLaunchGroup
The instance launch group. Launch groups are Spot instances that launch together and terminate together.
- Parameters:
launchGroup
- The instance launch group. Launch groups are Spot instances that launch together and terminate together.
-
getLaunchGroup
The instance launch group. Launch groups are Spot instances that launch together and terminate together.
- Returns:
- The instance launch group. Launch groups are Spot instances that launch together and terminate together.
-
withLaunchGroup
The instance launch group. Launch groups are Spot instances that launch together and terminate together.
- Parameters:
launchGroup
- The instance launch group. Launch groups are Spot instances that launch together and terminate together.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAvailabilityZoneGroup
The Availability Zone group. If you specify the same Availability Zone group for all Spot instance requests, all Spot instances are launched in the same Availability Zone.
- Parameters:
availabilityZoneGroup
- The Availability Zone group. If you specify the same Availability Zone group for all Spot instance requests, all Spot instances are launched in the same Availability Zone.
-
getAvailabilityZoneGroup
The Availability Zone group. If you specify the same Availability Zone group for all Spot instance requests, all Spot instances are launched in the same Availability Zone.
- Returns:
- The Availability Zone group. If you specify the same Availability Zone group for all Spot instance requests, all Spot instances are launched in the same Availability Zone.
-
withAvailabilityZoneGroup
The Availability Zone group. If you specify the same Availability Zone group for all Spot instance requests, all Spot instances are launched in the same Availability Zone.
- Parameters:
availabilityZoneGroup
- The Availability Zone group. If you specify the same Availability Zone group for all Spot instance requests, all Spot instances are launched in the same Availability Zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLaunchSpecification
Additional information for launching instances.
- Parameters:
launchSpecification
- Additional information for launching instances.
-
getLaunchSpecification
Additional information for launching instances.
- Returns:
- Additional information for launching instances.
-
withLaunchSpecification
Additional information for launching instances.
- Parameters:
launchSpecification
- Additional information for launching instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceId
The instance ID, if an instance has been launched to fulfill the Spot instance request.
- Parameters:
instanceId
- The instance ID, if an instance has been launched to fulfill the Spot instance request.
-
getInstanceId
The instance ID, if an instance has been launched to fulfill the Spot instance request.
- Returns:
- The instance ID, if an instance has been launched to fulfill the Spot instance request.
-
withInstanceId
The instance ID, if an instance has been launched to fulfill the Spot instance request.
- Parameters:
instanceId
- The instance ID, if an instance has been launched to fulfill the Spot instance request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreateTime
The date and time when the Spot instance request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
- Parameters:
createTime
- The date and time when the Spot instance request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
-
getCreateTime
The date and time when the Spot instance request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
- Returns:
- The date and time when the Spot instance request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
-
withCreateTime
The date and time when the Spot instance request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
- Parameters:
createTime
- The date and time when the Spot instance request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setProductDescription
The product description associated with the Spot instance.
- Parameters:
productDescription
- The product description associated with the Spot instance.- See Also:
-
getProductDescription
The product description associated with the Spot instance.
- Returns:
- The product description associated with the Spot instance.
- See Also:
-
withProductDescription
The product description associated with the Spot instance.
- Parameters:
productDescription
- The product description associated with the Spot instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setProductDescription
The product description associated with the Spot instance.
- Parameters:
productDescription
- The product description associated with the Spot instance.- See Also:
-
withProductDescription
The product description associated with the Spot instance.
- Parameters:
productDescription
- The product description associated with the Spot instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setBlockDurationMinutes
The duration for the Spot instance, in minutes.
- Parameters:
blockDurationMinutes
- The duration for the Spot instance, in minutes.
-
getBlockDurationMinutes
The duration for the Spot instance, in minutes.
- Returns:
- The duration for the Spot instance, in minutes.
-
withBlockDurationMinutes
The duration for the Spot instance, in minutes.
- Parameters:
blockDurationMinutes
- The duration for the Spot instance, in minutes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setActualBlockHourlyPrice
If you specified a duration and your Spot instance request was fulfilled, this is the fixed hourly price in effect for the Spot instance while it runs.
- Parameters:
actualBlockHourlyPrice
- If you specified a duration and your Spot instance request was fulfilled, this is the fixed hourly price in effect for the Spot instance while it runs.
-
getActualBlockHourlyPrice
If you specified a duration and your Spot instance request was fulfilled, this is the fixed hourly price in effect for the Spot instance while it runs.
- Returns:
- If you specified a duration and your Spot instance request was fulfilled, this is the fixed hourly price in effect for the Spot instance while it runs.
-
withActualBlockHourlyPrice
If you specified a duration and your Spot instance request was fulfilled, this is the fixed hourly price in effect for the Spot instance while it runs.
- Parameters:
actualBlockHourlyPrice
- If you specified a duration and your Spot instance request was fulfilled, this is the fixed hourly price in effect for the Spot instance while it runs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTags
Any tags assigned to the resource.
- Returns:
- Any tags assigned to the resource.
-
setTags
Any tags assigned to the resource.
- Parameters:
tags
- Any tags assigned to the resource.
-
withTags
Any tags assigned to the resource.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
orwithTags(java.util.Collection)
if you want to override the existing values.- Parameters:
tags
- Any tags assigned to the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
Any tags assigned to the resource.
- Parameters:
tags
- Any tags assigned to the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLaunchedAvailabilityZone
The Availability Zone in which the bid is launched.
- Parameters:
launchedAvailabilityZone
- The Availability Zone in which the bid is launched.
-
getLaunchedAvailabilityZone
The Availability Zone in which the bid is launched.
- Returns:
- The Availability Zone in which the bid is launched.
-
withLaunchedAvailabilityZone
The Availability Zone in which the bid is launched.
- Parameters:
launchedAvailabilityZone
- The Availability Zone in which the bid is launched.- 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
-