public static class BlobBuilderImpl.PayloadBlobBuilderImpl extends Object implements BlobBuilder.PayloadBlobBuilder
BlobBuilder.PayloadBlobBuilder
Constructor and Description |
---|
BlobBuilderImpl.PayloadBlobBuilderImpl(BlobBuilder builder,
Payload payload) |
public BlobBuilderImpl.PayloadBlobBuilderImpl(BlobBuilder builder, Payload payload)
public BlobBuilder name(String name)
name
in interface BlobBuilder
name
- The name of the Blob
. Typically refers to an http path.public BlobBuilder type(StorageType type)
type
in interface BlobBuilder
type
- overrides default type of StorageType.BLOB
public BlobBuilder userMetadata(Map<String,String> userMetadata)
userMetadata
in interface BlobBuilder
userMetadata
- User defined metadata associated with this Blob
.public BlobBuilder.PayloadBlobBuilder payload(Payload payload)
payload
in interface BlobBuilder
payload
- payload you wish to construct the Blob
with.public BlobBuilder.PayloadBlobBuilder payload(InputStream payload)
payload
in interface BlobBuilder
payload
- payload you wish to construct the Blob
with.public BlobBuilder.PayloadBlobBuilder payload(byte[] payload)
payload
in interface BlobBuilder
payload
- payload you wish to construct the Blob
with.public BlobBuilder.PayloadBlobBuilder payload(com.google.common.io.ByteSource payload)
payload
in interface BlobBuilder
public BlobBuilder.PayloadBlobBuilder payload(String payload)
payload
in interface BlobBuilder
payload
- payload you wish to construct the Blob
with.public BlobBuilder.PayloadBlobBuilder payload(File payload)
payload
in interface BlobBuilder
payload
- payload you wish to construct the Blob
with.public Blob build()
BlobBuilder
build
in interface BlobBuilder
public BlobBuilder.PayloadBlobBuilder cacheControl(String cacheControl)
cacheControl
in interface BlobBuilder.PayloadBlobBuilder
public BlobBuilder.PayloadBlobBuilder contentLength(long contentLength)
contentLength
in interface BlobBuilder.PayloadBlobBuilder
@Deprecated public BlobBuilder.PayloadBlobBuilder contentMD5(byte[] md5)
contentMD5(HashCode)
instead.contentMD5
in interface BlobBuilder.PayloadBlobBuilder
public BlobBuilder.PayloadBlobBuilder contentMD5(com.google.common.hash.HashCode md5)
contentMD5
in interface BlobBuilder.PayloadBlobBuilder
public BlobBuilder.PayloadBlobBuilder contentType(com.google.common.net.MediaType contentType)
contentType
in interface BlobBuilder.PayloadBlobBuilder
public BlobBuilder.PayloadBlobBuilder contentType(String contentType)
contentType
in interface BlobBuilder.PayloadBlobBuilder
public BlobBuilder.PayloadBlobBuilder contentDisposition(String contentDisposition)
contentDisposition
in interface BlobBuilder.PayloadBlobBuilder
public BlobBuilder.PayloadBlobBuilder contentLanguage(String contentLanguage)
contentLanguage
in interface BlobBuilder.PayloadBlobBuilder
public BlobBuilder.PayloadBlobBuilder contentEncoding(String contentEncoding)
contentEncoding
in interface BlobBuilder.PayloadBlobBuilder
public BlobBuilder.PayloadBlobBuilder expires(Date expires)
expires
in interface BlobBuilder.PayloadBlobBuilder
public BlobBuilder.PayloadBlobBuilder forSigning()
BlobBuilder
BlobRequestSigner
forSigning
in interface BlobBuilder
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.