@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SpotPrice extends Object implements Serializable, Cloneable
Describes the maximum price per hour that you are willing to pay for a Spot Instance.
| 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 per hour 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 per hour 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.
|
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 per hour 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 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 void setInstanceType(String instanceType)
The instance type.
instanceType - The instance type.InstanceTypepublic String getInstanceType()
The instance type.
InstanceTypepublic SpotPrice withInstanceType(String instanceType)
The instance type.
instanceType - The instance type.InstanceTypepublic void setInstanceType(InstanceType instanceType)
The instance type.
instanceType - The instance type.InstanceTypepublic SpotPrice withInstanceType(InstanceType instanceType)
The instance type.
instanceType - The instance type.InstanceTypepublic void setProductDescription(String productDescription)
A general description of the AMI.
productDescription - A general description of the AMI.RIProductDescriptionpublic String getProductDescription()
A general description of the AMI.
RIProductDescriptionpublic SpotPrice withProductDescription(String productDescription)
A general description of the AMI.
productDescription - A general description of the AMI.RIProductDescriptionpublic void setProductDescription(RIProductDescription productDescription)
A general description of the AMI.
productDescription - A general description of the AMI.RIProductDescriptionpublic SpotPrice withProductDescription(RIProductDescription productDescription)
A general description of the AMI.
productDescription - A general description of the AMI.RIProductDescriptionpublic void setSpotPrice(String spotPrice)
The maximum price per hour that you are willing to pay for a Spot Instance.
spotPrice - The maximum price per hour that you are willing to pay for a Spot Instance.public String getSpotPrice()
The maximum price per hour that you are willing to pay for a Spot Instance.
public SpotPrice withSpotPrice(String spotPrice)
The maximum price per hour that you are willing to pay for a Spot Instance.
spotPrice - The maximum price per hour 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 String toString()
toString in class ObjectObject.toString()Copyright © 2021. All rights reserved.