Interface CompleteAttachmentUploadRequest.Builder

  • Method Details

    • uploadId

      The identifier associated with the upload to complete.

      Parameters:
      uploadId - The identifier associated with the upload to complete.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • completedUploads

      The list of parts being reported as completed in this call. Each entry must contain the partIndex of an uploaded part and the ETag returned by Amazon S3 when that part was uploaded.

      Parameters:
      completedUploads - The list of parts being reported as completed in this call. Each entry must contain the partIndex of an uploaded part and the ETag returned by Amazon S3 when that part was uploaded.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • completedUploads

      CompleteAttachmentUploadRequest.Builder completedUploads(CompletedUpload... completedUploads)

      The list of parts being reported as completed in this call. Each entry must contain the partIndex of an uploaded part and the ETag returned by Amazon S3 when that part was uploaded.

      Parameters:
      completedUploads - The list of parts being reported as completed in this call. Each entry must contain the partIndex of an uploaded part and the ETag returned by Amazon S3 when that part was uploaded.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • completedUploads

      The list of parts being reported as completed in this call. Each entry must contain the partIndex of an uploaded part and the ETag returned by Amazon S3 when that part was uploaded.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to completedUploads(List<CompletedUpload>).

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

      Specifies whether to validate the request without actually completing the upload. When set to true, the request is validated but the upload isn't finalized, and the operation returns a DryRunOperationException. When omitted or set to false, the request runs normally.

      Parameters:
      dryRun - Specifies whether to validate the request without actually completing the upload. When set to true, the request is validated but the upload isn't finalized, and the operation returns a DryRunOperationException. When omitted or set to false, the request runs normally.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      CompleteAttachmentUploadRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.