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 Modifier and Type Interface Description static interface
BlobBuilder.PayloadBlobBuilder
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Blob
build()
This makes a blob from the currently configured parameters.BlobBuilder
eTag(String eTag)
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(String payload)
BlobBuilder.PayloadBlobBuilder
payload(Payload payload)
BlobBuilder
tier(Tier tier)
BlobBuilder
type(StorageType type)
BlobBuilder
userMetadata(Map<String,String> userMetadata)
-
-
-
Method Detail
-
name
BlobBuilder name(String name)
- Parameters:
name
- The name of theBlob
. Typically refers to an http path.
-
tier
BlobBuilder tier(Tier tier)
- Parameters:
tier
- The storage tier of theBlob
. Typically STANDARD.
-
type
BlobBuilder type(StorageType type)
- Parameters:
type
- overrides default type ofStorageType.BLOB
-
userMetadata
BlobBuilder userMetadata(Map<String,String> userMetadata)
- Parameters:
userMetadata
- User defined metadata associated with thisBlob
.
-
eTag
BlobBuilder eTag(String eTag)
- Parameters:
eTag
- Entity Tag associated with the Blob. Typically, content MD5 hash.
-
payload
BlobBuilder.PayloadBlobBuilder payload(Payload payload)
- Parameters:
payload
- payload you wish to construct theBlob
with.
-
payload
BlobBuilder.PayloadBlobBuilder payload(InputStream 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. {@see BlobRequestSigner}
-
payload
BlobBuilder.PayloadBlobBuilder payload(byte[] payload)
- Parameters:
payload
- payload you wish to construct theBlob
with.
-
payload
BlobBuilder.PayloadBlobBuilder payload(com.google.common.io.ByteSource byteSource)
- Parameters:
payload
- payload you wish to construct theBlob
with.
-
payload
BlobBuilder.PayloadBlobBuilder payload(String payload)
- Parameters:
payload
- payload you wish to construct theBlob
with.
-
payload
BlobBuilder.PayloadBlobBuilder payload(File 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
-
-