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()booleanThe 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).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).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
-
withInstanceType
-
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
-
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
-
withAvailabilityZone
-
toString
-
equals
-
hashCode
-
clone
-