Example usage for com.amazonaws.services.ec2.model SpotPrice setSpotPrice

List of usage examples for com.amazonaws.services.ec2.model SpotPrice setSpotPrice

Introduction

In this page you can find the example usage for com.amazonaws.services.ec2.model SpotPrice setSpotPrice.

Prototype


public void setSpotPrice(String spotPrice) 

Source Link

Document

The maximum price per hour that you are willing to pay for a Spot Instance.

Usage

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;
}