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
String
String
String
String
String
StorageMetadata.Builder
setCacheControl(String cacheControl)
Sets the Cache Control header for the StorageReference
StorageMetadata.Builder
setContentDisposition(String contentDisposition)
Changes the content disposition for the StorageReference
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 String getCacheControl ()

Returns

public String getContentDisposition ()

Returns

public String getContentEncoding ()

Returns

public String getContentLanguage ()