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 TypeMethodDescriptionbooleanCreation 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.inthashCode()protected com.google.common.base.MoreObjects.ToStringHelperstring()Methods inherited from class org.jclouds.domain.internal.ResourceMetadataImpl
compareTo, getLocation, getName, getProviderId, getUri, getUserMetadata, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.jclouds.domain.ResourceMetadata
getLocationMethods 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:
getTypein interfaceResourceMetadata<StorageType>- Specified by:
getTypein interfaceStorageMetadata
-
hashCode
public int hashCode()- Overrides:
hashCodein classResourceMetadataImpl<StorageType>
-
equals
- Overrides:
equalsin classResourceMetadataImpl<StorageType>
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()- Overrides:
stringin classResourceMetadataImpl<StorageType>
-
getETag
The eTag value stored in the Etag header returned by HTTP.- Specified by:
getETagin interfaceStorageMetadata- See Also:
-
getCreationDate
Description copied from interface:StorageMetadataCreation date of the resource, possibly null.- Specified by:
getCreationDatein interfaceStorageMetadata
-
getLastModified
Last modification time of the resource- Specified by:
getLastModifiedin interfaceStorageMetadata- See Also:
-
getSize
Description copied from interface:StorageMetadataSize of the resource, possibly null.- Specified by:
getSizein interfaceStorageMetadata
-
getTier
- Specified by:
getTierin interfaceStorageMetadata
-