|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.ec2.model.SpotInstanceRequest
public class SpotInstanceRequest
Describe a Spot Instance request.
Constructor Summary | |
---|---|
SpotInstanceRequest()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAvailabilityZoneGroup()
The Availability Zone group. |
java.util.Date |
getCreateTime()
The time stamp when the Spot Instance request was created. |
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 for any 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. |
java.util.Date |
getValidUntil()
The end date of the request. |
int |
hashCode()
|
void |
setAvailabilityZoneGroup(java.lang.String availabilityZoneGroup)
The Availability Zone group. |
void |
setCreateTime(java.util.Date createTime)
The time stamp when the Spot Instance request was created. |
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 for any 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. |
void |
setValidUntil(java.util.Date validUntil)
The end date of the request. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
SpotInstanceRequest |
withAvailabilityZoneGroup(java.lang.String availabilityZoneGroup)
The Availability Zone group. |
SpotInstanceRequest |
withCreateTime(java.util.Date createTime)
The time stamp when the Spot Instance request was created. |
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 for any 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. |
SpotInstanceRequest |
withValidUntil(java.util.Date validUntil)
The end date of the request. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SpotInstanceRequest()
Method Detail |
---|
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 for any 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 for any 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 information, see
Tracking
Spot Requests with Bid Status Codes 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 information, see
Tracking
Spot Requests with Bid Status Codes 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 information, see
Tracking
Spot Requests with Bid Status Codes 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 information, see
Tracking
Spot Requests with Bid Status Codes 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. If this is a one-time request, the
request becomes active at this date and time and remains active until
all instances launch, the request expires, or the request is canceled.
If the request is persistent, the request becomes active at this date
and time and remains active until it expires or is canceled.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. If this is a one-time request, the
request becomes active at this date and time and remains active until
all instances launch, the request expires, or the request is canceled.
If the request is persistent, the request becomes active at this date
and time and remains active until it expires or is canceled.
public java.util.Date getValidUntil()
public void setValidUntil(java.util.Date validUntil)
validUntil
- The end date of the request. If this is a one-time request, the
request 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. If this is a one-time request, the
request 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 time stamp when the Spot Instance request was created.public SpotInstanceRequest withCreateTime(java.util.Date createTime)
Returns a reference to this object so that method calls can be chained together.
createTime
- The time stamp when the Spot Instance request was created.
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.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
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |