public class MutableStorageMetadataImpl extends MutableResourceMetadataImpl<StorageType> implements MutableStorageMetadata
Constructor and Description |
---|
MutableStorageMetadataImpl() |
MutableStorageMetadataImpl(StorageMetadata from) |
Modifier and Type | Method and 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 resource
|
Long |
getSize()
Size of the resource, possibly null.
|
int |
hashCode() |
void |
setCreationDate(Date creationDate) |
void |
setETag(String eTag) |
void |
setLastModified(Date lastModified) |
void |
setSize(Long size) |
protected com.google.common.base.Objects.ToStringHelper |
string() |
compareTo, getLocation, getName, getProviderId, getType, getUri, getUserMetadata, 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()
public boolean equals(Object object)
equals
in class MutableResourceMetadataImpl<StorageType>
public int hashCode()
hashCode
in class MutableResourceMetadataImpl<StorageType>
protected com.google.common.base.Objects.ToStringHelper string()
string
in class MutableResourceMetadataImpl<StorageType>
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.