org.jclouds.softlayer.domain
Class Datacenter

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

public class Datacenter
extends Object
implements Comparable<Datacenter>

Author:
Adrian Cole
See Also:

Nested Class Summary
static class Datacenter.Builder
           
 
Constructor Summary
Datacenter(int id, String name, String longName, Address locationAddress, Iterable<Region> regions)
           
 
Method Summary
static Datacenter.Builder builder()
           
 int compareTo(Datacenter arg0)
           
 boolean equals(Object obj)
           
 int getId()
           
 Address getLocationAddress()
           
 String getLongName()
           
 String getName()
           
 Set<Region> getRegions()
          A location can be a member of 1 or more regions.
 int hashCode()
           
 Datacenter.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Datacenter

public Datacenter(int id,
                  String name,
                  String longName,
                  Address locationAddress,
                  Iterable<Region> regions)
Method Detail

builder

public static Datacenter.Builder builder()

compareTo

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

getId

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

getName

public String getName()
Returns:
A short location description.

getLongName

public String getLongName()
Returns:
A longer location description.

getLocationAddress

public Address getLocationAddress()
Returns:
A location's physical address (optional).

getRegions

public Set<Region> getRegions()
A location can be a member of 1 or more regions. Sometimes the list of regions is empty, for example as a new Datacenter is being added. The list of regions usually contains one with keyName=FIRST_AVAILABLE which should be ignored.

Returns:
The regions to which a location belongs.

toBuilder

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