org.jclouds.softlayer.domain
Class ProductOrder.Builder
java.lang.Object
org.jclouds.softlayer.domain.ProductOrder.Builder
- Enclosing class:
- ProductOrder
public static class ProductOrder.Builder
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProductOrder.Builder
public ProductOrder.Builder()
packageId
public ProductOrder.Builder packageId(int packageId)
price
public ProductOrder.Builder price(ProductItemPrice prices)
- Adds a price to the order
All that is required to send in is the price ID of each item desired to be ordered.
- Parameters:
prices
- The Prices of the item desired to be ordered
prices
public ProductOrder.Builder prices(Iterable<ProductItemPrice> prices)
- Adds multiple prices to the order, overwriting any existing ones
All that is required to send in is the price ID of each item desired to be ordered.
- Parameters:
prices
- The Prices of the items desired to be ordered
virtualGuest
public ProductOrder.Builder virtualGuest(VirtualGuest virtualGuest)
- Adds a virtualGuest to the order
- Parameters:
virtualGuest
- The virtualGuest to add. Needs domain and hostname.
virtualGuests
public ProductOrder.Builder virtualGuests(Iterable<VirtualGuest> virtualGuests)
location
public ProductOrder.Builder location(String location)
quantity
public ProductOrder.Builder quantity(int quantity)
useHourlyPricing
public ProductOrder.Builder useHourlyPricing(Boolean useHourlyPricing)
build
public ProductOrder build()
fromProductOrder
public static ProductOrder.Builder fromProductOrder(ProductOrder in)
Copyright © 2009-2012 jclouds. All Rights Reserved.