org.jclouds.softlayer.domain
Class ProductItem
java.lang.Object
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:
ProductItem
public ProductItem(int id,
String description,
String units,
Float capacity,
Iterable<ProductItemPrice> prices,
Iterable<ProductItemCategory> categories)
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-2011 jclouds. All Rights Reserved.