Class ListPartsResponse.Builder

java.lang.Object
com.google.cloud.storage.multipartupload.model.ListPartsResponse.Builder
Enclosing class:
ListPartsResponse

@BetaApi public static final class ListPartsResponse.Builder extends Object
Builder for ListPartsResponse.
Since:
2.60.0 This new api is in preview and is subject to breaking changes.
  • Method Details

    • setBucket

      @BetaApi public ListPartsResponse.Builder setBucket(String bucket)
      Sets the bucket name.
      Parameters:
      bucket - The bucket name.
      Returns:
      The builder instance.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • setKey

      @BetaApi public ListPartsResponse.Builder setKey(String key)
      Sets the object name.
      Parameters:
      key - The object name.
      Returns:
      The builder instance.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • setUploadId

      @BetaApi public ListPartsResponse.Builder setUploadId(String uploadId)
      Sets the upload ID.
      Parameters:
      uploadId - The upload ID.
      Returns:
      The builder instance.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • setPartNumberMarker

      @BetaApi public ListPartsResponse.Builder setPartNumberMarker(int partNumberMarker)
      Sets the part number marker.
      Parameters:
      partNumberMarker - The part number marker.
      Returns:
      The builder instance.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • setNextPartNumberMarker

      @BetaApi public ListPartsResponse.Builder setNextPartNumberMarker(int nextPartNumberMarker)
      Sets the next part number marker.
      Parameters:
      nextPartNumberMarker - The next part number marker.
      Returns:
      The builder instance.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • setMaxParts

      @BetaApi public ListPartsResponse.Builder setMaxParts(int maxParts)
      Sets the maximum number of parts to return.
      Parameters:
      maxParts - The maximum number of parts to return.
      Returns:
      The builder instance.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • setIsTruncated

      @BetaApi public ListPartsResponse.Builder setIsTruncated(boolean isTruncated)
      Sets whether the response is truncated.
      Parameters:
      isTruncated - True if the response is truncated, false otherwise.
      Returns:
      The builder instance.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • setStorageClass

      @BetaApi public ListPartsResponse.Builder setStorageClass(StorageClass storageClass)
      Sets the storage class of the object.
      Parameters:
      storageClass - The storage class of the object.
      Returns:
      The builder instance.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • setParts

      @BetaApi public ListPartsResponse.Builder setParts(List<Part> parts)
      Sets the list of parts.
      Parameters:
      parts - The list of parts.
      Returns:
      The builder instance.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • build

      @BetaApi public ListPartsResponse build()
      Builds a ListPartsResponse object.
      Returns:
      A new ListPartsResponse instance.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.