/** * Requests the service to start an incremental copy of another page blob's contents, properties, and metadata * to this blob. * * @param sourceSnapshot * A <code>CloudPageBlob</code> object that represents the source blob to copy. Must be a snapshot. * * @return A <code>String</code> which represents the copy ID associated with the copy operation. * * @throws StorageException * If a storage service error occurred. * @throws URISyntaxException */ @DoesServiceRequest public final String startIncrementalCopy(final URI sourceSnapshot) throws StorageException, URISyntaxException { return this.startIncrementalCopy(sourceSnapshot, null /* destinationAccessCondition */, null /* options */, null /* opContext */); }
/** * Requests the service to start an incremental copy of another page blob's contents, properties, and metadata * to this blob. * * @param sourceSnapshot * A <code>CloudPageBlob</code> object that represents the source blob to copy. Must be a snapshot. * * @return A <code>String</code> which represents the copy ID associated with the copy operation. * * @throws StorageException * If a storage service error occurred. * @throws URISyntaxException */ @DoesServiceRequest public final String startIncrementalCopy(final URI sourceSnapshot) throws StorageException, URISyntaxException { return this.startIncrementalCopy(sourceSnapshot, null /* destinationAccessCondition */, null /* options */, null /* opContext */); }
/** * Requests the service to start an incremental copy of another page blob's contents, properties, and metadata * to this blob. * * @param sourceSnapshot * A <code>CloudPageBlob</code> object that represents the source blob to copy. Must be a snapshot. * * @return A <code>String</code> which represents the copy ID associated with the copy operation. * * @throws StorageException * If a storage service error occurred. * @throws URISyntaxException */ @DoesServiceRequest public final String startIncrementalCopy(final CloudPageBlob sourceSnapshot) throws StorageException, URISyntaxException { final UriQueryBuilder builder = new UriQueryBuilder(); builder.add(Constants.QueryConstants.SNAPSHOT, sourceSnapshot.snapshotID); URI sourceUri = builder.addToURI(sourceSnapshot.getTransformedAddress(null).getPrimaryUri()); return this.startIncrementalCopy(sourceUri, null /* destinationAccessCondition */, null /* options */, null /* opContext */); }
/** * Requests the service to start an incremental copy of another page blob's contents, properties, and metadata * to this blob. * * @param sourceSnapshot * A <code>CloudPageBlob</code> object that represents the source blob to copy. Must be a snapshot. * * @return A <code>String</code> which represents the copy ID associated with the copy operation. * * @throws StorageException * If a storage service error occurred. * @throws URISyntaxException */ @DoesServiceRequest public final String startIncrementalCopy(final CloudPageBlob sourceSnapshot) throws StorageException, URISyntaxException { final UriQueryBuilder builder = new UriQueryBuilder(); builder.add(Constants.QueryConstants.SNAPSHOT, sourceSnapshot.snapshotID); URI sourceUri = builder.addToURI(sourceSnapshot.getTransformedAddress(null).getPrimaryUri()); return this.startIncrementalCopy(sourceUri, null /* destinationAccessCondition */, null /* options */, null /* opContext */); }
return this.startIncrementalCopy(sourceUri, destinationAccessCondition, options, opContext);
return this.startIncrementalCopy(sourceUri, destinationAccessCondition, options, opContext);
builder.add(Constants.QueryConstants.SNAPSHOT, sasSnapshotBlob.snapshotID); copy.startIncrementalCopy(BlobTestHelper.defiddler(sasSnapshotBlob));
copyId = copy.startIncrementalCopy(BlobTestHelper.defiddler(sasSnapshotBlob)); copyId = copy.startIncrementalCopy(BlobTestHelper.defiddler(sasSnapshotBlob), null, null, null); copyId = copy.startIncrementalCopy(sourceUri); copyId = copy.startIncrementalCopy(sourceUri, null, null, null);