public class SpotInstanceRequest
extends java.lang.Object
implements java.io.Serializable
Describes a Spot instance request.
Constructor and Description |
---|
SpotInstanceRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.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.
|
java.lang.String |
getAvailabilityZoneGroup()
The Availability Zone group.
|
java.lang.Integer |
getBlockDurationMinutes()
The duration for the Spot instance, in minutes.
|
java.util.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.
|
java.lang.String |
getInstanceId()
The instance ID, if an instance has been launched to fulfill the Spot
instance request.
|
java.lang.String |
getLaunchedAvailabilityZone()
The Availability Zone in which the bid is launched.
|
java.lang.String |
getLaunchGroup()
The instance launch group.
|
LaunchSpecification |
getLaunchSpecification()
Additional information for launching instances.
|
java.lang.String |
getProductDescription()
The product description associated with the Spot instance.
|
java.lang.String |
getSpotInstanceRequestId()
The ID of the Spot instance request.
|
java.lang.String |
getSpotPrice()
The maximum hourly price (bid) for the Spot instance launched to
fulfill the request.
|
java.lang.String |
getState()
The state of the Spot instance request.
|
SpotInstanceStatus |
getStatus()
The status code and status message describing the Spot instance
request.
|
java.util.List<Tag> |
getTags()
Any tags assigned to the resource.
|
java.lang.String |
getType()
The Spot instance request type.
|
java.util.Date |
getValidFrom()
The start date of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
java.util.Date |
getValidUntil()
The end date of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
int |
hashCode() |
void |
setActualBlockHourlyPrice(java.lang.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(java.lang.String availabilityZoneGroup)
The Availability Zone group.
|
void |
setBlockDurationMinutes(java.lang.Integer blockDurationMinutes)
The duration for the Spot instance, in minutes.
|
void |
setCreateTime(java.util.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(java.lang.String instanceId)
The instance ID, if an instance has been launched to fulfill the Spot
instance request.
|
void |
setLaunchedAvailabilityZone(java.lang.String launchedAvailabilityZone)
The Availability Zone in which the bid is launched.
|
void |
setLaunchGroup(java.lang.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(java.lang.String productDescription)
The product description associated with the Spot instance.
|
void |
setSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
The ID of the Spot instance request.
|
void |
setSpotPrice(java.lang.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(java.lang.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(java.util.Collection<Tag> tags)
Any tags assigned to the resource.
|
void |
setType(SpotInstanceType type)
The Spot instance request type.
|
void |
setType(java.lang.String type)
The Spot instance request type.
|
void |
setValidFrom(java.util.Date validFrom)
The start date of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
void |
setValidUntil(java.util.Date validUntil)
The end date of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SpotInstanceRequest |
withActualBlockHourlyPrice(java.lang.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(java.lang.String availabilityZoneGroup)
The Availability Zone group.
|
SpotInstanceRequest |
withBlockDurationMinutes(java.lang.Integer blockDurationMinutes)
The duration for the Spot instance, in minutes.
|
SpotInstanceRequest |
withCreateTime(java.util.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(java.lang.String instanceId)
The instance ID, if an instance has been launched to fulfill the Spot
instance request.
|
SpotInstanceRequest |
withLaunchedAvailabilityZone(java.lang.String launchedAvailabilityZone)
The Availability Zone in which the bid is launched.
|
SpotInstanceRequest |
withLaunchGroup(java.lang.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(java.lang.String productDescription)
The product description associated with the Spot instance.
|
SpotInstanceRequest |
withSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
The ID of the Spot instance request.
|
SpotInstanceRequest |
withSpotPrice(java.lang.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(java.lang.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(java.util.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(java.lang.String type)
The Spot instance request type.
|
SpotInstanceRequest |
withValidFrom(java.util.Date validFrom)
The start date of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
SpotInstanceRequest |
withValidUntil(java.util.Date validUntil)
The end date of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
public java.lang.String getSpotInstanceRequestId()
public void setSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
spotInstanceRequestId
- The ID of the Spot instance request.public SpotInstanceRequest withSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
Returns a reference to this object so that method calls can be chained together.
spotInstanceRequestId
- The ID of the Spot instance request.public java.lang.String getSpotPrice()
public void setSpotPrice(java.lang.String spotPrice)
spotPrice
- The maximum hourly price (bid) for the Spot instance launched to
fulfill the request.public SpotInstanceRequest withSpotPrice(java.lang.String spotPrice)
Returns a reference to this object so that method calls can be chained together.
spotPrice
- The maximum hourly price (bid) for the Spot instance launched to
fulfill the request.public java.lang.String getType()
Constraints:
Allowed Values: one-time, persistent
SpotInstanceType
public void setType(java.lang.String type)
Constraints:
Allowed Values: one-time, persistent
type
- The Spot instance request type.SpotInstanceType
public SpotInstanceRequest withType(java.lang.String type)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: one-time, persistent
type
- The Spot instance request type.SpotInstanceType
public void setType(SpotInstanceType type)
Constraints:
Allowed Values: one-time, persistent
type
- The Spot instance request type.SpotInstanceType
public SpotInstanceRequest withType(SpotInstanceType type)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: one-time, persistent
type
- The Spot instance request type.SpotInstanceType
public java.lang.String getState()
Constraints:
Allowed Values: open, active, closed, cancelled, failed
SpotInstanceState
public void setState(java.lang.String state)
Constraints:
Allowed Values: open, active, closed, cancelled, failed
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(java.lang.String state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: open, active, closed, cancelled, failed
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)
Constraints:
Allowed Values: open, active, closed, cancelled, failed
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)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: open, active, closed, cancelled, failed
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 SpotInstanceStateFault getFault()
public void setFault(SpotInstanceStateFault fault)
fault
- The fault codes for the Spot instance request, if any.public SpotInstanceRequest withFault(SpotInstanceStateFault fault)
Returns a reference to this object so that method calls can be chained together.
fault
- The fault codes for the Spot instance request, if any.public SpotInstanceStatus getStatus()
public void setStatus(SpotInstanceStatus status)
status
- The status code and status message describing the Spot instance
request.public SpotInstanceRequest withStatus(SpotInstanceStatus status)
Returns a reference to this object so that method calls can be chained together.
status
- The status code and status message describing the Spot instance
request.public java.util.Date getValidFrom()
public void setValidFrom(java.util.Date validFrom)
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 SpotInstanceRequest withValidFrom(java.util.Date validFrom)
Returns a reference to this object so that method calls can be chained together.
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 java.util.Date getValidUntil()
public void setValidUntil(java.util.Date validUntil)
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 SpotInstanceRequest withValidUntil(java.util.Date validUntil)
Returns a reference to this object so that method calls can be chained together.
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 java.lang.String getLaunchGroup()
public void setLaunchGroup(java.lang.String launchGroup)
launchGroup
- The instance launch group. Launch groups are Spot instances that
launch together and terminate together.public SpotInstanceRequest withLaunchGroup(java.lang.String launchGroup)
Returns a reference to this object so that method calls can be chained together.
launchGroup
- The instance launch group. Launch groups are Spot instances that
launch together and terminate together.public java.lang.String getAvailabilityZoneGroup()
public void setAvailabilityZoneGroup(java.lang.String availabilityZoneGroup)
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 SpotInstanceRequest withAvailabilityZoneGroup(java.lang.String availabilityZoneGroup)
Returns a reference to this object so that method calls can be chained together.
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 LaunchSpecification getLaunchSpecification()
public void setLaunchSpecification(LaunchSpecification launchSpecification)
launchSpecification
- Additional information for launching instances.public SpotInstanceRequest withLaunchSpecification(LaunchSpecification launchSpecification)
Returns a reference to this object so that method calls can be chained together.
launchSpecification
- Additional information for launching instances.public java.lang.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId
- The instance ID, if an instance has been launched to fulfill the Spot
instance request.public SpotInstanceRequest withInstanceId(java.lang.String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- The instance ID, if an instance has been launched to fulfill the Spot
instance request.public java.util.Date getCreateTime()
public void setCreateTime(java.util.Date createTime)
createTime
- The date and time when the Spot instance request was created, in UTC
format (for example,
YYYY-MM-DDTHH:MM:SSZ).public SpotInstanceRequest withCreateTime(java.util.Date createTime)
Returns a reference to this object so that method calls can be chained together.
createTime
- The date and time when the Spot instance request was created, in UTC
format (for example,
YYYY-MM-DDTHH:MM:SSZ).public java.lang.String getProductDescription()
Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
RIProductDescription
public void setProductDescription(java.lang.String productDescription)
Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
productDescription
- The product description associated with the Spot instance.RIProductDescription
public SpotInstanceRequest withProductDescription(java.lang.String productDescription)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
productDescription
- The product description associated with the Spot instance.RIProductDescription
public void setProductDescription(RIProductDescription productDescription)
Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
productDescription
- The product description associated with the Spot instance.RIProductDescription
public SpotInstanceRequest withProductDescription(RIProductDescription productDescription)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
productDescription
- The product description associated with the Spot instance.RIProductDescription
public java.lang.Integer getBlockDurationMinutes()
public void setBlockDurationMinutes(java.lang.Integer blockDurationMinutes)
blockDurationMinutes
- The duration for the Spot instance, in minutes.public SpotInstanceRequest withBlockDurationMinutes(java.lang.Integer blockDurationMinutes)
Returns a reference to this object so that method calls can be chained together.
blockDurationMinutes
- The duration for the Spot instance, in minutes.public java.lang.String getActualBlockHourlyPrice()
public void setActualBlockHourlyPrice(java.lang.String actualBlockHourlyPrice)
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 SpotInstanceRequest withActualBlockHourlyPrice(java.lang.String actualBlockHourlyPrice)
Returns a reference to this object so that method calls can be chained together.
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 java.util.List<Tag> getTags()
public void setTags(java.util.Collection<Tag> tags)
tags
- Any tags assigned to the resource.public SpotInstanceRequest withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
tags
- Any tags assigned to the resource.public SpotInstanceRequest withTags(java.util.Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- Any tags assigned to the resource.public java.lang.String getLaunchedAvailabilityZone()
public void setLaunchedAvailabilityZone(java.lang.String launchedAvailabilityZone)
launchedAvailabilityZone
- The Availability Zone in which the bid is launched.public SpotInstanceRequest withLaunchedAvailabilityZone(java.lang.String launchedAvailabilityZone)
Returns a reference to this object so that method calls can be chained together.
launchedAvailabilityZone
- The Availability Zone in which the bid is launched.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.