Package org.jclouds.s3.domain.internal
Class MutableObjectMetadataImpl
java.lang.Object
org.jclouds.s3.domain.internal.MutableObjectMetadataImpl
- All Implemented Interfaces:
Comparable<ObjectMetadata>,MutableObjectMetadata,ObjectMetadata
Allows you to manipulate metadata.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jclouds.s3.domain.ObjectMetadata
ObjectMetadata.StorageClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanDeprecated.call getContentMetadata().getCacheControl() insteadgetETag()getKey()The key is the handle that you assign to an object that allows you retrieve it later.getOwner()Every bucket and object in Amazon S3 has an owner, the user that created the bucket or object.Currently defaults to 'STANDARD' and not used.getUri()inthashCode()voidvoidsetCacheControl(String cacheControl) Deprecated.call getContentMetadata().setCacheControl(String) insteadvoidsetContentMetadata(MutableContentMetadata contentMetadata) voidvoidThe key is the handle that you assign to an object that allows you retrieve it later.voidsetLastModified(Date lastModified) voidsetOwner(CanonicalUser owner) Every bucket and object in Amazon S3 has an owner, the user that created the bucket or object.voidsetStorageClass(ObjectMetadata.StorageClass storageClass) Currently defaults to 'STANDARD' and not used.voidvoidsetUserMetadata(Map<String, String> userMetadata) toString()
-
Constructor Details
-
MutableObjectMetadataImpl
public MutableObjectMetadataImpl() -
MutableObjectMetadataImpl
-
-
Method Details
-
getKey
The key is the handle that you assign to an object that allows you retrieve it later. A key is a sequence of Unicode characters whose UTF-8 encoding is at most 1024 bytes long. Each object in a bucket must have a unique key.- Specified by:
getKeyin interfaceObjectMetadata- See Also:
-
getBucket
- Specified by:
getBucketin interfaceObjectMetadata
-
getUri
- Specified by:
getUriin interfaceObjectMetadata
-
setUri
- Specified by:
setUriin interfaceMutableObjectMetadata
-
getOwner
Every bucket and object in Amazon S3 has an owner, the user that created the bucket or object. The owner of a bucket or object cannot be changed. However, if the object is overwritten by another user (deleted and rewritten), the new object will have a new owner.- Specified by:
getOwnerin interfaceObjectMetadata
-
getStorageClass
Currently defaults to 'STANDARD' and not used.- Specified by:
getStorageClassin interfaceObjectMetadata
-
getCacheControl
Deprecated.call getContentMetadata().getCacheControl() insteadDescription copied from interface:ObjectMetadataCan be used to specify caching behavior along the request/reply chain.- Specified by:
getCacheControlin interfaceObjectMetadata
-
getLastModified
- Specified by:
getLastModifiedin interfaceObjectMetadata
-
getETag
- Specified by:
getETagin interfaceObjectMetadata
-
compareTo
- Specified by:
compareToin interfaceComparable<ObjectMetadata>
-
getUserMetadata
- Specified by:
getUserMetadatain interfaceObjectMetadata
-
setCacheControl
Deprecated.call getContentMetadata().setCacheControl(String) insteadDescription copied from interface:MutableObjectMetadataCan be used to specify caching behavior along the request/reply chain.- Specified by:
setCacheControlin interfaceMutableObjectMetadata
-
setETag
- Specified by:
setETagin interfaceMutableObjectMetadata
-
setKey
The key is the handle that you assign to an object that allows you retrieve it later. A key is a sequence of Unicode characters whose UTF-8 encoding is at most 1024 bytes long. Each object in a bucket must have a unique key.- Specified by:
setKeyin interfaceMutableObjectMetadata
-
setBucket
- Specified by:
setBucketin interfaceMutableObjectMetadata
-
setLastModified
- Specified by:
setLastModifiedin interfaceMutableObjectMetadata
-
setOwner
Every bucket and object in Amazon S3 has an owner, the user that created the bucket or object. The owner of a bucket or object cannot be changed. However, if the object is overwritten by another user (deleted and rewritten), the new object will have a new owner.- Specified by:
setOwnerin interfaceMutableObjectMetadata
-
setStorageClass
Currently defaults to 'STANDARD' and not used.- Specified by:
setStorageClassin interfaceMutableObjectMetadata
-
setUserMetadata
- Specified by:
setUserMetadatain interfaceMutableObjectMetadata
-
getContentMetadata
- Specified by:
getContentMetadatain interfaceMutableObjectMetadata- Specified by:
getContentMetadatain interfaceObjectMetadata
-
setContentMetadata
- Specified by:
setContentMetadatain interfaceMutableObjectMetadata
-
hashCode
public int hashCode() -
equals
-
toString
-