Interface GetAttachmentUploadLinksResponse.Builder

  • Method Details

    • uploadId

      The unique identifier for the multipart upload. Use this value in subsequent calls to GetAttachmentUploadLinks, DescribeAttachmentUploadStatus, and CompleteAttachmentUpload, and to attach the upload to a case through the uploadIds parameter on CreateCase or AddCommunicationToCase.

      Parameters:
      uploadId - The unique identifier for the multipart upload. Use this value in subsequent calls to GetAttachmentUploadLinks, DescribeAttachmentUploadStatus, and CompleteAttachmentUpload, and to attach the upload to a case through the uploadIds parameter on CreateCase or AddCommunicationToCase.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • partSizeBytes

      GetAttachmentUploadLinksResponse.Builder partSizeBytes(Long partSizeBytes)

      The size, in bytes, of each part. Split the file into parts of this size before you upload them to the presigned URLs. For an upload with n total parts, parts 1 through n - 1 are exactly this size; the last part may be smaller. Maximum: 104,857,600 bytes (approximately 100 MB).

      Parameters:
      partSizeBytes - The size, in bytes, of each part. Split the file into parts of this size before you upload them to the presigned URLs. For an upload with n total parts, parts 1 through n - 1 are exactly this size; the last part may be smaller. Maximum: 104,857,600 bytes (approximately 100 MB).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • totalParts

      The total number of parts that the file is split into. Upload one part to each presigned URL.

      Parameters:
      totalParts - The total number of parts that the file is split into. Upload one part to each presigned URL.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nextIndex

      The next part index to request presigned URLs for. If all upload URLs for the file have been returned, this field is null. Use this value as the startIndex in uploadRange on a subsequent call to GetAttachmentUploadLinks to retrieve the next batch of upload URLs.

      Parameters:
      nextIndex - The next part index to request presigned URLs for. If all upload URLs for the file have been returned, this field is null. Use this value as the startIndex in uploadRange on a subsequent call to GetAttachmentUploadLinks to retrieve the next batch of upload URLs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • uploadUrls

      The list of presigned upload URLs for the requested range of parts. The list contains at most 10 URLs per call. Upload each part to its corresponding URL by using HTTP PUT before the URL expires.

      Parameters:
      uploadUrls - The list of presigned upload URLs for the requested range of parts. The list contains at most 10 URLs per call. Upload each part to its corresponding URL by using HTTP PUT before the URL expires.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • uploadUrls

      The list of presigned upload URLs for the requested range of parts. The list contains at most 10 URLs per call. Upload each part to its corresponding URL by using HTTP PUT before the URL expires.

      Parameters:
      uploadUrls - The list of presigned upload URLs for the requested range of parts. The list contains at most 10 URLs per call. Upload each part to its corresponding URL by using HTTP PUT before the URL expires.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • uploadUrls

      The list of presigned upload URLs for the requested range of parts. The list contains at most 10 URLs per call. Upload each part to its corresponding URL by using HTTP PUT before the URL expires.

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

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

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