public static final class GcsFileOptions.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
GcsFileOptions.Builder |
acl(String acl)
Sets the acl of the object.
|
GcsFileOptions.Builder |
addUserMetadata(String key,
String value)
Adds user specific metadata that will be added to object headers when served through Google
Storage.
|
GcsFileOptions |
build()
Create an instance of GcsFileOptions with the parameters set in this builder
|
GcsFileOptions.Builder |
cacheControl(String cacheControl)
Sets the cache control for the object.
|
GcsFileOptions.Builder |
contentDisposition(String contentDisposition)
Sets the content disposition for the object.
|
GcsFileOptions.Builder |
contentEncoding(String contentEncoding)
Sets the content encoding for the object.
|
GcsFileOptions.Builder |
mimeType(String mimeType)
Sets the mime type of the object.
|
public GcsFileOptions.Builder mimeType(String mimeType)
mimeType - of the Google Storage object.public GcsFileOptions.Builder acl(String acl)
acl - to use for the Google Storage object.public GcsFileOptions.Builder cacheControl(String cacheControl)
cacheControl - to use for the Google Storage object.public GcsFileOptions.Builder contentEncoding(String contentEncoding)
contentEncoding - to use for the Google Storage object.public GcsFileOptions.Builder contentDisposition(String contentDisposition)
contentDisposition - to use for the Google Storage object.public GcsFileOptions.Builder addUserMetadata(String key, String value)
Each entry will be prefixed with x-goog-meta- when serving out. For example, if you
add foo->bar entry to userMetadata map, it will be served out as a header: x-goog-meta-foo: bar.
key - metadata/header name suffixvalue - metadata/header valuepublic GcsFileOptions build()
Copyright © 2016 Google. All rights reserved.