|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jclouds.domain.internal.MutableResourceMetadataImpl<T>
public class MutableResourceMetadataImpl<T extends Enum<T>>
Used to construct new resources or modify existing ones.
Constructor Summary | |
---|---|
MutableResourceMetadataImpl()
|
|
MutableResourceMetadataImpl(ResourceMetadata<T> from)
|
Method Summary | |
---|---|
int |
compareTo(ResourceMetadata<T> o)
|
boolean |
equals(Object obj)
|
Location |
getLocation()
Physical location of the resource, or null if n/a ex. |
String |
getName()
Name of this resource. |
String |
getProviderId()
Unique identifier of this resource within its enclosing namespace. |
T |
getType()
Whether this resource is a container, file, node, queue, etc. |
URI |
getUri()
URI used to access this resource |
Map<String,String> |
getUserMetadata()
Any key-value pairs associated with the resource. |
int |
hashCode()
|
void |
setId(String id)
|
void |
setLocation(Location location)
|
void |
setName(String name)
|
void |
setType(T type)
|
void |
setUri(URI uri)
|
void |
setUserMetadata(Map<String,String> userMetadata)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MutableResourceMetadataImpl()
public MutableResourceMetadataImpl(ResourceMetadata<T> from)
Method Detail |
---|
public int compareTo(ResourceMetadata<T> o)
compareTo
in interface Comparable<ResourceMetadata<T extends Enum<T>>>
public T getType()
getType
in interface ResourceMetadata<T extends Enum<T>>
public String getName()
getName
in interface ResourceMetadata<T extends Enum<T>>
public String getProviderId()
getProviderId
in interface ResourceMetadata<T extends Enum<T>>
public URI getUri()
getUri
in interface ResourceMetadata<T extends Enum<T>>
public Map<String,String> getUserMetadata()
getUserMetadata
in interface ResourceMetadata<T extends Enum<T>>
public void setName(String name)
setName
in interface MutableResourceMetadata<T extends Enum<T>>
ResourceMetadata.getName()
public void setType(T type)
setType
in interface MutableResourceMetadata<T extends Enum<T>>
ResourceMetadata.getType()
public void setUserMetadata(Map<String,String> userMetadata)
setUserMetadata
in interface MutableResourceMetadata<T extends Enum<T>>
ResourceMetadata.getUserMetadata()
public void setId(String id)
setId
in interface MutableResourceMetadata<T extends Enum<T>>
#getId
public void setUri(URI uri)
setUri
in interface MutableResourceMetadata<T extends Enum<T>>
ResourceMetadata.getUri()
public void setLocation(Location location)
setLocation
in interface MutableResourceMetadata<T extends Enum<T>>
ResourceMetadata.getLocation()
public Location getLocation()
getLocation
in interface ResourceMetadata<T extends Enum<T>>
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |