org.jclouds.softlayer.domain
Class ProductOrder
java.lang.Object
org.jclouds.softlayer.domain.ProductOrder
public class ProductOrder
- extends Object
- Author:
- Jason King
- See Also:
ProductOrder
public ProductOrder(int packageId,
String location,
Iterable<ProductItemPrice> prices,
Iterable<VirtualGuest> virtualGuest,
int quantity,
boolean useHourlyPricing)
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.