org.jclouds.softlayer.domain
Class ProductPackage
java.lang.Object
   org.jclouds.softlayer.domain.ProductPackage
org.jclouds.softlayer.domain.ProductPackage
- All Implemented Interfaces: 
- Comparable<ProductPackage>
- public class ProductPackage 
- extends Object- implements Comparable<ProductPackage>
The SoftLayer_Product_Package data type contains information about packages
 from which orders can be generated. Packages contain general information
 regarding what is in them, where they are currently sold, availability, and
 pricing.
- Author:
- Adrian Cole
- See Also:
 
 
 
 
ProductPackage
public ProductPackage(int id,
                      String name,
                      String description,
                      Iterable<ProductItem> items,
                      Iterable<Datacenter> datacenters)
builder
public static ProductPackage.Builder builder()
- 
 
- 
 
compareTo
public int compareTo(ProductPackage arg0)
- 
- Specified by:
- compareToin interface- Comparable<ProductPackage>
 
- 
 
getId
public int getId()
- 
 
- 
- Returns:
- A package's internal identifier. Everything regarding a
         SoftLayer_Product_Package is tied back to this id.
 
getName
public String getName()
- 
 
- 
- Returns:
- The description of the package. For server packages, this is
         usually a detailed description of processor type and count.
 
getDescription
public String getDescription()
- 
 
- 
- Returns:
- A generic description of the processor type and count. This
         includes HTML, so you may want to strip these tags if you plan to
         use it.
 
getItems
public Set<ProductItem> getItems()
- 
 
- 
- Returns:
- A collection of valid items available for purchase in this
         package.
 
getDatacenters
public Set<Datacenter> getDatacenters()
- 
 
- 
- Returns:
- A collection of valid locations for this package.
 
toBuilder
public ProductPackage.Builder toBuilder()
- 
 
- 
 
hashCode
public int hashCode()
- 
- Overrides:
- hashCodein class- Object
 
- 
 
equals
public boolean equals(Object obj)
- 
- Overrides:
- equalsin class- Object
 
- 
 
toString
public String toString()
- 
- Overrides:
- toStringin class- Object
 
- 
 
Copyright © 2009-2012 jclouds. All Rights Reserved.