Class SpotPrice
- java.lang.Object
-
- com.amazonaws.services.ec2.model.SpotPrice
-
- All Implemented Interfaces:
Serializable,Cloneable
public class SpotPrice extends Object implements Serializable, Cloneable
Describes the maximum hourly price (bid) for any Spot instance launched to fulfill the request.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SpotPrice()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpotPriceclone()booleanequals(Object obj)StringgetAvailabilityZone()The Availability Zone.StringgetInstanceType()The instance type.StringgetProductDescription()A general description of the AMI.StringgetSpotPrice()The maximum price (bid) that you are willing to pay for a Spot instance.DategetTimestamp()The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).inthashCode()voidsetAvailabilityZone(String availabilityZone)The Availability Zone.voidsetInstanceType(InstanceType instanceType)The instance type.voidsetInstanceType(String instanceType)The instance type.voidsetProductDescription(RIProductDescription productDescription)A general description of the AMI.voidsetProductDescription(String productDescription)A general description of the AMI.voidsetSpotPrice(String spotPrice)The maximum price (bid) that you are willing to pay for a Spot instance.voidsetTimestamp(Date timestamp)The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).StringtoString()Returns a string representation of this object; useful for testing and debugging.SpotPricewithAvailabilityZone(String availabilityZone)The Availability Zone.SpotPricewithInstanceType(InstanceType instanceType)The instance type.SpotPricewithInstanceType(String instanceType)The instance type.SpotPricewithProductDescription(RIProductDescription productDescription)A general description of the AMI.SpotPricewithProductDescription(String productDescription)A general description of the AMI.SpotPricewithSpotPrice(String spotPrice)The maximum price (bid) that you are willing to pay for a Spot instance.SpotPricewithTimestamp(Date timestamp)The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
-
-
-
Method Detail
-
setInstanceType
public void setInstanceType(String instanceType)
The instance type.
- Parameters:
instanceType- The instance type.- See Also:
InstanceType
-
getInstanceType
public String getInstanceType()
The instance type.
- Returns:
- The instance type.
- See Also:
InstanceType
-
withInstanceType
public SpotPrice withInstanceType(String instanceType)
The instance type.
- Parameters:
instanceType- The instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceType
-
setInstanceType
public void setInstanceType(InstanceType instanceType)
The instance type.
- Parameters:
instanceType- The instance type.- See Also:
InstanceType
-
withInstanceType
public SpotPrice withInstanceType(InstanceType instanceType)
The instance type.
- Parameters:
instanceType- The instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceType
-
setProductDescription
public void setProductDescription(String productDescription)
A general description of the AMI.
- Parameters:
productDescription- A general description of the AMI.- See Also:
RIProductDescription
-
getProductDescription
public String getProductDescription()
A general description of the AMI.
- Returns:
- A general description of the AMI.
- See Also:
RIProductDescription
-
withProductDescription
public SpotPrice withProductDescription(String productDescription)
A general description of the AMI.
- Parameters:
productDescription- A general description of the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RIProductDescription
-
setProductDescription
public void setProductDescription(RIProductDescription productDescription)
A general description of the AMI.
- Parameters:
productDescription- A general description of the AMI.- See Also:
RIProductDescription
-
withProductDescription
public SpotPrice withProductDescription(RIProductDescription productDescription)
A general description of the AMI.
- Parameters:
productDescription- A general description of the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RIProductDescription
-
setSpotPrice
public void setSpotPrice(String spotPrice)
The maximum price (bid) that you are willing to pay for a Spot instance.
- Parameters:
spotPrice- The maximum price (bid) that you are willing to pay for a Spot instance.
-
getSpotPrice
public String getSpotPrice()
The maximum price (bid) that you are willing to pay for a Spot instance.
- Returns:
- The maximum price (bid) that you are willing to pay for a Spot instance.
-
withSpotPrice
public SpotPrice withSpotPrice(String spotPrice)
The maximum price (bid) that you are willing to pay for a Spot instance.
- Parameters:
spotPrice- The maximum price (bid) that you are willing to pay for a Spot instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTimestamp
public void setTimestamp(Date timestamp)
The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
- Parameters:
timestamp- The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
-
getTimestamp
public Date getTimestamp()
The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
- Returns:
- The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
-
withTimestamp
public SpotPrice withTimestamp(Date timestamp)
The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
- Parameters:
timestamp- The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAvailabilityZone
public void setAvailabilityZone(String availabilityZone)
The Availability Zone.
- Parameters:
availabilityZone- The Availability Zone.
-
getAvailabilityZone
public String getAvailabilityZone()
The Availability Zone.
- Returns:
- The Availability Zone.
-
withAvailabilityZone
public SpotPrice withAvailabilityZone(String availabilityZone)
The Availability Zone.
- Parameters:
availabilityZone- The Availability Zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-