@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SpotInstanceRequest extends Object implements Serializable, Cloneable
Describes a Spot instance request.
Constructor and Description |
---|
SpotInstanceRequest() |
Modifier and Type | Method and Description |
---|---|
SpotInstanceRequest |
clone() |
boolean |
equals(Object obj) |
String |
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.
|
String |
getAvailabilityZoneGroup()
The Availability Zone group.
|
Integer |
getBlockDurationMinutes()
The duration for the Spot instance, in minutes.
|
Date |
getCreateTime()
The date and time when the Spot instance request was created, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
SpotInstanceStateFault |
getFault()
The fault codes for the Spot instance request, if any.
|
String |
getInstanceId()
The instance ID, if an instance has been launched to fulfill the Spot instance request.
|
String |
getInstanceInterruptionBehavior()
Indicates whether a Spot instance stops or terminates when it is interrupted.
|
String |
getLaunchedAvailabilityZone()
The Availability Zone in which the bid is launched.
|
String |
getLaunchGroup()
The instance launch group.
|
LaunchSpecification |
getLaunchSpecification()
Additional information for launching instances.
|
String |
getProductDescription()
The product description associated with the Spot instance.
|
String |
getSpotInstanceRequestId()
The ID of the Spot instance request.
|
String |
getSpotPrice()
The maximum hourly price (bid) for the Spot instance launched to fulfill the request.
|
String |
getState()
The state of the Spot instance request.
|
SpotInstanceStatus |
getStatus()
The status code and status message describing the Spot instance request.
|
List<Tag> |
getTags()
Any tags assigned to the resource.
|
String |
getType()
The Spot instance request type.
|
Date |
getValidFrom()
The start date of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
Date |
getValidUntil()
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 |
setInstanceInterruptionBehavior(InstanceInterruptionBehavior instanceInterruptionBehavior)
Indicates whether a Spot instance stops or terminates when it is interrupted.
|
void |
setInstanceInterruptionBehavior(String instanceInterruptionBehavior)
Indicates whether a Spot instance stops or terminates when it is interrupted.
|
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 |
setState(String state)
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 |
setType(String type)
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).
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
SpotInstanceRequest |
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.
|
SpotInstanceRequest |
withAvailabilityZoneGroup(String availabilityZoneGroup)
The Availability Zone group.
|
SpotInstanceRequest |
withBlockDurationMinutes(Integer blockDurationMinutes)
The duration for the Spot instance, in minutes.
|
SpotInstanceRequest |
withCreateTime(Date createTime)
The date and time when the Spot instance request was created, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
SpotInstanceRequest |
withFault(SpotInstanceStateFault fault)
The fault codes for the Spot instance request, if any.
|
SpotInstanceRequest |
withInstanceId(String instanceId)
The instance ID, if an instance has been launched to fulfill the Spot instance request.
|
SpotInstanceRequest |
withInstanceInterruptionBehavior(InstanceInterruptionBehavior instanceInterruptionBehavior)
Indicates whether a Spot instance stops or terminates when it is interrupted.
|
SpotInstanceRequest |
withInstanceInterruptionBehavior(String instanceInterruptionBehavior)
Indicates whether a Spot instance stops or terminates when it is interrupted.
|
SpotInstanceRequest |
withLaunchedAvailabilityZone(String launchedAvailabilityZone)
The Availability Zone in which the bid is launched.
|
SpotInstanceRequest |
withLaunchGroup(String launchGroup)
The instance launch group.
|
SpotInstanceRequest |
withLaunchSpecification(LaunchSpecification launchSpecification)
Additional information for launching instances.
|
SpotInstanceRequest |
withProductDescription(RIProductDescription productDescription)
The product description associated with the Spot instance.
|
SpotInstanceRequest |
withProductDescription(String productDescription)
The product description associated with the Spot instance.
|
SpotInstanceRequest |
withSpotInstanceRequestId(String spotInstanceRequestId)
The ID of the Spot instance request.
|
SpotInstanceRequest |
withSpotPrice(String spotPrice)
The maximum hourly price (bid) for the Spot instance launched to fulfill the request.
|
SpotInstanceRequest |
withState(SpotInstanceState state)
The state of the Spot instance request.
|
SpotInstanceRequest |
withState(String state)
The state of the Spot instance request.
|
SpotInstanceRequest |
withStatus(SpotInstanceStatus status)
The status code and status message describing the Spot instance request.
|
SpotInstanceRequest |
withTags(Collection<Tag> tags)
Any tags assigned to the resource.
|
SpotInstanceRequest |
withTags(Tag... tags)
Any tags assigned to the resource.
|
SpotInstanceRequest |
withType(SpotInstanceType type)
The Spot instance request type.
|
SpotInstanceRequest |
withType(String type)
The Spot instance request type.
|
SpotInstanceRequest |
withValidFrom(Date validFrom)
The start date of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
SpotInstanceRequest |
withValidUntil(Date validUntil)
The end date of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
public 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.
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.public String 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.
public SpotInstanceRequest 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.
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.public void setAvailabilityZoneGroup(String 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.
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.public String 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.
public SpotInstanceRequest withAvailabilityZoneGroup(String 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.
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.public void setBlockDurationMinutes(Integer blockDurationMinutes)
The duration for the Spot instance, in minutes.
blockDurationMinutes
- The duration for the Spot instance, in minutes.public Integer getBlockDurationMinutes()
The duration for the Spot instance, in minutes.
public SpotInstanceRequest withBlockDurationMinutes(Integer blockDurationMinutes)
The duration for the Spot instance, in minutes.
blockDurationMinutes
- The duration for the Spot instance, in minutes.public 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).
createTime
- The date and time when the Spot instance request was created, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).public Date getCreateTime()
The date and time when the Spot instance request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
public SpotInstanceRequest withCreateTime(Date createTime)
The date and time when the Spot instance request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
createTime
- The date and time when the Spot instance request was created, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).public void setFault(SpotInstanceStateFault fault)
The fault codes for the Spot instance request, if any.
fault
- The fault codes for the Spot instance request, if any.public SpotInstanceStateFault getFault()
The fault codes for the Spot instance request, if any.
public SpotInstanceRequest withFault(SpotInstanceStateFault fault)
The fault codes for the Spot instance request, if any.
fault
- The fault codes for the Spot instance request, if any.public void setInstanceId(String instanceId)
The instance ID, if an instance has been launched to fulfill the Spot instance request.
instanceId
- The instance ID, if an instance has been launched to fulfill the Spot instance request.public String getInstanceId()
The instance ID, if an instance has been launched to fulfill the Spot instance request.
public SpotInstanceRequest withInstanceId(String instanceId)
The instance ID, if an instance has been launched to fulfill the Spot instance request.
instanceId
- The instance ID, if an instance has been launched to fulfill the Spot instance request.public void setLaunchGroup(String launchGroup)
The instance launch group. Launch groups are Spot instances that launch together and terminate together.
launchGroup
- The instance launch group. Launch groups are Spot instances that launch together and terminate together.public String getLaunchGroup()
The instance launch group. Launch groups are Spot instances that launch together and terminate together.
public SpotInstanceRequest withLaunchGroup(String launchGroup)
The instance launch group. Launch groups are Spot instances that launch together and terminate together.
launchGroup
- The instance launch group. Launch groups are Spot instances that launch together and terminate together.public void setLaunchSpecification(LaunchSpecification launchSpecification)
Additional information for launching instances.
launchSpecification
- Additional information for launching instances.public LaunchSpecification getLaunchSpecification()
Additional information for launching instances.
public SpotInstanceRequest withLaunchSpecification(LaunchSpecification launchSpecification)
Additional information for launching instances.
launchSpecification
- Additional information for launching instances.public void setLaunchedAvailabilityZone(String launchedAvailabilityZone)
The Availability Zone in which the bid is launched.
launchedAvailabilityZone
- The Availability Zone in which the bid is launched.public String getLaunchedAvailabilityZone()
The Availability Zone in which the bid is launched.
public SpotInstanceRequest withLaunchedAvailabilityZone(String launchedAvailabilityZone)
The Availability Zone in which the bid is launched.
launchedAvailabilityZone
- The Availability Zone in which the bid is launched.public void setProductDescription(String productDescription)
The product description associated with the Spot instance.
productDescription
- The product description associated with the Spot instance.RIProductDescription
public String getProductDescription()
The product description associated with the Spot instance.
RIProductDescription
public SpotInstanceRequest withProductDescription(String productDescription)
The product description associated with the Spot instance.
productDescription
- The product description associated with the Spot instance.RIProductDescription
public void setProductDescription(RIProductDescription productDescription)
The product description associated with the Spot instance.
productDescription
- The product description associated with the Spot instance.RIProductDescription
public SpotInstanceRequest withProductDescription(RIProductDescription productDescription)
The product description associated with the Spot instance.
productDescription
- The product description associated with the Spot instance.RIProductDescription
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 SpotInstanceRequest withSpotInstanceRequestId(String spotInstanceRequestId)
The ID of the Spot instance request.
spotInstanceRequestId
- The ID of the Spot instance request.public void setSpotPrice(String spotPrice)
The maximum hourly price (bid) for the Spot instance launched to fulfill the request.
spotPrice
- The maximum hourly price (bid) for the Spot instance launched to fulfill the request.public String getSpotPrice()
The maximum hourly price (bid) for the Spot instance launched to fulfill the request.
public SpotInstanceRequest withSpotPrice(String spotPrice)
The maximum hourly price (bid) for the Spot instance launched to fulfill the request.
spotPrice
- The maximum hourly price (bid) for the Spot instance launched to fulfill the request.public void setState(String 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.
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.SpotInstanceState
public String 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.
SpotInstanceState
public SpotInstanceRequest withState(String 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.
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.SpotInstanceState
public void setState(SpotInstanceState 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.
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.SpotInstanceState
public SpotInstanceRequest withState(SpotInstanceState 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.
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.SpotInstanceState
public void setStatus(SpotInstanceStatus status)
The status code and status message describing the Spot instance request.
status
- The status code and status message describing the Spot instance request.public SpotInstanceStatus getStatus()
The status code and status message describing the Spot instance request.
public SpotInstanceRequest withStatus(SpotInstanceStatus status)
The status code and status message describing the Spot instance request.
status
- The status code and status message describing the Spot instance request.public List<Tag> getTags()
Any tags assigned to the resource.
public void setTags(Collection<Tag> tags)
Any tags assigned to the resource.
tags
- Any tags assigned to the resource.public SpotInstanceRequest withTags(Tag... tags)
Any tags assigned to the resource.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Any tags assigned to the resource.public SpotInstanceRequest withTags(Collection<Tag> tags)
Any tags assigned to the resource.
tags
- Any tags assigned to the resource.public void setType(String type)
The Spot instance request type.
type
- The Spot instance request type.SpotInstanceType
public String getType()
The Spot instance request type.
SpotInstanceType
public SpotInstanceRequest withType(String type)
The Spot instance request type.
type
- The Spot instance request type.SpotInstanceType
public void setType(SpotInstanceType type)
The Spot instance request type.
type
- The Spot instance request type.SpotInstanceType
public SpotInstanceRequest withType(SpotInstanceType type)
The Spot instance request type.
type
- The Spot instance request type.SpotInstanceType
public void setValidFrom(Date 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.
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.public Date 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.
public SpotInstanceRequest withValidFrom(Date 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.
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.public void setValidUntil(Date 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.
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.public Date 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.
public SpotInstanceRequest withValidUntil(Date 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.
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.public void setInstanceInterruptionBehavior(String instanceInterruptionBehavior)
Indicates whether a Spot instance stops or terminates when it is interrupted.
instanceInterruptionBehavior
- Indicates whether a Spot instance stops or terminates when it is interrupted.InstanceInterruptionBehavior
public String getInstanceInterruptionBehavior()
Indicates whether a Spot instance stops or terminates when it is interrupted.
InstanceInterruptionBehavior
public SpotInstanceRequest withInstanceInterruptionBehavior(String instanceInterruptionBehavior)
Indicates whether a Spot instance stops or terminates when it is interrupted.
instanceInterruptionBehavior
- Indicates whether a Spot instance stops or terminates when it is interrupted.InstanceInterruptionBehavior
public void setInstanceInterruptionBehavior(InstanceInterruptionBehavior instanceInterruptionBehavior)
Indicates whether a Spot instance stops or terminates when it is interrupted.
instanceInterruptionBehavior
- Indicates whether a Spot instance stops or terminates when it is interrupted.InstanceInterruptionBehavior
public SpotInstanceRequest withInstanceInterruptionBehavior(InstanceInterruptionBehavior instanceInterruptionBehavior)
Indicates whether a Spot instance stops or terminates when it is interrupted.
instanceInterruptionBehavior
- Indicates whether a Spot instance stops or terminates when it is interrupted.InstanceInterruptionBehavior
public String toString()
toString
in class Object
Object.toString()
public SpotInstanceRequest clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.