org.jclouds.softlayer.domain
Class ProductOrder

java.lang.Object
  extended by org.jclouds.softlayer.domain.ProductOrder

public class ProductOrder
extends Object

Author:
Jason King
See Also:

Nested Class Summary
static class ProductOrder.Builder
           
 
Constructor Summary
ProductOrder(int packageId, String location, Iterable<ProductItemPrice> prices, Iterable<VirtualGuest> virtualGuest, int quantity, boolean useHourlyPricing)
           
 
Method Summary
static ProductOrder.Builder builder()
           
 boolean equals(Object o)
           
 String getLocation()
           
 int getPackageId()
           
 Set<ProductItemPrice> getPrices()
          Gets the item prices in this order.
 int getQuantity()
           
 boolean getUseHourlyPricing()
           
 Set<VirtualGuest> getVirtualGuests()
          Gets the virtual guests in this order.
 int hashCode()
           
 ProductOrder.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProductOrder

public ProductOrder(int packageId,
                    String location,
                    Iterable<ProductItemPrice> prices,
                    Iterable<VirtualGuest> virtualGuest,
                    int quantity,
                    boolean useHourlyPricing)
Method Detail

builder

public static ProductOrder.Builder builder()

getPackageId

public int getPackageId()
Returns:
The package id of an order. This is required.

getLocation

public String getLocation()
Returns:
The region keyname or specific location keyname where the order should be provisioned.

getPrices

public Set<ProductItemPrice> getPrices()
Gets the item prices in this order. All that is required to be present is the price ID

Returns:
the prices.

getVirtualGuests

public Set<VirtualGuest> getVirtualGuests()
Gets the virtual guests in this order.

Returns:
the the virtual guests.

getQuantity

public int getQuantity()

getUseHourlyPricing

public boolean getUseHourlyPricing()

toBuilder

public ProductOrder.Builder toBuilder()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 jclouds. All Rights Reserved.