org.jclouds.domain.internal
Class LocationImpl

java.lang.Object
  extended by org.jclouds.domain.internal.LocationImpl
All Implemented Interfaces:
Serializable, Location

public class LocationImpl
extends Object
implements Location, Serializable

Author:
Adrian Cole
See Also:
Serialized Form

Constructor Summary
LocationImpl(LocationScope scope, String id, String description, Location parent, Iterable<String> iso3166Codes, Map<String,Object> metadata)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDescription()
          Description of the location
 String getId()
          Unique ID provided by the provider (us-standard, miami, etc)
 Set<String> getIso3166Codes()
          
 Map<String,Object> getMetadata()
          
 Location getParent()
          The parent, or null, if top-level
 LocationScope getScope()
          Scope of the location, ex.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocationImpl

public LocationImpl(LocationScope scope,
                    String id,
                    String description,
                    @Nullable
                    Location parent,
                    Iterable<String> iso3166Codes,
                    Map<String,Object> metadata)
Method Detail

getScope

public LocationScope getScope()
Scope of the location, ex. region, zone, host

Specified by:
getScope in interface Location

getId

public String getId()
Unique ID provided by the provider (us-standard, miami, etc)

Specified by:
getId in interface Location

getDescription

public String getDescription()
Description of the location

Specified by:
getDescription in interface Location

getParent

public Location getParent()
The parent, or null, if top-level

Specified by:
getParent in interface Location

getIso3166Codes

public Set<String> getIso3166Codes()

Specified by:
getIso3166Codes in interface Location
Returns:
if known, the IS0 3166 or 3166-2 divisions where this service may run. ex. a set of strings like "US" or "US-CA"; otherwise returns an empty list.
See Also:
3166

getMetadata

public Map<String,Object> getMetadata()

Specified by:
getMetadata in interface Location
Returns:
immutable set of metadata relating to this location

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.