Class BlobBuilderImpl.PayloadBlobBuilderImpl
- java.lang.Object
-
- org.jclouds.blobstore.domain.internal.BlobBuilderImpl.PayloadBlobBuilderImpl
-
- All Implemented Interfaces:
BlobBuilder
,BlobBuilder.PayloadBlobBuilder
- Enclosing class:
- BlobBuilderImpl
public static class BlobBuilderImpl.PayloadBlobBuilderImpl extends Object implements BlobBuilder.PayloadBlobBuilder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jclouds.blobstore.domain.BlobBuilder
BlobBuilder.PayloadBlobBuilder
-
-
Constructor Summary
Constructors Constructor Description PayloadBlobBuilderImpl(BlobBuilder builder, Payload payload)
-
Method Summary
-
-
-
Constructor Detail
-
PayloadBlobBuilderImpl
public PayloadBlobBuilderImpl(BlobBuilder builder, Payload payload)
-
-
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
-
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 payload)
- Specified by:
payload
in interfaceBlobBuilder
- Parameters:
payload
- payload you wish to construct theBlob
with.
-
payload
public BlobBuilder.PayloadBlobBuilder payload(byte[] payload)
- Specified by:
payload
in interfaceBlobBuilder
- Parameters:
payload
- payload you wish to construct theBlob
with.
-
payload
public BlobBuilder.PayloadBlobBuilder payload(com.google.common.io.ByteSource payload)
- Specified by:
payload
in interfaceBlobBuilder
-
payload
public BlobBuilder.PayloadBlobBuilder payload(String payload)
- Specified by:
payload
in interfaceBlobBuilder
- Parameters:
payload
- payload you wish to construct theBlob
with.
-
payload
public BlobBuilder.PayloadBlobBuilder payload(File payload)
- Specified by:
payload
in interfaceBlobBuilder
- Parameters:
payload
- 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
-
cacheControl
public BlobBuilder.PayloadBlobBuilder cacheControl(String cacheControl)
- Specified by:
cacheControl
in interfaceBlobBuilder.PayloadBlobBuilder
-
contentLength
public BlobBuilder.PayloadBlobBuilder contentLength(long contentLength)
- Specified by:
contentLength
in interfaceBlobBuilder.PayloadBlobBuilder
-
contentMD5
@Deprecated public BlobBuilder.PayloadBlobBuilder contentMD5(byte[] md5)
Deprecated.usecontentMD5(HashCode)
instead.- Specified by:
contentMD5
in interfaceBlobBuilder.PayloadBlobBuilder
-
contentMD5
public BlobBuilder.PayloadBlobBuilder contentMD5(com.google.common.hash.HashCode md5)
- Specified by:
contentMD5
in interfaceBlobBuilder.PayloadBlobBuilder
-
contentType
public BlobBuilder.PayloadBlobBuilder contentType(com.google.common.net.MediaType contentType)
- Specified by:
contentType
in interfaceBlobBuilder.PayloadBlobBuilder
-
contentType
public BlobBuilder.PayloadBlobBuilder contentType(String contentType)
- Specified by:
contentType
in interfaceBlobBuilder.PayloadBlobBuilder
-
contentDisposition
public BlobBuilder.PayloadBlobBuilder contentDisposition(String contentDisposition)
- Specified by:
contentDisposition
in interfaceBlobBuilder.PayloadBlobBuilder
-
contentLanguage
public BlobBuilder.PayloadBlobBuilder contentLanguage(String contentLanguage)
- Specified by:
contentLanguage
in interfaceBlobBuilder.PayloadBlobBuilder
-
contentEncoding
public BlobBuilder.PayloadBlobBuilder contentEncoding(String contentEncoding)
- Specified by:
contentEncoding
in interfaceBlobBuilder.PayloadBlobBuilder
-
expires
public BlobBuilder.PayloadBlobBuilder expires(Date expires)
- Specified by:
expires
in interfaceBlobBuilder.PayloadBlobBuilder
-
eTag
public BlobBuilder.PayloadBlobBuilder eTag(String eTag)
- Specified by:
eTag
in interfaceBlobBuilder
- Specified by:
eTag
in interfaceBlobBuilder.PayloadBlobBuilder
- Parameters:
eTag
- Entity Tag associated with the Blob. Typically, content MD5 hash.
-
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
-
-