Class BlobBuilderImpl
- java.lang.Object
-
- org.jclouds.blobstore.domain.internal.BlobBuilderImpl
-
- All Implemented Interfaces:
BlobBuilder
public class BlobBuilderImpl extends Object implements BlobBuilder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BlobBuilderImpl.PayloadBlobBuilderImpl
-
Nested classes/interfaces inherited from interface org.jclouds.blobstore.domain.BlobBuilder
BlobBuilder.PayloadBlobBuilder
-
-
Constructor Summary
Constructors Constructor Description BlobBuilderImpl()
-
Method Summary
All Methods Instance Methods Concrete 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[] data)
BlobBuilder.PayloadBlobBuilder
payload(com.google.common.io.ByteSource data)
BlobBuilder.PayloadBlobBuilder
payload(File data)
BlobBuilder.PayloadBlobBuilder
payload(InputStream data)
BlobBuilder.PayloadBlobBuilder
payload(String data)
BlobBuilder.PayloadBlobBuilder
payload(Payload payload)
BlobBuilder
tier(Tier tier)
BlobBuilder
type(StorageType type)
BlobBuilder
userMetadata(Map<String,String> userMetadata)
-
-
-
Method Detail
-
name
public BlobBuilder name(String name)
- Specified by:
name
in interfaceBlobBuilder
- Parameters:
name
- The name of theBlob
. Typically refers to an http path.
-
tier
public BlobBuilder tier(Tier tier)
- Specified by:
tier
in interfaceBlobBuilder
- Parameters:
tier
- The storage tier of theBlob
. Typically STANDARD.
-
type
public BlobBuilder type(StorageType type)
- Specified by:
type
in interfaceBlobBuilder
- Parameters:
type
- overrides default type ofStorageType.BLOB
-
eTag
public BlobBuilder eTag(String eTag)
- Specified by:
eTag
in interfaceBlobBuilder
- Parameters:
eTag
- Entity Tag associated with the Blob. Typically, content MD5 hash.
-
userMetadata
public BlobBuilder userMetadata(Map<String,String> userMetadata)
- Specified by:
userMetadata
in interfaceBlobBuilder
- Parameters:
userMetadata
- User defined metadata associated with thisBlob
.
-
payload
public BlobBuilder.PayloadBlobBuilder payload(Payload payload)
- Specified by:
payload
in interfaceBlobBuilder
- Parameters:
payload
- payload you wish to construct theBlob
with.
-
payload
public BlobBuilder.PayloadBlobBuilder payload(InputStream data)
- Specified by:
payload
in interfaceBlobBuilder
- Parameters:
data
- payload you wish to construct theBlob
with.
-
payload
public BlobBuilder.PayloadBlobBuilder payload(byte[] data)
- Specified by:
payload
in interfaceBlobBuilder
- Parameters:
data
- payload you wish to construct theBlob
with.
-
payload
public BlobBuilder.PayloadBlobBuilder payload(com.google.common.io.ByteSource data)
- Specified by:
payload
in interfaceBlobBuilder
-
payload
public BlobBuilder.PayloadBlobBuilder payload(String data)
- Specified by:
payload
in interfaceBlobBuilder
- Parameters:
data
- payload you wish to construct theBlob
with.
-
payload
public BlobBuilder.PayloadBlobBuilder payload(File data)
- Specified by:
payload
in interfaceBlobBuilder
- Parameters:
data
- payload you wish to construct theBlob
with.
-
build
public Blob build()
Description copied from interface:BlobBuilder
This makes a blob from the currently configured parameters.- Specified by:
build
in interfaceBlobBuilder
- Returns:
- a new blob from the current parameters
-
forSigning
public BlobBuilder.PayloadBlobBuilder forSigning()
Description copied from interface:BlobBuilder
If you are creating a blob only for signing, use this. {@see BlobRequestSigner}- Specified by:
forSigning
in interfaceBlobBuilder
-
-