org.jclouds.s3.domain
Interface MutableObjectMetadata

All Superinterfaces:
Comparable<ObjectMetadata>, ObjectMetadata
All Known Implementing Classes:
MutableObjectMetadataImpl

public interface MutableObjectMetadata
extends ObjectMetadata

/** Amazon S3 is designed to store objects. Objects are stored in buckets and consist of a value, a key, metadata, and an access control policy.

Author:
Adrian Cole
See Also:

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jclouds.s3.domain.ObjectMetadata
ObjectMetadata.StorageClass
 
Method Summary
 MutableContentMetadata getContentMetadata()
           
 void setBucket(String bucket)
           
 void setCacheControl(String cacheControl)
          Can be used to specify caching behavior along the request/reply chain.
 void setContentMetadata(MutableContentMetadata md)
           
 void setETag(String eTag)
           
 void setKey(String key)
          The key is the handle that you assign to an object that allows you retrieve it later.
 void setLastModified(Date lastModified)
           
 void setOwner(CanonicalUser owner)
          Every bucket and object in Amazon S3 has an owner, the user that created the bucket or object.
 void setStorageClass(ObjectMetadata.StorageClass storageClass)
          Currently defaults to 'STANDARD' and not used.
 void setUri(URI uri)
           
 void setUserMetadata(Map<String,String> userMetadata)
           
 
Methods inherited from interface org.jclouds.s3.domain.ObjectMetadata
getBucket, getCacheControl, getETag, getKey, getLastModified, getOwner, getStorageClass, getUri, getUserMetadata
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

setKey

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.

See Also:

setBucket

void setBucket(String bucket)

setOwner

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.


setStorageClass

void setStorageClass(ObjectMetadata.StorageClass storageClass)
Currently defaults to 'STANDARD' and not used.


setCacheControl

void setCacheControl(String cacheControl)
Can be used to specify caching behavior along the request/reply chain.


getContentMetadata

MutableContentMetadata getContentMetadata()
Specified by:
getContentMetadata in interface ObjectMetadata

setContentMetadata

void setContentMetadata(MutableContentMetadata md)

setLastModified

void setLastModified(Date lastModified)

setETag

void setETag(String eTag)

setUserMetadata

void setUserMetadata(Map<String,String> userMetadata)

setUri

void setUri(URI uri)


Copyright © 2009-2011 jclouds. All Rights Reserved.