List of usage examples for com.amazonaws.services.ec2.model SpotPrice setSpotPrice
public void setSpotPrice(String spotPrice)
The maximum price per hour that you are willing to pay for a Spot Instance.
From source file:org.finra.dm.dao.impl.MockSpotPrice.java
License:Apache License
/** * Converts this object into an AWS equivalent object. * /* w w w .ja v a 2 s . c om*/ * @return A new equivalent AWS object */ public SpotPrice toAwsObject() { SpotPrice spotPrice = new SpotPrice(); spotPrice.setAvailabilityZone(availabilityZone); spotPrice.setInstanceType(type); spotPrice.setSpotPrice(this.spotPrice); return spotPrice; }