StoreBytesData.Builder

public static final class StoreBytesData.Builder extends Object

A builder for StoreBytesData objects.

Public Constructor Summary

Builder()
Constructor for the StoreBytesData.Builder class.

Public Method Summary

StoreBytesData
build()
Builds and returns the StoreBytesData object.
StoreBytesData.Builder
setBytes(byte[] bytes)
Sets the raw bytes to be stored with Block Store.
StoreBytesData.Builder
setKey(String key)
Sets the key with which the bytes are associated with.
StoreBytesData.Builder
setShouldBackupToCloud(boolean shouldBackupToCloud)
Sets whether the bytes to be stored should be backed up to the cloud in the next sync.

Inherited Method Summary

Public Constructors

public Builder ()

Constructor for the StoreBytesData.Builder class.

Public Methods

public StoreBytesData build ()

Builds and returns the StoreBytesData object.

public StoreBytesData.Builder setBytes (byte[] bytes)

Sets the raw bytes to be stored with Block Store. See BlockstoreClient.MAX_SIZE for the maximum size allowed for a key-bytes entry.

public StoreBytesData.Builder setKey (String key)

Sets the key with which the bytes are associated with. See BlockstoreClient.MAX_SIZE for the maximum size allowed for a key-bytes entry.

If setKey is never invoked, the bytes will be associated with the default key BlockstoreClient.DEFAULT_BYTES_DATA_KEY when stored into Block Store.

public StoreBytesData.Builder setShouldBackupToCloud (boolean shouldBackupToCloud)

Sets whether the bytes to be stored should be backed up to the cloud in the next sync.