public interface BlobBuilder
Modifier and Type | Interface and Description |
---|---|
static interface |
BlobBuilder.PayloadBlobBuilder |
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[] payload) |
BlobBuilder.PayloadBlobBuilder |
payload(com.google.common.io.ByteSource byteSource) |
BlobBuilder.PayloadBlobBuilder |
payload(File payload) |
BlobBuilder.PayloadBlobBuilder |
payload(InputStream payload) |
BlobBuilder.PayloadBlobBuilder |
payload(Payload payload) |
BlobBuilder.PayloadBlobBuilder |
payload(String payload) |
BlobBuilder |
type(StorageType type) |
BlobBuilder |
userMetadata(Map<String,String> userMetadata) |
BlobBuilder name(String name)
name
- The name of the Blob
. Typically refers to an http path.BlobBuilder type(StorageType type)
type
- overrides default type of StorageType.BLOB
BlobBuilder userMetadata(Map<String,String> userMetadata)
userMetadata
- User defined metadata associated with this Blob
.BlobBuilder.PayloadBlobBuilder payload(Payload payload)
payload
- payload you wish to construct the Blob
with.BlobBuilder.PayloadBlobBuilder payload(InputStream payload)
payload
- payload you wish to construct the Blob
with.BlobBuilder.PayloadBlobBuilder forSigning()
BlobRequestSigner
BlobBuilder.PayloadBlobBuilder payload(byte[] payload)
payload
- payload you wish to construct the Blob
with.BlobBuilder.PayloadBlobBuilder payload(com.google.common.io.ByteSource byteSource)
payload
- payload you wish to construct the Blob
with.BlobBuilder.PayloadBlobBuilder payload(String payload)
payload
- payload you wish to construct the Blob
with.BlobBuilder.PayloadBlobBuilder payload(File payload)
payload
- payload you wish to construct the Blob
with.Blob build()
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.