Interface GetPartRequest.Builder

  • Method Details

    • bucket

      The name of the bucket containing the part to retrieve.

      Parameters:
      bucket - The name of the bucket containing the part to retrieve.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • key

      Object key for which the multipart upload was initiated.

      Parameters:
      key - Object key for which the multipart upload was initiated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • range

      Downloads the specified byte range of a part. For more information about the HTTP Range header, see https://www.rfc-editor.org/rfc/rfc9110.html#name-range.

      Amazon S3 doesn't support retrieving multiple ranges of data per GetPart request.

      Parameters:
      range - Downloads the specified byte range of a part. For more information about the HTTP Range header, see https://www.rfc-editor.org/rfc/rfc9110.html #name-range.

      Amazon S3 doesn't support retrieving multiple ranges of data per GetPart request.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • requestPayer

      GetPartRequest.Builder requestPayer(String requestPayer)
      Sets the value of the RequestPayer property for this object.
      Parameters:
      requestPayer - The new value for the RequestPayer property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • requestPayer

      GetPartRequest.Builder requestPayer(RequestPayer requestPayer)
      Sets the value of the RequestPayer property for this object.
      Parameters:
      requestPayer - The new value for the RequestPayer property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • uploadId

      GetPartRequest.Builder uploadId(String uploadId)

      Upload ID identifying the multipart upload to retrieve the specified part from.

      Parameters:
      uploadId - Upload ID identifying the multipart upload to retrieve the specified part from.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • partNumber

      GetPartRequest.Builder partNumber(Integer partNumber)

      Part number of the part to retrieve. This is a positive integer between 1 and 10,000.

      Parameters:
      partNumber - Part number of the part to retrieve. This is a positive integer between 1 and 10,000.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • expectedBucketOwner

      GetPartRequest.Builder expectedBucketOwner(String expectedBucketOwner)

      The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).

      Parameters:
      expectedBucketOwner - The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • checksumMode

      GetPartRequest.Builder checksumMode(String checksumMode)

      To retrieve the checksum, this mode must be enabled.

      Parameters:
      checksumMode - To retrieve the checksum, this mode must be enabled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • checksumMode

      GetPartRequest.Builder checksumMode(ChecksumMode checksumMode)

      To retrieve the checksum, this mode must be enabled.

      Parameters:
      checksumMode - To retrieve the checksum, this mode must be enabled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      GetPartRequest.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.