public static class GSFileOptions.GSFileOptionsBuilder
extends java.lang.Object
| Constructor and Description |
|---|
GSFileOptions.GSFileOptionsBuilder() |
| Modifier and Type | Method and Description |
|---|---|
GSFileOptions.GSFileOptionsBuilder |
addUserMetadata(java.lang.String key,
java.lang.String value)
Adds user specific metadata that will be added to object headers when
served through Google Storage:
"http://code.google.com/apis/storage/docs/reference-headers.html#xgoogmeta"
Each entry will be prefixed with x-goog-meta- when serving out.
|
GSFileOptions |
build() |
GSFileOptions.GSFileOptionsBuilder |
setAcl(java.lang.String acl)
Sets the acl of the object.
|
GSFileOptions.GSFileOptionsBuilder |
setBucket(java.lang.String bucket)
Sets the name of the bucket.
|
GSFileOptions.GSFileOptionsBuilder |
setCacheControl(java.lang.String cacheControl)
Sets the cache control for the object.
|
GSFileOptions.GSFileOptionsBuilder |
setContentDisposition(java.lang.String contentDisposition)
Sets the content disposition for the object.
|
GSFileOptions.GSFileOptionsBuilder |
setContentEncoding(java.lang.String contentEncoding)
Sets the content encoding for the object.
|
GSFileOptions.GSFileOptionsBuilder |
setKey(java.lang.String key)
Sets the key of the object.
|
GSFileOptions.GSFileOptionsBuilder |
setMimeType(java.lang.String mimeType)
Sets the mime type of the object.
|
public GSFileOptions.GSFileOptionsBuilder setBucket(java.lang.String bucket)
bucket - name of the Google Storage bucketpublic GSFileOptions.GSFileOptionsBuilder setKey(java.lang.String key)
key - of the Google Storage objectpublic GSFileOptions.GSFileOptionsBuilder setMimeType(java.lang.String mimeType)
mimeType - of the Google Storage object.public GSFileOptions.GSFileOptionsBuilder setAcl(java.lang.String acl)
acl - to use for the Google Storage object.public GSFileOptions.GSFileOptionsBuilder setCacheControl(java.lang.String cacheControl)
cacheControl - to use for the Google Storage object.public GSFileOptions.GSFileOptionsBuilder setContentEncoding(java.lang.String contentEncoding)
contentEncoding - to use for the Google Storage object.public GSFileOptions.GSFileOptionsBuilder setContentDisposition(java.lang.String contentDisposition)
contentDisposition - to use for the Google Storage object.public GSFileOptions.GSFileOptionsBuilder addUserMetadata(java.lang.String key, java.lang.String value)
key - value - public GSFileOptions build()