public class SpotPrice
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes the maximum hourly price (bid) for any Spot instance launched to fulfill the request.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
availabilityZone
The Availability Zone.
|
private java.lang.String |
instanceType
The instance type.
|
private java.lang.String |
productDescription
A general description of the AMI.
|
private java.lang.String |
spotPrice
The maximum price (bid) that you are willing to pay for a Spot instance.
|
private java.util.Date |
timestamp
The date and time the request was created, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
Constructor and Description |
---|
SpotPrice() |
Modifier and Type | Method and Description |
---|---|
SpotPrice |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAvailabilityZone()
The Availability Zone.
|
java.lang.String |
getInstanceType()
The instance type.
|
java.lang.String |
getProductDescription()
A general description of the AMI.
|
java.lang.String |
getSpotPrice()
The maximum price (bid) that you are willing to pay for a Spot instance.
|
java.util.Date |
getTimestamp()
The date and time the request was created, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
int |
hashCode() |
void |
setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone.
|
void |
setInstanceType(InstanceType instanceType)
The instance type.
|
void |
setInstanceType(java.lang.String instanceType)
The instance type.
|
void |
setProductDescription(RIProductDescription productDescription)
A general description of the AMI.
|
void |
setProductDescription(java.lang.String productDescription)
A general description of the AMI.
|
void |
setSpotPrice(java.lang.String spotPrice)
The maximum price (bid) that you are willing to pay for a Spot instance.
|
void |
setTimestamp(java.util.Date timestamp)
The date and time the request was created, 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.
|
SpotPrice |
withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone.
|
SpotPrice |
withInstanceType(InstanceType instanceType)
The instance type.
|
SpotPrice |
withInstanceType(java.lang.String instanceType)
The instance type.
|
SpotPrice |
withProductDescription(RIProductDescription productDescription)
A general description of the AMI.
|
SpotPrice |
withProductDescription(java.lang.String productDescription)
A general description of the AMI.
|
SpotPrice |
withSpotPrice(java.lang.String spotPrice)
The maximum price (bid) that you are willing to pay for a Spot instance.
|
SpotPrice |
withTimestamp(java.util.Date timestamp)
The date and time the request was created, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
private java.lang.String instanceType
The instance type.
private java.lang.String productDescription
A general description of the AMI.
private java.lang.String spotPrice
The maximum price (bid) that you are willing to pay for a Spot instance.
private java.util.Date timestamp
The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
private java.lang.String availabilityZone
The Availability Zone.
public void setInstanceType(java.lang.String instanceType)
The instance type.
instanceType
- The instance type.InstanceType
public java.lang.String getInstanceType()
The instance type.
InstanceType
public SpotPrice withInstanceType(java.lang.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(java.lang.String productDescription)
A general description of the AMI.
productDescription
- A general description of the AMI.RIProductDescription
public java.lang.String getProductDescription()
A general description of the AMI.
RIProductDescription
public SpotPrice withProductDescription(java.lang.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(java.lang.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 java.lang.String getSpotPrice()
The maximum price (bid) that you are willing to pay for a Spot instance.
public SpotPrice withSpotPrice(java.lang.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(java.util.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 java.util.Date getTimestamp()
The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
public SpotPrice withTimestamp(java.util.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(java.lang.String availabilityZone)
The Availability Zone.
availabilityZone
- The Availability Zone.public java.lang.String getAvailabilityZone()
The Availability Zone.
public SpotPrice withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone.
availabilityZone
- The Availability Zone.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SpotPrice clone()
clone
in class java.lang.Object