public class SpotInstanceRequest extends Object implements Serializable
Constructor and Description |
---|
SpotInstanceRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAvailabilityZoneGroup()
Returns the value of the AvailabilityZoneGroup property for this
object.
|
Date |
getCreateTime()
Returns the value of the CreateTime property for this object.
|
SpotInstanceStateFault |
getFault()
Returns the value of the Fault property for this object.
|
String |
getInstanceId()
Returns the value of the InstanceId property for this object.
|
String |
getLaunchedAvailabilityZone()
The Availability Zone in which the bid is launched.
|
String |
getLaunchGroup()
Returns the value of the LaunchGroup property for this object.
|
LaunchSpecification |
getLaunchSpecification()
The LaunchSpecificationType data type.
|
String |
getProductDescription()
Returns the value of the ProductDescription property for this object.
|
String |
getSpotInstanceRequestId()
Returns the value of the SpotInstanceRequestId property for this
object.
|
String |
getSpotPrice()
Returns the value of the SpotPrice property for this object.
|
String |
getState()
Returns the value of the State property for this object.
|
SpotInstanceStatus |
getStatus()
Returns the value of the Status property for this object.
|
List<Tag> |
getTags()
A list of tags for this spot instance request.
|
String |
getType()
Returns the value of the Type property for this object.
|
Date |
getValidFrom()
Returns the value of the ValidFrom property for this object.
|
Date |
getValidUntil()
Returns the value of the ValidUntil property for this object.
|
int |
hashCode() |
void |
setAvailabilityZoneGroup(String availabilityZoneGroup)
Sets the value of the AvailabilityZoneGroup property for this object.
|
void |
setCreateTime(Date createTime)
Sets the value of the CreateTime property for this object.
|
void |
setFault(SpotInstanceStateFault fault)
Sets the value of the Fault property for this object.
|
void |
setInstanceId(String instanceId)
Sets the value of the InstanceId property for this object.
|
void |
setLaunchedAvailabilityZone(String launchedAvailabilityZone)
The Availability Zone in which the bid is launched.
|
void |
setLaunchGroup(String launchGroup)
Sets the value of the LaunchGroup property for this object.
|
void |
setLaunchSpecification(LaunchSpecification launchSpecification)
The LaunchSpecificationType data type.
|
void |
setProductDescription(RIProductDescription productDescription)
Sets the value of the ProductDescription property for this object.
|
void |
setProductDescription(String productDescription)
Sets the value of the ProductDescription property for this object.
|
void |
setSpotInstanceRequestId(String spotInstanceRequestId)
Sets the value of the SpotInstanceRequestId property for this object.
|
void |
setSpotPrice(String spotPrice)
Sets the value of the SpotPrice property for this object.
|
void |
setState(SpotInstanceState state)
Sets the value of the State property for this object.
|
void |
setState(String state)
Sets the value of the State property for this object.
|
void |
setStatus(SpotInstanceStatus status)
Sets the value of the Status property for this object.
|
void |
setTags(Collection<Tag> tags)
A list of tags for this spot instance request.
|
void |
setType(SpotInstanceType type)
Sets the value of the Type property for this object.
|
void |
setType(String type)
Sets the value of the Type property for this object.
|
void |
setValidFrom(Date validFrom)
Sets the value of the ValidFrom property for this object.
|
void |
setValidUntil(Date validUntil)
Sets the value of the ValidUntil property for this object.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SpotInstanceRequest |
withAvailabilityZoneGroup(String availabilityZoneGroup)
Sets the value of the AvailabilityZoneGroup property for this object.
|
SpotInstanceRequest |
withCreateTime(Date createTime)
Sets the value of the CreateTime property for this object.
|
SpotInstanceRequest |
withFault(SpotInstanceStateFault fault)
Sets the value of the Fault property for this object.
|
SpotInstanceRequest |
withInstanceId(String instanceId)
Sets the value of the InstanceId property for this object.
|
SpotInstanceRequest |
withLaunchedAvailabilityZone(String launchedAvailabilityZone)
The Availability Zone in which the bid is launched.
|
SpotInstanceRequest |
withLaunchGroup(String launchGroup)
Sets the value of the LaunchGroup property for this object.
|
SpotInstanceRequest |
withLaunchSpecification(LaunchSpecification launchSpecification)
The LaunchSpecificationType data type.
|
SpotInstanceRequest |
withProductDescription(RIProductDescription productDescription)
Sets the value of the ProductDescription property for this object.
|
SpotInstanceRequest |
withProductDescription(String productDescription)
Sets the value of the ProductDescription property for this object.
|
SpotInstanceRequest |
withSpotInstanceRequestId(String spotInstanceRequestId)
Sets the value of the SpotInstanceRequestId property for this object.
|
SpotInstanceRequest |
withSpotPrice(String spotPrice)
Sets the value of the SpotPrice property for this object.
|
SpotInstanceRequest |
withState(SpotInstanceState state)
Sets the value of the State property for this object.
|
SpotInstanceRequest |
withState(String state)
Sets the value of the State property for this object.
|
SpotInstanceRequest |
withStatus(SpotInstanceStatus status)
Sets the value of the Status property for this object.
|
SpotInstanceRequest |
withTags(Collection<Tag> tags)
A list of tags for this spot instance request.
|
SpotInstanceRequest |
withTags(Tag... tags)
A list of tags for this spot instance request.
|
SpotInstanceRequest |
withType(SpotInstanceType type)
Sets the value of the Type property for this object.
|
SpotInstanceRequest |
withType(String type)
Sets the value of the Type property for this object.
|
SpotInstanceRequest |
withValidFrom(Date validFrom)
Sets the value of the ValidFrom property for this object.
|
SpotInstanceRequest |
withValidUntil(Date validUntil)
Sets the value of the ValidUntil property for this object.
|
public String getSpotInstanceRequestId()
public void setSpotInstanceRequestId(String spotInstanceRequestId)
spotInstanceRequestId
- The new value for the SpotInstanceRequestId property for this object.public SpotInstanceRequest withSpotInstanceRequestId(String spotInstanceRequestId)
Returns a reference to this object so that method calls can be chained together.
spotInstanceRequestId
- The new value for the SpotInstanceRequestId property for this object.public String getSpotPrice()
public void setSpotPrice(String spotPrice)
spotPrice
- The new value for the SpotPrice property for this object.public SpotInstanceRequest withSpotPrice(String spotPrice)
Returns a reference to this object so that method calls can be chained together.
spotPrice
- The new value for the SpotPrice property for this object.public String getType()
Constraints:
Allowed Values: one-time, persistent
SpotInstanceType
public void setType(String type)
Constraints:
Allowed Values: one-time, persistent
type
- The new value for the Type property for this object.SpotInstanceType
public SpotInstanceRequest withType(String type)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: one-time, persistent
type
- The new value for the Type property for this object.SpotInstanceType
public void setType(SpotInstanceType type)
Constraints:
Allowed Values: one-time, persistent
type
- The new value for the Type property for this object.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 new value for the Type property for this object.SpotInstanceType
public String getState()
Constraints:
Allowed Values: open, active, closed, cancelled, failed
SpotInstanceState
public void setState(String state)
Constraints:
Allowed Values: open, active, closed, cancelled, failed
state
- The new value for the State property for this object.SpotInstanceState
public SpotInstanceRequest withState(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 new value for the State property for this object.SpotInstanceState
public void setState(SpotInstanceState state)
Constraints:
Allowed Values: open, active, closed, cancelled, failed
state
- The new value for the State property for this object.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 new value for the State property for this object.SpotInstanceState
public SpotInstanceStateFault getFault()
public void setFault(SpotInstanceStateFault fault)
fault
- The new value for the Fault property for this object.public SpotInstanceRequest withFault(SpotInstanceStateFault fault)
Returns a reference to this object so that method calls can be chained together.
fault
- The new value for the Fault property for this object.public SpotInstanceStatus getStatus()
public void setStatus(SpotInstanceStatus status)
status
- The new value for the Status property for this object.public SpotInstanceRequest withStatus(SpotInstanceStatus status)
Returns a reference to this object so that method calls can be chained together.
status
- The new value for the Status property for this object.public Date getValidFrom()
public void setValidFrom(Date validFrom)
validFrom
- The new value for the ValidFrom property for this object.public SpotInstanceRequest withValidFrom(Date validFrom)
Returns a reference to this object so that method calls can be chained together.
validFrom
- The new value for the ValidFrom property for this object.public Date getValidUntil()
public void setValidUntil(Date validUntil)
validUntil
- The new value for the ValidUntil property for this object.public SpotInstanceRequest withValidUntil(Date validUntil)
Returns a reference to this object so that method calls can be chained together.
validUntil
- The new value for the ValidUntil property for this object.public String getLaunchGroup()
public void setLaunchGroup(String launchGroup)
launchGroup
- The new value for the LaunchGroup property for this object.public SpotInstanceRequest withLaunchGroup(String launchGroup)
Returns a reference to this object so that method calls can be chained together.
launchGroup
- The new value for the LaunchGroup property for this object.public String getAvailabilityZoneGroup()
public void setAvailabilityZoneGroup(String availabilityZoneGroup)
availabilityZoneGroup
- The new value for the AvailabilityZoneGroup property for this object.public SpotInstanceRequest withAvailabilityZoneGroup(String availabilityZoneGroup)
Returns a reference to this object so that method calls can be chained together.
availabilityZoneGroup
- The new value for the AvailabilityZoneGroup property for this object.public LaunchSpecification getLaunchSpecification()
public void setLaunchSpecification(LaunchSpecification launchSpecification)
launchSpecification
- The LaunchSpecificationType data type.public SpotInstanceRequest withLaunchSpecification(LaunchSpecification launchSpecification)
Returns a reference to this object so that method calls can be chained together.
launchSpecification
- The LaunchSpecificationType data type.public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- The new value for the InstanceId property for this object.public SpotInstanceRequest withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- The new value for the InstanceId property for this object.public Date getCreateTime()
public void setCreateTime(Date createTime)
createTime
- The new value for the CreateTime property for this object.public SpotInstanceRequest withCreateTime(Date createTime)
Returns a reference to this object so that method calls can be chained together.
createTime
- The new value for the CreateTime property for this object.public String getProductDescription()
Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
RIProductDescription
public void setProductDescription(String productDescription)
Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
productDescription
- The new value for the ProductDescription property for this object.RIProductDescription
public SpotInstanceRequest withProductDescription(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 new value for the ProductDescription property for this object.RIProductDescription
public void setProductDescription(RIProductDescription productDescription)
Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
productDescription
- The new value for the ProductDescription property for this object.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 new value for the ProductDescription property for this object.RIProductDescription
public List<Tag> getTags()
public void setTags(Collection<Tag> tags)
tags
- A list of tags for this spot instance request.public SpotInstanceRequest withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
tags
- A list of tags for this spot instance request.public SpotInstanceRequest withTags(Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- A list of tags for this spot instance request.public String getLaunchedAvailabilityZone()
public void setLaunchedAvailabilityZone(String launchedAvailabilityZone)
launchedAvailabilityZone
- The Availability Zone in which the bid is launched.public SpotInstanceRequest withLaunchedAvailabilityZone(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 String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.