Package com.azure.storage.blob.models
Class BlobRequestConditions
- java.lang.Object
-
- com.azure.core.http.MatchConditions
-
- com.azure.core.http.RequestConditions
-
- com.azure.storage.blob.models.BlobLeaseRequestConditions
-
- com.azure.storage.blob.models.BlobRequestConditions
-
- Direct Known Subclasses:
AppendBlobRequestConditions,PageBlobRequestConditions
public class BlobRequestConditions extends BlobLeaseRequestConditions
This class contains values which will restrict the successful operation of a variety of requests to the conditions present. These conditions are entirely optional. The entire object or any of its properties may be set to null when passed to a method to indicate that those conditions are not desired. Please refer to the type of each field for more information on those particular access conditions.
-
-
Constructor Summary
Constructors Constructor Description BlobRequestConditions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLeaseId()Gets the lease ID that blobs and containers must match.BlobRequestConditionssetIfMatch(String ifMatch)Optionally limit requests to resources that match the passed ETag.BlobRequestConditionssetIfModifiedSince(OffsetDateTime ifModifiedSince)Optionally limit requests to resources that have only been modified since the passeddatetime.BlobRequestConditionssetIfNoneMatch(String ifNoneMatch)Optionally limit requests to resources that do not match the passed ETag.BlobRequestConditionssetIfUnmodifiedSince(OffsetDateTime ifUnmodifiedSince)Optionally limit requests to resources that have remained unmodified since the passeddatetime.BlobRequestConditionssetLeaseId(String leaseId)Optionally limits requests to blobs and containers that match the lease ID.BlobRequestConditionssetTagsConditions(String tagsConditions)Optionally applies the SQL statement to the tags of the blob.-
Methods inherited from class com.azure.storage.blob.models.BlobLeaseRequestConditions
getTagsConditions
-
-
-
-
Method Detail
-
setIfMatch
public BlobRequestConditions setIfMatch(String ifMatch)
Optionally limit requests to resources that match the passed ETag.- Overrides:
setIfMatchin classBlobLeaseRequestConditions- Parameters:
ifMatch- ETag that resources must match.- Returns:
- The updated BlobRequestConditions object.
-
setIfNoneMatch
public BlobRequestConditions setIfNoneMatch(String ifNoneMatch)
Optionally limit requests to resources that do not match the passed ETag.- Overrides:
setIfNoneMatchin classBlobLeaseRequestConditions- Parameters:
ifNoneMatch- ETag that resources must not match.- Returns:
- The updated BlobRequestConditions object.
-
setIfModifiedSince
public BlobRequestConditions setIfModifiedSince(OffsetDateTime ifModifiedSince)
Optionally limit requests to resources that have only been modified since the passeddatetime.- Overrides:
setIfModifiedSincein classBlobLeaseRequestConditions- Parameters:
ifModifiedSince- The datetime that resources must have been modified since.- Returns:
- The updated BlobRequestConditions object.
-
setIfUnmodifiedSince
public BlobRequestConditions setIfUnmodifiedSince(OffsetDateTime ifUnmodifiedSince)
Optionally limit requests to resources that have remained unmodified since the passeddatetime.- Overrides:
setIfUnmodifiedSincein classBlobLeaseRequestConditions- Parameters:
ifUnmodifiedSince- The datetime that resources must have remained unmodified since.- Returns:
- The updated BlobRequestConditions object.
-
setTagsConditions
public BlobRequestConditions setTagsConditions(String tagsConditions)
Optionally applies the SQL statement to the tags of the blob.- Overrides:
setTagsConditionsin classBlobLeaseRequestConditions- Parameters:
tagsConditions- The SQL statement that apply to the tags of the blob.- Returns:
- The updated BlobRequestConditions object.
-
getLeaseId
public String getLeaseId()
Gets the lease ID that blobs and containers must match.- Returns:
- The lease ID that blobs and containers must match.
-
setLeaseId
public BlobRequestConditions setLeaseId(String leaseId)
Optionally limits requests to blobs and containers that match the lease ID.- Parameters:
leaseId- Lease ID that blobs and containers must match.- Returns:
- The updated BlobRequestConditions object.
-
-