org.jclouds.softlayer.domain
Class ProductItem

java.lang.Object
  extended by org.jclouds.softlayer.domain.ProductItem
All Implemented Interfaces:
Comparable<ProductItem>

public class ProductItem
extends Object
implements Comparable<ProductItem>

The SoftLayer_Product_Item data type contains general information relating to a single SoftLayer product.

Author:
Adrian Cole
See Also:

Nested Class Summary
static class ProductItem.Builder
           
 
Constructor Summary
ProductItem(int id, String description, String units, Float capacity, Iterable<ProductItemPrice> prices, Iterable<ProductItemCategory> categories)
           
 
Method Summary
static ProductItem.Builder builder()
           
 int compareTo(ProductItem arg0)
           
 boolean equals(Object obj)
           
 Float getCapacity()
           
 Set<ProductItemCategory> getCategories()
           
 String getDescription()
           
 int getId()
           
 Set<ProductItemPrice> getPrices()
           
 String getUnits()
           
 int hashCode()
           
 ProductItem.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProductItem

public ProductItem(int id,
                   String description,
                   String units,
                   Float capacity,
                   Iterable<ProductItemPrice> prices,
                   Iterable<ProductItemCategory> categories)
Method Detail

builder

public static ProductItem.Builder builder()

compareTo

public int compareTo(ProductItem arg0)
Specified by:
compareTo in interface Comparable<ProductItem>

getId

public int getId()
Returns:
The unique identifier of a specific location.

getDescription

public String getDescription()
Returns:
A product's description

getUnits

@Nullable
public String getUnits()
Returns:
The unit of measurement that a product item is measured in.

getCapacity

@Nullable
public Float getCapacity()
Returns:
Some Product Items have capacity information such as RAM and bandwidth, and others. This provides the numerical representation of the capacity given in the description of this product item.

getPrices

public Set<ProductItemPrice> getPrices()
Returns:
A product item's prices.

getCategories

public Set<ProductItemCategory> getCategories()
Returns:
An item's associated item categories.

toBuilder

public ProductItem.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.