Class GcsFileOptions
- java.lang.Object
-
- com.google.appengine.tools.cloudstorage.GcsFileOptions
-
- All Implemented Interfaces:
- Serializable
public final class GcsFileOptions extends Object implements Serializable
Container class for holding options for creating Google Storage files.To construct
GcsFileOptions
, first create aGcsFileOptions.Builder
. The builder is mutable and each of the parameters can be set (any unset parameters will fallback to the defaults). TheBuilder
can be then used to create an immutableGcsFileOptions
object.For default
GcsFileOptions
usegetDefaultInstance()
. Default settings are subject to change release to release. Currently the default values are to not specify any of the options. If you require specific settings, explicitly create an instance ofGcsFileOptions
with the required settings.- See Also:
- Google Storage API, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
GcsFileOptions.Builder
A builder of GcsFileOptions.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description boolean
equals(Object o)
String
getAcl()
String
getCacheControl()
String
getContentDisposition()
String
getContentEncoding()
static GcsFileOptions
getDefaultInstance()
Retrieve an instance with the default parametersString
getMimeType()
Map<String,String>
getUserMetadata()
int
hashCode()
String
toString()
-
-
-
Method Detail
-
getDefaultInstance
public static GcsFileOptions getDefaultInstance()
Retrieve an instance with the default parameters
-
getMimeType
public String getMimeType()
- Returns:
- The mime type for the file. (May be null)
-
getAcl
public String getAcl()
- Returns:
- The acl for the file. (May be null)
-
getCacheControl
public String getCacheControl()
- Returns:
- The cache control string for the file. (May be null)
-
getContentEncoding
public String getContentEncoding()
- Returns:
- The content encoding of the file. (May be null)
-
getContentDisposition
public String getContentDisposition()
- Returns:
- The content disposition of the file. (May be null)
-
getUserMetadata
public Map<String,String> getUserMetadata()
- Returns:
- Any user data associated with the file. (This map is unmodifiable)
-
-
Copyright © 2016 Google. All rights reserved.