Package org.jclouds.blobstore.domain
Interface BlobBuilder
- All Known Subinterfaces:
BlobBuilder.PayloadBlobBuilder
- All Known Implementing Classes:
BlobBuilderImpl
,BlobBuilderImpl.PayloadBlobBuilderImpl
public interface BlobBuilder
In case the name was confusing, this indeed builds a Blob.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuild()
This makes a blob from the currently configured parameters.If you are creating a blob only for signing, use this.payload
(byte[] payload) payload
(com.google.common.io.ByteSource byteSource) payload
(InputStream payload) type
(StorageType type) userMetadata
(Map<String, String> userMetadata)
-
Method Details
-
name
- Parameters:
name
- The name of theBlob
. Typically refers to an http path.
-
tier
- Parameters:
tier
- The storage tier of theBlob
. Typically STANDARD.
-
type
- Parameters:
type
- overrides default type ofStorageType.BLOB
-
userMetadata
- Parameters:
userMetadata
- User defined metadata associated with thisBlob
.
-
eTag
- Parameters:
eTag
- Entity Tag associated with the Blob. Typically, content MD5 hash.
-
payload
- Parameters:
payload
- payload you wish to construct theBlob
with.
-
payload
- Parameters:
payload
- payload you wish to construct theBlob
with.
-
forSigning
BlobBuilder.PayloadBlobBuilder forSigning()If you are creating a blob only for signing, use this. -
payload
- Parameters:
payload
- payload you wish to construct theBlob
with.
-
payload
- Parameters:
payload
- payload you wish to construct theBlob
with.
-
payload
- Parameters:
payload
- payload you wish to construct theBlob
with.
-
payload
- Parameters:
payload
- payload you wish to construct theBlob
with.
-
build
Blob build()This makes a blob from the currently configured parameters.- Returns:
- a new blob from the current parameters
-