com.microsoft.azure.storage.blob.BlobSetTierBatchOperation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-storage Show documentation
Show all versions of azure-storage Show documentation
SDK for Microsoft Azure Storage Clients
package com.microsoft.azure.storage.blob;
import com.microsoft.azure.storage.BatchSubResponse;
import com.microsoft.azure.storage.core.Utility;
public final class BlobSetTierBatchOperation extends BlobBatchOperation {
public void addSubOperation(CloudBlockBlob blockBlob, StandardBlobTier tier) {
this.addSubOperation(blockBlob, tier, null, null /* options */);
}
public void addSubOperation(CloudBlockBlob blockBlob, StandardBlobTier tier, RehydratePriority rehydratePriority,
BlobRequestOptions options) {
Utility.assertNotNull("blockBlob", blockBlob);
Utility.assertNotNull("tier", tier);
options = BlobRequestOptions.populateAndApplyDefaults(options, BlobType.BLOCK_BLOB, blockBlob.blobServiceClient);
super.addSubOperation(blockBlob.uploadBlobTierImpl(tier.toString(),
rehydratePriority == null ? null : rehydratePriority.toString(), options), blockBlob);
}
public void addSubOperation(CloudPageBlob pageBlob, PremiumPageBlobTier tier) {
this.addSubOperation(pageBlob, tier, null /* options */);
}
public void addSubOperation(CloudPageBlob pageBlob, PremiumPageBlobTier tier, BlobRequestOptions options) {
Utility.assertNotNull("pageBlob", pageBlob);
Utility.assertNotNull("tier", tier);
options = BlobRequestOptions.populateAndApplyDefaults(options, BlobType.PAGE_BLOB, pageBlob.blobServiceClient);
super.addSubOperation(pageBlob.uploadBlobTierImpl(tier.toString(), null, options), pageBlob);
}
@Override
protected Void convertResponse(BatchSubResponse response) {
return null;
}
}