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 booleanequals(Object object)DategetCreationDate()Creation date of the resource, possibly null.StringgetETag()The eTag value stored in the Etag header returned by HTTP.DategetLastModified()Last modification time of the resourceLonggetSize()Size of the resource, possibly null.TiergetTier()inthashCode()voidsetCreationDate(Date creationDate)voidsetETag(String eTag)voidsetLastModified(Date lastModified)voidsetSize(Long size)voidsetTier(Tier tier)protected com.google.common.base.MoreObjects.ToStringHelperstring()-
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:
getETagin 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:StorageMetadataCreation date of the resource, possibly null.- Specified by:
getCreationDatein interfaceStorageMetadata
-
setCreationDate
public void setCreationDate(Date creationDate)
- Specified by:
setCreationDatein interfaceMutableStorageMetadata- See Also:
StorageMetadata.getCreationDate()
-
getLastModified
public Date getLastModified()
Last modification time of the resource- Specified by:
getLastModifiedin 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:
setLastModifiedin interfaceMutableStorageMetadata- See Also:
StorageMetadata.getLastModified()
-
setETag
public void setETag(String eTag)
- Specified by:
setETagin interfaceMutableStorageMetadata- See Also:
StorageMetadata.getETag()
-
getSize
public Long getSize()
Description copied from interface:StorageMetadataSize of the resource, possibly null.- Specified by:
getSizein interfaceStorageMetadata
-
setSize
public void setSize(Long size)
- Specified by:
setSizein interfaceMutableStorageMetadata- See Also:
StorageMetadata.getSize()
-
getTier
public Tier getTier()
- Specified by:
getTierin interfaceStorageMetadata
-
setTier
public void setTier(Tier tier)
- Specified by:
setTierin interfaceMutableStorageMetadata
-
equals
public boolean equals(Object object)
- Overrides:
equalsin classMutableResourceMetadataImpl<StorageType>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classMutableResourceMetadataImpl<StorageType>
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
- Overrides:
stringin classMutableResourceMetadataImpl<StorageType>
-
-