StorageMetadata.Builder

public static class StorageMetadata.Builder extends Object

Creates a StorageMetadata object.

Public Constructor Summary

StorageMetadata.Builder()
Creates an empty set of metadata.
StorageMetadata.Builder(StorageMetadata original)
Used to create a modified version of the original set of metadata.

Public Method Summary

StorageMetadata
build()
StorageMetadata.Builder
setCacheControl(String cacheControl)
sets the Cache Control for the StorageReference
StorageMetadata.Builder
setContentDisposition(String contentDisposition)
StorageMetadata.Builder
setContentEncoding(String contentEncoding)
Changes the content encoding for the StorageReference
StorageMetadata.Builder
setContentLanguage(String contentLanguage)
Changes the content language for the StorageReference
StorageMetadata.Builder
setContentType(String contentType)
Changes the content Type of this associated StorageReference
StorageMetadata.Builder
setCustomMetadata(String key, String value)
Sets custom metadata

Inherited Method Summary

Public Constructors

public StorageMetadata.Builder ()

Creates an empty set of metadata.

public StorageMetadata.Builder (StorageMetadata original)

Used to create a modified version of the original set of metadata.

Parameters
original The source of the metadata to build from.

Public Methods

public StorageMetadata build ()

public StorageMetadata.Builder setCacheControl (String cacheControl)

sets the Cache Control for the StorageReference

Parameters
cacheControl the new Cache Control setting.

public StorageMetadata.Builder setContentDisposition (String contentDisposition)

Parameters
contentDisposition changes the content disposition for the StorageReference

public StorageMetadata.Builder setContentEncoding (String contentEncoding)

Changes the content encoding for the StorageReference

Parameters
contentEncoding the new encoding to use.

public StorageMetadata.Builder setContentLanguage (String contentLanguage)

Changes the content language for the StorageReference

Parameters
contentLanguage the new content language.

public StorageMetadata.Builder setContentType (String contentType)

Changes the content Type of this associated StorageReference

Parameters
contentType the new Content Type.

public StorageMetadata.Builder setCustomMetadata (String key, String value)

Sets custom metadata

Parameters
key the key of the new value
value the value to set.

Send feedback about...

Need help? Visit our support page.