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

com.google.appengine.tools.cloudstorage

Class GcsFileOptions.Builder

  • java.lang.Object
    • com.google.appengine.tools.cloudstorage.GcsFileOptions.Builder
  • Enclosing class:
    GcsFileOptions


    public static final class GcsFileOptions.Builder
    extends Object
    A builder of GcsFileOptions.
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • mimeType

        public GcsFileOptions.Builder mimeType(String mimeType)
        Sets the mime type of the object. If not set, default Google Storage mime type is used when served out of Google Storage.
        Parameters:
        mimeType - of the Google Storage object.
        Returns:
        this builder for chaining.
        See Also:
        GCS and the Content-Type Header
      • acl

        public GcsFileOptions.Builder acl(String acl)
        Sets the acl of the object. If not set, defaults to none (i.e., bucket default).
        Parameters:
        acl - to use for the Google Storage object.
        Returns:
        this builder for chaining.
        See Also:
        GCS Access Controls
      • contentEncoding

        public GcsFileOptions.Builder contentEncoding(String contentEncoding)
        Sets the content encoding for the object. If not set, default value is used.
        Parameters:
        contentEncoding - to use for the Google Storage object.
        Returns:
        this builder for chaining.
        See Also:
        GCS and the Co