org.jclouds.softlayer.domain
Class ProductOrderReceipt

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

public class ProductOrderReceipt
extends Object
implements Comparable<ProductOrderReceipt>

Author:
Jason King
See Also:

Nested Class Summary
static class ProductOrderReceipt.Builder
           
 
Constructor Summary
ProductOrderReceipt(int orderId, ProductOrder orderDetails)
           
 
Method Summary
static ProductOrderReceipt.Builder builder()
           
 int compareTo(ProductOrderReceipt arg0)
           
 boolean equals(Object obj)
           
 ProductOrder getOrderDetails()
          This is a copy of the SoftLayer_Container_Product_Order which holds all the data related to an order.
 int getOrderId()
           
 int hashCode()
           
 ProductOrderReceipt.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProductOrderReceipt

public ProductOrderReceipt(int orderId,
                           ProductOrder orderDetails)
Method Detail

builder

public static ProductOrderReceipt.Builder builder()

compareTo

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

getOrderId

public int getOrderId()
Returns:
unique identifier for the order.

getOrderDetails

public ProductOrder getOrderDetails()
This is a copy of the SoftLayer_Container_Product_Order which holds all the data related to an order. This will only return when an order is processed successfully. It will contain all the items in an order as well as the order totals.


toBuilder

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