org.jclouds.softlayer.domain
Class Region

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

public class Region
extends Object
implements Comparable<Region>

A region is made up of a keyname and a description of that region. A region keyname can be used as part of an order. Check the SoftLayer_Product_Order service for more details.

Author:
Jason King
See Also:

Nested Class Summary
static class Region.Builder
           
 
Constructor Summary
Region(String keyname, String description)
           
 
Method Summary
static Region.Builder builder()
           
 int compareTo(Region arg0)
           
 boolean equals(Object o)
           
 String getDescription()
           
 String getKeyname()
           
 int hashCode()
           
 Region.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Region

public Region(String keyname,
              String description)
Method Detail

builder

public static Region.Builder builder()

compareTo

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

getKeyname

public String getKeyname()
Returns:
A unique key name for a region. Provided for easy debugging. This is to be sent in with an order.

getDescription

public String getDescription()
Returns:
A short description of a region's name. This description is seen on the order forms.

toBuilder

public Region.Builder toBuilder()

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 jclouds. All Rights Reserved.