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 booleanequals(Object o)StringgetDescription()Description of the locationStringgetId()Unique ID provided by the provider (us-standard, miami, etc)Set<String>getIso3166Codes()Map<String,Object>getMetadata()LocationgetParent()The parent, or null, if top-levelLocationScopegetScope()Scope of the location, ex.inthashCode()StringtoString()
-
-
-
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:
getDescriptionin interfaceLocation
-
getParent
public Location getParent()
The parent, or null, if top-level
-
getIso3166Codes
public Set<String> getIso3166Codes()
- Specified by:
getIso3166Codesin 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:
getMetadatain interfaceLocation- Returns:
- immutable set of metadata relating to this location
-
-