Interface ObjectVersion.Builder

    • Method Detail

      • eTag

        ObjectVersion.Builder eTag​(String eTag)

        The entity tag is an MD5 hash of that version of the object.

        Parameters:
        eTag - The entity tag is an MD5 hash of that version of the object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • checksumAlgorithmWithStrings

        ObjectVersion.Builder checksumAlgorithmWithStrings​(Collection<String> checksumAlgorithm)

        The algorithm that was used to create a checksum of the object.

        Parameters:
        checksumAlgorithm - The algorithm that was used to create a checksum of the object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • checksumAlgorithmWithStrings

        ObjectVersion.Builder checksumAlgorithmWithStrings​(String... checksumAlgorithm)

        The algorithm that was used to create a checksum of the object.

        Parameters:
        checksumAlgorithm - The algorithm that was used to create a checksum of the object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • checksumAlgorithm

        ObjectVersion.Builder checksumAlgorithm​(Collection<ChecksumAlgorithm> checksumAlgorithm)

        The algorithm that was used to create a checksum of the object.

        Parameters:
        checksumAlgorithm - The algorithm that was used to create a checksum of the object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • checksumAlgorithm

        ObjectVersion.Builder checksumAlgorithm​(ChecksumAlgorithm... checksumAlgorithm)

        The algorithm that was used to create a checksum of the object.

        Parameters:
        checksumAlgorithm - The algorithm that was used to create a checksum of the object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • size

        ObjectVersion.Builder size​(Long size)

        Size in bytes of the object.

        Parameters:
        size - Size in bytes of the object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • key

        ObjectVersion.Builder key​(String key)

        The object key.

        Parameters:
        key - The object key.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • versionId

        ObjectVersion.Builder versionId​(String versionId)

        Version ID of an object.

        Parameters:
        versionId - Version ID of an object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • isLatest

        ObjectVersion.Builder isLatest​(Boolean isLatest)

        Specifies whether the object is (true) or is not (false) the latest version of an object.

        Parameters:
        isLatest - Specifies whether the object is (true) or is not (false) the latest version of an object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • lastModified

        ObjectVersion.Builder lastModified​(Instant lastModified)

        Date and time when the object was last modified.

        Parameters:
        lastModified - Date and time when the object was last modified.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • owner

        ObjectVersion.Builder owner​(Owner owner)

        Specifies the owner of the object.

        Parameters:
        owner - Specifies the owner of the object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • restoreStatus

        ObjectVersion.Builder restoreStatus​(RestoreStatus restoreStatus)

        Specifies the restoration status of an object. Objects in certain storage classes must be restored before they can be retrieved. For more information about these storage classes and how to work with archived objects, see Working with archived objects in the Amazon S3 User Guide.

        Parameters:
        restoreStatus - Specifies the restoration status of an object. Objects in certain storage classes must be restored before they can be retrieved. For more information about these storage classes and how to work with archived objects, see Working with archived objects in the Amazon S3 User Guide.
        Returns:
        Returns a reference to this object so that method calls can be chained together.