Interface ObjectVersion.Builder

  • Method Details

    • 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

      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.
    • storageClass

      ObjectVersion.Builder storageClass(String storageClass)

      The class of storage used to store the object.

      Parameters:
      storageClass - The class of storage used to store the object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • storageClass

      The class of storage used to store the object.

      Parameters:
      storageClass - The class of storage used to store the object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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.
    • owner

      Specifies the owner of the object.

      This is a convenience method that creates an instance of the Owner.Builder avoiding the need to create one manually via Owner.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to owner(Owner).

      Parameters:
      owner - a consumer that will call methods on Owner.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • restoreStatus

      default ObjectVersion.Builder restoreStatus(Consumer<RestoreStatus.Builder> 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.

      This is a convenience method that creates an instance of the RestoreStatus.Builder avoiding the need to create one manually via RestoreStatus.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to restoreStatus(RestoreStatus).

      Parameters:
      restoreStatus - a consumer that will call methods on RestoreStatus.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: