Class StorageMetadataImpl
java.lang.Object
org.jclouds.domain.internal.ResourceMetadataImpl<StorageType>
org.jclouds.blobstore.domain.internal.StorageMetadataImpl
- All Implemented Interfaces:
Comparable<ResourceMetadata<StorageType>>
,StorageMetadata
,ResourceMetadata<StorageType>
- Direct Known Subclasses:
BlobMetadataImpl
public class StorageMetadataImpl
extends ResourceMetadataImpl<StorageType>
implements StorageMetadata
Idpayload of the object
-
Constructor Summary
ConstructorsConstructorDescriptionStorageMetadataImpl
(StorageType type, String id, String name, Location location, URI uri, String eTag, Date creationDate, Date lastModified, Map<String, String> userMetadata) Deprecated.call StorageMetadataImpl(StorageType.class, String.class, String.class, Location.class, URI.class, String.class, Date.class, Date.class, Map.class, Long.class)StorageMetadataImpl
(StorageType type, String id, String name, Location location, URI uri, String eTag, Date creationDate, Date lastModified, Map<String, String> userMetadata, Long size) Deprecated.call StorageMetadataImpl(StorageType.class, String.class, String.class, Location.class, URI.class, String.class, Date.class, Date.class, Map.class, Long.class, Tier.class)StorageMetadataImpl
(StorageType type, String id, String name, Location location, URI uri, String eTag, Date creationDate, Date lastModified, Map<String, String> userMetadata, Long size, Tier tier) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Creation date of the resource, possibly null.getETag()
The eTag value stored in the Etag header returned by HTTP.Last modification time of the resourcegetSize()
Size of the resource, possibly null.getTier()
getType()
Whether this resource is a container, file, etc.int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
Methods inherited from class org.jclouds.domain.internal.ResourceMetadataImpl
compareTo, getLocation, getName, getProviderId, getUri, getUserMetadata, 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.ResourceMetadata
getLocation
Methods inherited from interface org.jclouds.blobstore.domain.StorageMetadata
getName, getProviderId, getUri, getUserMetadata
-
Constructor Details
-
StorageMetadataImpl
-
StorageMetadataImpl
@Deprecated public StorageMetadataImpl(StorageType type, @Nullable String id, @Nullable String name, @Nullable Location location, @Nullable URI uri, @Nullable String eTag, @Nullable Date creationDate, @Nullable Date lastModified, Map<String, String> userMetadata, @Nullable Long size) Deprecated.call StorageMetadataImpl(StorageType.class, String.class, String.class, Location.class, URI.class, String.class, Date.class, Date.class, Map.class, Long.class, Tier.class) -
StorageMetadataImpl
@Deprecated public StorageMetadataImpl(StorageType type, @Nullable String id, @Nullable String name, @Nullable Location location, @Nullable URI uri, @Nullable String eTag, @Nullable Date creationDate, @Nullable Date lastModified, Map<String, String> userMetadata) Deprecated.call StorageMetadataImpl(StorageType.class, String.class, String.class, Location.class, URI.class, String.class, Date.class, Date.class, Map.class, Long.class)
-
-
Method Details
-
getType
Whether this resource is a container, file, etc.- Specified by:
getType
in interfaceResourceMetadata<StorageType>
- Specified by:
getType
in interfaceStorageMetadata
-
hashCode
public int hashCode()- Overrides:
hashCode
in classResourceMetadataImpl<StorageType>
-
equals
- Overrides:
equals
in classResourceMetadataImpl<StorageType>
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()- Overrides:
string
in classResourceMetadataImpl<StorageType>
-
getETag
The eTag value stored in the Etag header returned by HTTP.- Specified by:
getETag
in interfaceStorageMetadata
- See Also:
-
getCreationDate
Description copied from interface:StorageMetadata
Creation date of the resource, possibly null.- Specified by:
getCreationDate
in interfaceStorageMetadata
-
getLastModified
Last modification time of the resource- Specified by:
getLastModified
in interfaceStorageMetadata
- See Also:
-
getSize
Description copied from interface:StorageMetadata
Size of the resource, possibly null.- Specified by:
getSize
in interfaceStorageMetadata
-
getTier
- Specified by:
getTier
in interfaceStorageMetadata
-