GcsFileOptions (App Engine Client for Google Cloud Storage 0.6 API)


Class GcsFileOptions

  • All Implemented Interfaces:

    public final class GcsFileOptions
    extends Object
    implements Serializable
    Container class for holding options for creating Google Storage files.

    To construct GcsFileOptions, first create a GcsFileOptions.Builder. The builder is mutable and each of the parameters can be set (any unset parameters will fallback to the defaults). The Builder can be then used to create an immutable GcsFileOptions object.

    For default GcsFileOptions use getDefaultInstance(). 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 of GcsFileOptions with the required settings.

    See Also:
    Google Storage API, Serialized Form
    • Method Detail

      • getDefaultInstance

        public static GcsFileOptions getDefaultInstance()
        Retrieve an instance with the default parameters
      • getMimeType

        public String getMimeType()
        The mime type for the file. (May be null)
      • getAcl

        public String getAcl()
        The acl for the file. (May be null)
      • getCacheControl

        public String getCacheControl()
        The cache control string for the file. (May be null)
      • getContentEncoding

        public String getContentEncoding()
        The content encoding of the file. (May be null)
      • getContentDisposition

        public String getContentDisposition()
        The content disposition of the file. (May be null)
      • getUserMetadata

        public Map<String,String> getUserMetadata()
        Any user data associated with the file. (This map is unmodifiable)
      • hashCode

        public final int hashCode()
        hashCode in class Object

Copyright © 2016 Google. All rights reserved.