org.jclouds.softlayer.domain
Class ProductOrder.Builder

java.lang.Object
  extended by org.jclouds.softlayer.domain.ProductOrder.Builder
Enclosing class:
ProductOrder

public static class ProductOrder.Builder
extends Object


Constructor Summary
ProductOrder.Builder()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductOrder.Builder

public ProductOrder.Builder()
Method Detail

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-2011 jclouds. All Rights Reserved.