org.jclouds.softlayer.domain
Class ProductPackage

java.lang.Object
  extended by 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:

Nested Class Summary
static class ProductPackage.Builder
           
 
Constructor Summary
ProductPackage(int id, String name, String description, Iterable<ProductItem> items, Iterable<Datacenter> datacenters)
           
 
Method Summary
static ProductPackage.Builder builder()
           
 int compareTo(ProductPackage arg0)
           
 boolean equals(Object obj)
           
 Set<Datacenter> getDatacenters()
           
 String getDescription()
           
 int getId()
           
 Set<ProductItem> getItems()
           
 String getName()
           
 int hashCode()
           
 ProductPackage.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProductPackage

public ProductPackage(int id,
                      String name,
                      String description,
                      Iterable<ProductItem> items,
                      Iterable<Datacenter> datacenters)
Method Detail

builder

public static ProductPackage.Builder builder()

compareTo

public int compareTo(ProductPackage arg0)
Specified by:
compareTo in 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:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.