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

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

Introduction

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

Prototype


public void setInstanceType(InstanceType instanceType) 

Source Link

Document

The instance type.

Usage

From source file:org.finra.dm.dao.impl.MockSpotPrice.java

License:Apache License

/**
 * Converts this object into an AWS equivalent object.
 * //from  ww  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;
}