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 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).
-
-
-
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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-