public class BlobBuilderImpl extends Object implements BlobBuilder
Modifier and Type | Class and Description |
---|---|
static class |
BlobBuilderImpl.PayloadBlobBuilderImpl |
BlobBuilder.PayloadBlobBuilder
Constructor and Description |
---|
BlobBuilderImpl() |
Modifier and Type | Method and Description |
---|---|
Blob |
build()
This makes a blob from the currently configured parameters.
|
BlobBuilder.PayloadBlobBuilder |
forSigning()
If you are creating a blob only for signing, use this.
|
BlobBuilder |
name(String name) |
BlobBuilder.PayloadBlobBuilder |
payload(byte[] data) |
BlobBuilder.PayloadBlobBuilder |
payload(com.google.common.io.ByteSource data) |
BlobBuilder.PayloadBlobBuilder |
payload(File data) |
BlobBuilder.PayloadBlobBuilder |
payload(InputStream data) |
BlobBuilder.PayloadBlobBuilder |
payload(Payload payload) |
BlobBuilder.PayloadBlobBuilder |
payload(String data) |
BlobBuilder |
type(StorageType type) |
BlobBuilder |
userMetadata(Map<String,String> userMetadata) |
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 data)
payload
in interface BlobBuilder
data
- payload you wish to construct the Blob
with.public BlobBuilder.PayloadBlobBuilder payload(byte[] data)
payload
in interface BlobBuilder
data
- payload you wish to construct the Blob
with.public BlobBuilder.PayloadBlobBuilder payload(com.google.common.io.ByteSource data)
payload
in interface BlobBuilder
public BlobBuilder.PayloadBlobBuilder payload(String data)
payload
in interface BlobBuilder
data
- payload you wish to construct the Blob
with.public BlobBuilder.PayloadBlobBuilder payload(File data)
payload
in interface BlobBuilder
data
- payload you wish to construct the Blob
with.public Blob build()
BlobBuilder
build
in interface BlobBuilder
public BlobBuilder.PayloadBlobBuilder forSigning()
BlobBuilder
BlobRequestSigner
forSigning
in interface BlobBuilder
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.