Class SpotPrice
- All Implemented Interfaces:
Serializable
,Cloneable
Describes the maximum hourly price (bid) for any Spot instance launched to fulfill the request.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The Availability Zone.The instance type.A general description of the AMI.The maximum price (bid) that you are willing to pay for a Spot instance.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).toString()
Returns a string representation of this object; useful for testing and debugging.withAvailabilityZone
(String availabilityZone) The Availability Zone.withInstanceType
(InstanceType instanceType) The instance type.withInstanceType
(String instanceType) The instance type.withProductDescription
(RIProductDescription productDescription) A general description of the AMI.withProductDescription
(String productDescription) A general description of the AMI.withSpotPrice
(String spotPrice) The maximum price (bid) that you are willing to pay for a Spot instance.withTimestamp
(Date timestamp) The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
-
Constructor Details
-
SpotPrice
public SpotPrice()
-
-
Method Details
-
setInstanceType
The instance type.
- Parameters:
instanceType
- The instance type.- See Also:
-
getInstanceType
The instance type.
- Returns:
- The instance type.
- See Also:
-
withInstanceType
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:
-
setInstanceType
The instance type.
- Parameters:
instanceType
- The instance type.- See Also:
-
withInstanceType
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:
-
setProductDescription
A general description of the AMI.
- Parameters:
productDescription
- A general description of the AMI.- See Also:
-
getProductDescription
A general description of the AMI.
- Returns:
- A general description of the AMI.
- See Also:
-
withProductDescription
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:
-
setProductDescription
A general description of the AMI.
- Parameters:
productDescription
- A general description of the AMI.- See Also:
-
withProductDescription
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:
-
setSpotPrice
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
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
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
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
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
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
The Availability Zone.
- Parameters:
availabilityZone
- The Availability Zone.
-
getAvailabilityZone
The Availability Zone.
- Returns:
- The Availability Zone.
-
withAvailabilityZone
The Availability Zone.
- Parameters:
availabilityZone
- The Availability Zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-