public static class ProductOrder.Builder extends Object
Constructor and Description |
---|
ProductOrder.Builder() |
Modifier and Type | Method and Description |
---|---|
ProductOrder |
build() |
static ProductOrder.Builder |
fromProductOrder(ProductOrder in) |
ProductOrder.Builder |
location(String location) |
ProductOrder.Builder |
packageId(int packageId) |
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.
|
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.
|
ProductOrder.Builder |
quantity(int quantity) |
ProductOrder.Builder |
useHourlyPricing(Boolean useHourlyPricing) |
ProductOrder.Builder |
virtualGuest(VirtualGuest virtualGuest)
Adds a virtualGuest to the order
|
ProductOrder.Builder |
virtualGuests(Iterable<VirtualGuest> virtualGuests) |
public ProductOrder.Builder packageId(int packageId)
public ProductOrder.Builder price(ProductItemPrice prices)
prices
- The Prices of the item desired to be orderedpublic ProductOrder.Builder prices(Iterable<ProductItemPrice> prices)
prices
- The Prices of the items desired to be orderedpublic ProductOrder.Builder virtualGuest(VirtualGuest virtualGuest)
virtualGuest
- The virtualGuest to add. Needs domain and hostname.public ProductOrder.Builder virtualGuests(Iterable<VirtualGuest> virtualGuests)
public ProductOrder.Builder location(String location)
public ProductOrder.Builder quantity(int quantity)
public ProductOrder.Builder useHourlyPricing(Boolean useHourlyPricing)
public ProductOrder build()
public static ProductOrder.Builder fromProductOrder(ProductOrder in)
Copyright © 2009-2012 jclouds. All Rights Reserved.