@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SpotPrice extends Object implements Serializable, Cloneable
The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
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 unit 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 unit 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 unit 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.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 per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
spotPrice
- The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using
this parameter because it can lead to increased interruptions. If you do not specify this parameter, you
will pay the current Spot price. If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
public String getSpotPrice()
The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
public SpotPrice withSpotPrice(String spotPrice)
The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
spotPrice
- The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using
this parameter because it can lead to increased interruptions. If you do not specify this parameter, you
will pay the current Spot price. If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
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 Object
Object.toString()