Class CreateMultipartUploadDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • object

        public CreateMultipartUploadDetails.Builder object​(String object)
        The name of the object to which this multi-part upload is targeted.

        Avoid entering confidential information. Example: test/object1.log

        Parameters:
        object - the value to set
        Returns:
        this builder
      • contentType

        public CreateMultipartUploadDetails.Builder contentType​(String contentType)
        The optional Content-Type header that defines the standard MIME type format of the object to upload.

        Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and perform special operations on text only objects.

        Parameters:
        contentType - the value to set
        Returns:
        this builder
      • contentLanguage

        public CreateMultipartUploadDetails.Builder contentLanguage​(String contentLanguage)
        The optional Content-Language header that defines the content language of the object to upload.

        Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and differentiate objects based on a particular language.

        Parameters:
        contentLanguage - the value to set
        Returns:
        this builder
      • contentEncoding

        public CreateMultipartUploadDetails.Builder contentEncoding​(String contentEncoding)
        The optional Content-Encoding header that defines the content encodings that were applied to the object to upload.

        Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to determine what decoding mechanisms need to be applied to obtain the media-type specified by the Content-Type header of the object.

        Parameters:
        contentEncoding - the value to set
        Returns:
        this builder
      • contentDisposition

        public CreateMultipartUploadDetails.Builder contentDisposition​(String contentDisposition)
        The optional Content-Disposition header that defines presentational information for the object to be returned in GetObject and HeadObject responses.

        Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to let users download objects with custom filenames in a browser.

        Parameters:
        contentDisposition - the value to set
        Returns:
        this builder
      • cacheControl

        public CreateMultipartUploadDetails.Builder cacheControl​(String cacheControl)
        The optional Cache-Control header that defines the caching behavior value to be returned in GetObject and HeadObject responses.

        Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify objects that require caching restrictions.

        Parameters:
        cacheControl - the value to set
        Returns:
        this builder
      • storageTier

        public CreateMultipartUploadDetails.Builder storageTier​(StorageTier storageTier)
        The storage tier that the object should be stored in.

        If not specified, the object will be stored in the same storage tier as the bucket.

        Parameters:
        storageTier - the value to set
        Returns:
        this builder
      • metadata

        public CreateMultipartUploadDetails.Builder metadata​(Map<String,​String> metadata)
        Arbitrary string keys and values for the user-defined metadata for the object.

        Keys must be in “opc-meta-*” format. Avoid entering confidential information.

        Parameters:
        metadata - the value to set
        Returns:
        this builder