public class SpotPrice extends Object implements Serializable, Cloneable
Describes the maximum hourly price (bid) for any Spot instance launched to fulfill the request.
Constructor and Description |
---|
SpotPrice() |
Modifier and Type | Method and Description |
---|---|
SpotPrice |
clone() |
boolean |
equals(Object obj) |
String |
getAvailabilityZone()
The Availability Zone.
|
String |
getInstanceType()
The instance type.
|
String |
getProductDescription()
A general description of the AMI.
|
String |
getSpotPrice()
The maximum price (bid) that you are willing to pay for a Spot instance.
|
Date |
getTimestamp()
The date and time the request was created, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
int |
hashCode() |
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone.
|
void |
setInstanceType(InstanceType instanceType)
The instance type.
|
void |
setInstanceType(String instanceType)
The instance type.
|
void |
setProductDescription(RIProductDescription productDescription)
A general description of the AMI.
|
void |
setProductDescription(String productDescription)
A general description of the AMI.
|
void |
setSpotPrice(String spotPrice)
The maximum price (bid) that you are willing to pay for a Spot instance.
|
void |
setTimestamp(Date timestamp)
The date and time the request was created, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SpotPrice |
withAvailabilityZone(String availabilityZone)
The Availability Zone.
|
SpotPrice |
withInstanceType(InstanceType instanceType)
The instance type.
|
SpotPrice |
withInstanceType(String instanceType)
The instance type.
|
SpotPrice |
withProductDescription(RIProductDescription productDescription)
A general description of the AMI.
|
SpotPrice |
withProductDescription(String productDescription)
A general description of the AMI.
|
SpotPrice |
withSpotPrice(String spotPrice)
The maximum price (bid) that you are willing to pay for a Spot instance.
|
SpotPrice |
withTimestamp(Date timestamp)
The date and time the request was created, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
public void setInstanceType(String instanceType)
The instance type.
instanceType
- The instance type.InstanceType
public String getInstanceType()
The instance type.
InstanceType
public SpotPrice withInstanceType(String instanceType)
The instance type.
instanceType
- The instance type.InstanceType
public void setInstanceType(InstanceType instanceType)
The instance type.
instanceType
- The instance type.InstanceType
public SpotPrice withInstanceType(InstanceType instanceType)
The instance type.
instanceType
- The instance type.InstanceType
public void setProductDescription(String productDescription)
A general description of the AMI.
productDescription
- A general description of the AMI.RIProductDescription
public String getProductDescription()
A general description of the AMI.
RIProductDescription
public SpotPrice withProductDescription(String productDescription)
A general description of the AMI.
productDescription
- A general description of the AMI.RIProductDescription
public void setProductDescription(RIProductDescription productDescription)
A general description of the AMI.
productDescription
- A general description of the AMI.RIProductDescription
public SpotPrice withProductDescription(RIProductDescription productDescription)
A general description of the AMI.
productDescription
- A general description of the AMI.RIProductDescription
public void setSpotPrice(String spotPrice)
The maximum price (bid) that you are willing to pay for a Spot instance.
spotPrice
- The maximum price (bid) that you are willing to pay for a Spot
instance.public String getSpotPrice()
The maximum price (bid) that you are willing to pay for a Spot instance.
public SpotPrice withSpotPrice(String spotPrice)
The maximum price (bid) that you are willing to pay for a Spot instance.
spotPrice
- The maximum price (bid) that you are willing to pay for a Spot
instance.public void setTimestamp(Date timestamp)
The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
timestamp
- The date and time the request was created, in UTC format (for
example,
YYYY-MM-DDTHH:MM:SSZ).public Date getTimestamp()
The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
public SpotPrice withTimestamp(Date timestamp)
The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
timestamp
- The date and time the request was created, in UTC format (for
example,
YYYY-MM-DDTHH:MM:SSZ).public void setAvailabilityZone(String availabilityZone)
The Availability Zone.
availabilityZone
- The Availability Zone.public String getAvailabilityZone()
The Availability Zone.
public SpotPrice withAvailabilityZone(String availabilityZone)
The Availability Zone.
availabilityZone
- The Availability Zone.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.