Package net.solarnetwork.common.s3
Interface S3ObjectMetadata
- All Superinterfaces:
net.solarnetwork.io.ResourceMetadata
- All Known Implementing Classes:
S3ObjectMeta,SdkS3Object
public interface S3ObjectMetadata
extends net.solarnetwork.io.ResourceMetadata
Metadata related to an S3 object.
- Version:
- 1.1
- Author:
- matt
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe metadata map key for thegetSize()value.static final StringThe metadata map key for thegetStorageClass()value.Fields inherited from interface net.solarnetwork.io.ResourceMetadata
CONTENT_TYPE_KEY, DEFAULT_CONTENT_TYPE, MODIFIED_KEY -
Method Summary
Modifier and TypeMethodDescriptionlonggetSize()Get the object's content size.Get the object storage class key to use.default booleanisCustomKey(String key) Methods inherited from interface net.solarnetwork.io.ResourceMetadata
asCustomMap, asMap, asStandardMap, getContentType, getModified, populateMap
-
Field Details
-
SIZE_KEY
The metadata map key for thegetSize()value.- See Also:
-
STORAGE_CLASS_KEY
The metadata map key for thegetStorageClass()value.- See Also:
-
-
Method Details
-
getSize
long getSize()Get the object's content size.- Returns:
- the size, in bytes
-
getStorageClass
String getStorageClass()Get the object storage class key to use.- Returns:
- the storage class
-
isCustomKey
- Specified by:
isCustomKeyin interfacenet.solarnetwork.io.ResourceMetadata
-