Package org.jclouds.domain.internal
Class LocationImpl
- java.lang.Object
-
- org.jclouds.domain.internal.LocationImpl
-
-
Constructor Summary
Constructors Constructor Description LocationImpl(LocationScope scope, String id, String description, Location parent, Iterable<String> iso3166Codes, Map<String,Object> metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getDescription()
Description of the locationString
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-levelLocationScope
getScope()
Scope of the location, ex.int
hashCode()
String
toString()
-
-
-
Method Detail
-
getScope
public LocationScope getScope()
Scope of the location, ex. region, zone, host
-
getId
public String getId()
Unique ID provided by the provider (us-standard, miami, etc)
-
getDescription
public String getDescription()
Description of the location- Specified by:
getDescription
in interfaceLocation
-
getParent
public Location getParent()
The parent, or null, if top-level
-
getIso3166Codes
public Set<String> getIso3166Codes()
- Specified by:
getIso3166Codes
in interfaceLocation
- 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 interfaceLocation
- Returns:
- immutable set of metadata relating to this location
-
-