org.jclouds.softlayer.domain
Class ProductItemPrice

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

public class ProductItemPrice
extends Object
implements Comparable<ProductItemPrice>

The SoftLayer_Product_Item_Price data type contains general information relating to a single SoftLayer product item price. You can find out what packages each price is in as well as which category under which this price is sold. All prices are returned in Floating point values measured in US Dollars ($USD).

Author:
Adrian Cole
See Also:

Nested Class Summary
static class ProductItemPrice.Builder
           
 
Constructor Summary
ProductItemPrice(int id, long itemId, Float recurringFee, Float hourlyRecurringFee, ProductItem item, Iterable<ProductItemCategory> categories)
           
 
Method Summary
static ProductItemPrice.Builder builder()
           
 int compareTo(ProductItemPrice arg0)
           
 boolean equals(Object o)
           
 Set<ProductItemCategory> getCategories()
           
 Float getHourlyRecurringFee()
           
 int getId()
           
 ProductItem getItem()
           
 long getItemId()
           
 Float getRecurringFee()
           
 int hashCode()
           
 ProductItemPrice.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProductItemPrice

public ProductItemPrice(int id,
                        long itemId,
                        Float recurringFee,
                        Float hourlyRecurringFee,
                        ProductItem item,
                        Iterable<ProductItemCategory> categories)
Method Detail

builder

public static ProductItemPrice.Builder builder()

compareTo

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

getId

public int getId()
Returns:
The unique identifier of a Product Item Price.

getItemId

public long getItemId()
Returns:
The unique identifier for a product Item

getRecurringFee

@Nullable
public Float getRecurringFee()
Returns:
A recurring fee is a fee that happens every billing period. This fee is represented as a Floating point decimal in US dollars ($USD).

getHourlyRecurringFee

@Nullable
public Float getHourlyRecurringFee()
Returns:
The hourly price for this item, should this item be part of an hourly pricing package.

getCategories

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

getItem

public ProductItem getItem()
Returns:
The product item a price is tied to.

toBuilder

public ProductItemPrice.Builder toBuilder()

toString

public String toString()
Overrides:
toString in class Object

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.