Package org.jclouds.domain.internal
Class ResourceMetadataImpl<T extends Enum<T>>
- java.lang.Object
-
- org.jclouds.domain.internal.ResourceMetadataImpl<T>
-
- All Implemented Interfaces:
Comparable<ResourceMetadata<T>>,ResourceMetadata<T>
- Direct Known Subclasses:
ComputeMetadataImpl,LoadBalancerMetadataImpl,StorageMetadataImpl
public abstract class ResourceMetadataImpl<T extends Enum<T>> extends Object implements ResourceMetadata<T>
Idpayload of the object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ResourceMetadata<T> that)booleanequals(Object o)LocationgetLocation()Physical location of the resource, or null if n/a ex.StringgetName()Name of this resource.StringgetProviderId()Unique identifier of this resource within its enclosing namespace.URIgetUri()URI used to access this resourceMap<String,String>getUserMetadata()Any key-value pairs associated with the resource.inthashCode()protected com.google.common.base.MoreObjects.ToStringHelperstring()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jclouds.domain.ResourceMetadata
getType
-
-
-
-
Method Detail
-
compareTo
public int compareTo(ResourceMetadata<T> that)
- Specified by:
compareToin interfaceComparable<T extends Enum<T>>
-
getProviderId
public String getProviderId()
Unique identifier of this resource within its enclosing namespace. In some scenarios, this id is not user assignable. For files, this may be an system generated key, or the full path to the resource. ex. /path/to/file.txt- Specified by:
getProviderIdin interfaceResourceMetadata<T extends Enum<T>>
-
getName
public String getName()
Name of this resource. Names are dictated by the user. For files, this may be the filename, ex. file.txt- Specified by:
getNamein interfaceResourceMetadata<T extends Enum<T>>
-
getLocation
public Location getLocation()
Physical location of the resource, or null if n/a ex. us-west-1- Specified by:
getLocationin interfaceResourceMetadata<T extends Enum<T>>
-
getUri
public URI getUri()
URI used to access this resource- Specified by:
getUriin interfaceResourceMetadata<T extends Enum<T>>
-
getUserMetadata
public Map<String,String> getUserMetadata()
Any key-value pairs associated with the resource.- Specified by:
getUserMetadatain interfaceResourceMetadata<T extends Enum<T>>
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
-