diff --git a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/BlobClient.java b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/BlobClient.java index 21c8299cded3e..5cde8b8731a0f 100644 --- a/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/BlobClient.java +++ b/sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/BlobClient.java @@ -219,12 +219,13 @@ public void upload(BinaryData data, boolean overwrite) { * @param requestConditions {@link BlobRequestConditions} * @param timeout An optional timeout value beyond which a {@link RuntimeException} will be raised. * @param context Additional context that is passed through the Http pipeline during the service call. + * @return Information about the uploaded block blob. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void uploadWithResponse(InputStream data, long length, ParallelTransferOptions parallelTransferOptions, + public Response uploadWithResponse(InputStream data, long length, ParallelTransferOptions parallelTransferOptions, BlobHttpHeaders headers, Map metadata, AccessTier tier, BlobRequestConditions requestConditions, Duration timeout, Context context) { - this.uploadWithResponse(new BlobParallelUploadOptions(data, length) + return this.uploadWithResponse(new BlobParallelUploadOptions(data, length) .setParallelTransferOptions(parallelTransferOptions).setHeaders(headers).setMetadata(metadata).setTier(tier) .setRequestConditions(requestConditions), timeout, context); }