Package org.jclouds.s3.domain.internal
Class MutableObjectMetadataImpl
- java.lang.Object
-
- org.jclouds.s3.domain.internal.MutableObjectMetadataImpl
-
- All Implemented Interfaces:
Comparable<ObjectMetadata>,MutableObjectMetadata,ObjectMetadata
public class MutableObjectMetadataImpl extends Object implements MutableObjectMetadata
Allows you to manipulate metadata.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jclouds.s3.domain.ObjectMetadata
ObjectMetadata.StorageClass
-
-
Constructor Summary
Constructors Constructor Description MutableObjectMetadataImpl()MutableObjectMetadataImpl(ObjectMetadata from)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intcompareTo(ObjectMetadata o)booleanequals(Object obj)StringgetBucket()StringgetCacheControl()Deprecated.call getContentMetadata().getCacheControl() insteadMutableContentMetadatagetContentMetadata()StringgetETag()StringgetKey()The key is the handle that you assign to an object that allows you retrieve it later.DategetLastModified()CanonicalUsergetOwner()Every bucket and object in Amazon S3 has an owner, the user that created the bucket or object.ObjectMetadata.StorageClassgetStorageClass()Currently defaults to 'STANDARD' and not used.URIgetUri()Map<String,String>getUserMetadata()inthashCode()voidsetBucket(String bucket)voidsetCacheControl(String cacheControl)Deprecated.call getContentMetadata().setCacheControl(String) insteadvoidsetContentMetadata(MutableContentMetadata contentMetadata)voidsetETag(String eTag)voidsetKey(String key)The 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.voidsetUri(URI uri)voidsetUserMetadata(Map<String,String> userMetadata)StringtoString()
-
-
-
Constructor Detail
-
MutableObjectMetadataImpl
public MutableObjectMetadataImpl()
-
MutableObjectMetadataImpl
public MutableObjectMetadataImpl(ObjectMetadata from)
-
-
Method Detail
-
getKey
public String 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
public String getBucket()
- Specified by:
getBucketin interfaceObjectMetadata
-
getUri
public URI getUri()
- Specified by:
getUriin interfaceObjectMetadata
-
setUri
public void setUri(URI uri)
- Specified by:
setUriin interfaceMutableObjectMetadata
-
getOwner
public CanonicalUser 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
public ObjectMetadata.StorageClass getStorageClass()
Currently defaults to 'STANDARD' and not used.- Specified by:
getStorageClassin interfaceObjectMetadata
-
getCacheControl
@Deprecated public String 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
public Date getLastModified()
- Specified by:
getLastModifiedin interfaceObjectMetadata
-
getETag
public String getETag()
- Specified by:
getETagin interfaceObjectMetadata
-
compareTo
public int compareTo(ObjectMetadata o)
- Specified by:
compareToin interfaceComparable<ObjectMetadata>
-
getUserMetadata
public Map<String,String> getUserMetadata()
- Specified by:
getUserMetadatain interfaceObjectMetadata
-
setCacheControl
@Deprecated public void setCacheControl(String cacheControl)
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
public void setETag(String eTag)
- Specified by:
setETagin interfaceMutableObjectMetadata
-
setKey
public void setKey(String key)
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
public void setBucket(String bucket)
- Specified by:
setBucketin interfaceMutableObjectMetadata
-
setLastModified
public void setLastModified(Date lastModified)
- Specified by:
setLastModifiedin interfaceMutableObjectMetadata
-
setOwner
public void setOwner(CanonicalUser owner)
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
public void setStorageClass(ObjectMetadata.StorageClass storageClass)
Currently defaults to 'STANDARD' and not used.- Specified by:
setStorageClassin interfaceMutableObjectMetadata
-
setUserMetadata
public void setUserMetadata(Map<String,String> userMetadata)
- Specified by:
setUserMetadatain interfaceMutableObjectMetadata
-
getContentMetadata
public MutableContentMetadata getContentMetadata()
- Specified by:
getContentMetadatain interfaceMutableObjectMetadata- Specified by:
getContentMetadatain interfaceObjectMetadata
-
setContentMetadata
public void setContentMetadata(MutableContentMetadata contentMetadata)
- Specified by:
setContentMetadatain interfaceMutableObjectMetadata
-
-