com.azure.storage.blob.options.BlobSetAccessTierOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-storage-blob Show documentation
Show all versions of azure-storage-blob Show documentation
This module contains client library for Microsoft Azure Blob Storage.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.storage.blob.options;
import com.azure.core.annotation.Fluent;
import com.azure.storage.blob.models.AccessTier;
import com.azure.storage.blob.models.RehydratePriority;
import com.azure.storage.common.implementation.StorageImplUtils;
/**
* Extended options that may be passed when setting tier for a blob.
*/
@Fluent
public class BlobSetAccessTierOptions {
private final AccessTier tier;
private RehydratePriority priority;
private String leaseId;
private String tagsConditions;
/**
* @param tier The new tier for the blob.
*/
public BlobSetAccessTierOptions(AccessTier tier) {
StorageImplUtils.assertNotNull("tier", tier);
this.tier = tier;
}
/**
* @return The new tier for the blob.
*/
public AccessTier getTier() {
return tier;
}
/**
* @return Priority to set for re-hydrating blobs.
*/
public RehydratePriority getPriority() {
return priority;
}
/**
* @param priority Priority to set for re-hydrating blobs.
* @return The updated BlobSetAccessTierOptions.
*/
public BlobSetAccessTierOptions setPriority(RehydratePriority priority) {
this.priority = priority;
return this;
}
/**
* @return The lease ID the active lease on the blob must match.
*/
public String getLeaseId() {
return leaseId;
}
/**
* @param leaseId The lease ID the active lease on the blob must match.
* @return The updated BlobSetAccessTierOptions.
*/
public BlobSetAccessTierOptions setLeaseId(String leaseId) {
this.leaseId = leaseId;
return this;
}
/**
* @return The SQL statement that apply to the tags of the blob.
*/
public String getTagsConditions() {
return tagsConditions;
}
/**
* @param tagsConditions The SQL statement that apply to the tags of the blob.
* @return The updated BlobSetAccessTierOptions.
*/
public BlobSetAccessTierOptions setTagsConditions(String tagsConditions) {
this.tagsConditions = tagsConditions;
return this;
}
}