public class MutableStorageMetadataImpl extends MutableResourceMetadataImpl<StorageType> implements MutableStorageMetadata
Constructor and Description |
---|
MutableStorageMetadataImpl() |
MutableStorageMetadataImpl(StorageMetadata from) |
Modifier and Type | Method and Description |
---|---|
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 resource
|
Long |
getSize()
Size of the resource, possibly null.
|
void |
setCreationDate(Date creationDate) |
void |
setETag(String eTag) |
void |
setLastModified(Date lastModified) |
void |
setSize(Long size) |
compareTo, equals, getLocation, getName, getProviderId, getType, getUri, getUserMetadata, hashCode, setId, setLocation, setName, setType, setUri, setUserMetadata, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
setId, setLocation, setName, setType, setUri, setUserMetadata
getName, getProviderId, getType, getUri, getUserMetadata
getLocation
compareTo
public MutableStorageMetadataImpl()
public MutableStorageMetadataImpl(StorageMetadata from)
public String getETag()
getETag
in interface StorageMetadata
org.jclouds.blobstore.attr.ContainerCapability#CONTAINER_ETAG
,
org.jclouds.blobstore.attr.ContainerCapability#BLOB_ETAG
public Date getCreationDate()
StorageMetadata
getCreationDate
in interface StorageMetadata
public void setCreationDate(Date creationDate)
setCreationDate
in interface MutableStorageMetadata
StorageMetadata.getCreationDate()
public Date getLastModified()
getLastModified
in interface StorageMetadata
org.jclouds.blobstore.attr.ContainerCapability#CONTAINER_LAST_MODIFIED
,
org.jclouds.blobstore.attr.ContainerCapability#BLOB_LAST_MODIFIED
,
ContainerCapability.MILLISECOND_PRECISION
public void setLastModified(Date lastModified)
setLastModified
in interface MutableStorageMetadata
StorageMetadata.getLastModified()
public void setETag(String eTag)
setETag
in interface MutableStorageMetadata
StorageMetadata.getETag()
public Long getSize()
StorageMetadata
getSize
in interface StorageMetadata
public void setSize(Long size)
setSize
in interface MutableStorageMetadata
StorageMetadata.getSize()
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.