org.jclouds.s3.domain
Class ObjectMetadataBuilder

java.lang.Object
  extended by org.jclouds.s3.domain.ObjectMetadataBuilder

public class ObjectMetadataBuilder
extends Object

Allows you to create ObjectMetadata objects.

Author:
Adrian Cole

Constructor Summary
ObjectMetadataBuilder()
           
 
Method Summary
 ObjectMetadataBuilder bucket(String bucket)
           
 ObjectMetadata build()
           
 ObjectMetadataBuilder cacheControl(String cacheControl)
           
 ObjectMetadataBuilder contentDisposition(String contentDisposition)
           
 ObjectMetadataBuilder contentEncoding(String contentEncoding)
           
 ObjectMetadataBuilder contentLanguage(String contentLanguage)
           
 ObjectMetadataBuilder contentLength(Long contentLength)
           
 ObjectMetadataBuilder contentMD5(byte[] md5)
           
 ObjectMetadataBuilder contentType(String contentType)
           
static ObjectMetadataBuilder create()
           
 ObjectMetadataBuilder eTag(String eTag)
           
 ObjectMetadataBuilder key(String key)
           
 ObjectMetadataBuilder lastModified(Date lastModified)
           
 ObjectMetadataBuilder owner(CanonicalUser owner)
           
 ObjectMetadataBuilder storageClass(ObjectMetadata.StorageClass storageClass)
           
 ObjectMetadataBuilder uri(URI uri)
           
 ObjectMetadataBuilder userMetadata(Map<String,String> userMetadata)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectMetadataBuilder

public ObjectMetadataBuilder()
Method Detail

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-2012 jclouds. All Rights Reserved.