Class MutableStorageMetadataImpl
- java.lang.Object
-
- org.jclouds.domain.internal.MutableResourceMetadataImpl<StorageType>
-
- org.jclouds.blobstore.domain.internal.MutableStorageMetadataImpl
-
- All Implemented Interfaces:
Comparable<ResourceMetadata<StorageType>>
,MutableStorageMetadata
,StorageMetadata
,MutableResourceMetadata<StorageType>
,ResourceMetadata<StorageType>
- Direct Known Subclasses:
MutableBlobMetadataImpl
public class MutableStorageMetadataImpl extends MutableResourceMetadataImpl<StorageType> implements MutableStorageMetadata
Used to construct new resources or modify existing ones.
-
-
Constructor Summary
Constructors Constructor Description MutableStorageMetadataImpl()
MutableStorageMetadataImpl(StorageMetadata from)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Date
getCreationDate()
Creation date of the resource, possibly null.String
getETag()
The eTag value stored in the Etag header returned by HTTP.Date
getLastModified()
Last modification time of the resourceLong
getSize()
Size of the resource, possibly null.Tier
getTier()
int
hashCode()
void
setCreationDate(Date creationDate)
void
setETag(String eTag)
void
setLastModified(Date lastModified)
void
setSize(Long size)
void
setTier(Tier tier)
protected com.google.common.base.MoreObjects.ToStringHelper
string()
-
Methods inherited from class org.jclouds.domain.internal.MutableResourceMetadataImpl
compareTo, getLocation, getName, getProviderId, getType, getUri, getUserMetadata, setId, setLocation, setName, setType, setUri, setUserMetadata, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface org.jclouds.domain.MutableResourceMetadata
setId, setLocation, setName, setType, setUri, setUserMetadata
-
Methods inherited from interface org.jclouds.domain.ResourceMetadata
getLocation
-
Methods inherited from interface org.jclouds.blobstore.domain.StorageMetadata
getName, getProviderId, getType, getUri, getUserMetadata
-
-
-
-
Constructor Detail
-
MutableStorageMetadataImpl
public MutableStorageMetadataImpl()
-
MutableStorageMetadataImpl
public MutableStorageMetadataImpl(StorageMetadata from)
-
-
Method Detail
-
getETag
public String getETag()
The eTag value stored in the Etag header returned by HTTP.- Specified by:
getETag
in interfaceStorageMetadata
- See Also:
org.jclouds.blobstore.attr.ContainerCapability#CONTAINER_ETAG
,org.jclouds.blobstore.attr.ContainerCapability#BLOB_ETAG
-
getCreationDate
public Date getCreationDate()
Description copied from interface:StorageMetadata
Creation date of the resource, possibly null.- Specified by:
getCreationDate
in interfaceStorageMetadata
-
setCreationDate
public void setCreationDate(Date creationDate)
- Specified by:
setCreationDate
in interfaceMutableStorageMetadata
- See Also:
StorageMetadata.getCreationDate()
-
getLastModified
public Date getLastModified()
Last modification time of the resource- Specified by:
getLastModified
in interfaceStorageMetadata
- See Also:
org.jclouds.blobstore.attr.ContainerCapability#CONTAINER_LAST_MODIFIED
,org.jclouds.blobstore.attr.ContainerCapability#BLOB_LAST_MODIFIED
,ContainerCapability.MILLISECOND_PRECISION
-
setLastModified
public void setLastModified(Date lastModified)
- Specified by:
setLastModified
in interfaceMutableStorageMetadata
- See Also:
StorageMetadata.getLastModified()
-
setETag
public void setETag(String eTag)
- Specified by:
setETag
in interfaceMutableStorageMetadata
- See Also:
StorageMetadata.getETag()
-
getSize
public Long getSize()
Description copied from interface:StorageMetadata
Size of the resource, possibly null.- Specified by:
getSize
in interfaceStorageMetadata
-
setSize
public void setSize(Long size)
- Specified by:
setSize
in interfaceMutableStorageMetadata
- See Also:
StorageMetadata.getSize()
-
getTier
public Tier getTier()
- Specified by:
getTier
in interfaceStorageMetadata
-
setTier
public void setTier(Tier tier)
- Specified by:
setTier
in interfaceMutableStorageMetadata
-
equals
public boolean equals(Object object)
- Overrides:
equals
in classMutableResourceMetadataImpl<StorageType>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classMutableResourceMetadataImpl<StorageType>
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
- Overrides:
string
in classMutableResourceMetadataImpl<StorageType>
-
-