org.jclouds.s3.domain
Class ObjectMetadataBuilder
java.lang.Object
org.jclouds.s3.domain.ObjectMetadataBuilder
public class ObjectMetadataBuilder
- extends Object
Allows you to create ObjectMetadata
objects.
- Author:
- Adrian Cole
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectMetadataBuilder
public ObjectMetadataBuilder()
create
public static ObjectMetadataBuilder create()
key
public ObjectMetadataBuilder key(String key)
bucket
public ObjectMetadataBuilder bucket(String bucket)
owner
public ObjectMetadataBuilder owner(CanonicalUser owner)
eTag
public ObjectMetadataBuilder eTag(String eTag)
uri
public ObjectMetadataBuilder uri(URI uri)
lastModified
public ObjectMetadataBuilder lastModified(Date lastModified)
storageClass
public ObjectMetadataBuilder storageClass(ObjectMetadata.StorageClass storageClass)
cacheControl
public ObjectMetadataBuilder cacheControl(String cacheControl)
userMetadata
public ObjectMetadataBuilder userMetadata(Map<String,String> userMetadata)
contentDisposition
public ObjectMetadataBuilder contentDisposition(String contentDisposition)
contentEncoding
public ObjectMetadataBuilder contentEncoding(String contentEncoding)
contentLanguage
public ObjectMetadataBuilder contentLanguage(String contentLanguage)
contentLength
public ObjectMetadataBuilder contentLength(Long contentLength)
contentMD5
public ObjectMetadataBuilder contentMD5(byte[] md5)
contentType
public ObjectMetadataBuilder contentType(String contentType)
build
public ObjectMetadata build()
Copyright © 2009-2011 jclouds. All Rights Reserved.