Package org.jclouds.domain.internal
Class MutableResourceMetadataImpl<T extends Enum<T>>
java.lang.Object
org.jclouds.domain.internal.MutableResourceMetadataImpl<T>
- All Implemented Interfaces:
Comparable<ResourceMetadata<T>>
,MutableResourceMetadata<T>
,ResourceMetadata<T>
- Direct Known Subclasses:
MutableStorageMetadataImpl
public class MutableResourceMetadataImpl<T extends Enum<T>>
extends Object
implements MutableResourceMetadata<T>
Used to construct new resources or modify existing ones.
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
Physical location of the resource, or null if n/a ex.getName()
Name of this resource.Unique identifier of this resource within its enclosing namespace.getType()
Whether this resource is a container, file, node, queue, etc.getUri()
URI used to access this resourceAny key-value pairs associated with the resource.int
hashCode()
void
void
setLocation
(Location location) void
void
void
void
setUserMetadata
(Map<String, String> userMetadata) protected com.google.common.base.MoreObjects.ToStringHelper
string()
toString()
-
Constructor Details
-
MutableResourceMetadataImpl
public MutableResourceMetadataImpl() -
MutableResourceMetadataImpl
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<T extends Enum<T>>
-
getType
Whether this resource is a container, file, node, queue, etc.- Specified by:
getType
in interfaceResourceMetadata<T extends Enum<T>>
-
getName
Name of this resource. Names are dictated by the user. For files, this may be the filename, ex. file.txt- Specified by:
getName
in interfaceResourceMetadata<T extends Enum<T>>
-
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:
getProviderId
in interfaceResourceMetadata<T extends Enum<T>>
-
getUri
URI used to access this resource- Specified by:
getUri
in interfaceResourceMetadata<T extends Enum<T>>
-
getUserMetadata
Any key-value pairs associated with the resource.- Specified by:
getUserMetadata
in interfaceResourceMetadata<T extends Enum<T>>
-
setName
- Specified by:
setName
in interfaceMutableResourceMetadata<T extends Enum<T>>
- See Also:
-
setType
- Specified by:
setType
in interfaceMutableResourceMetadata<T extends Enum<T>>
- See Also:
-
setUserMetadata
- Specified by:
setUserMetadata
in interfaceMutableResourceMetadata<T extends Enum<T>>
- See Also:
-
setId
- Specified by:
setId
in interfaceMutableResourceMetadata<T extends Enum<T>>
- See Also:
-
setUri
- Specified by:
setUri
in interfaceMutableResourceMetadata<T extends Enum<T>>
- See Also:
-
setLocation
- Specified by:
setLocation
in interfaceMutableResourceMetadata<T extends Enum<T>>
- See Also:
-
getLocation
Physical location of the resource, or null if n/a ex. us-west-1- Specified by:
getLocation
in interfaceResourceMetadata<T extends Enum<T>>
-
toString
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string() -
hashCode
public int hashCode() -
equals
-