Package com.azure.storage.blob.models
Class AppendBlobRequestConditions
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
com.azure.storage.blob.models.AppendBlobRequestConditions
This class contains values that restrict the successful completion of AppendBlock operations to certain conditions.
Any field may be set to null if no access conditions are desired.
Please refer to the request header section here for more conceptual information.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the byte offset that the append position of the append blob must match.Gets the max length in bytes allowed for the append blob.setAppendPosition
(Long appendPosition) Sets the byte offset that the append position of the append blob must match.setIfMatch
(String ifMatch) Optionally limit requests to resources that match the passed ETag.setIfModifiedSince
(OffsetDateTime ifModifiedSince) Optionally limit requests to resources that have only been modified since the passeddatetime
.setIfNoneMatch
(String ifNoneMatch) Optionally limit requests to resources that do not match the passed ETag.setIfUnmodifiedSince
(OffsetDateTime ifUnmodifiedSince) Optionally limit requests to resources that have remained unmodified since the passeddatetime
.setLeaseId
(String leaseId) Optionally limits requests to blobs and containers that match the lease ID.setMaxSize
(Long maxSize) Sets the max length in bytes allowed for the append blob.setTagsConditions
(String tagsConditions) Optionally applies the SQL statement to the tags of the blob.Methods inherited from class com.azure.storage.blob.models.BlobRequestConditions
getLeaseId
Methods inherited from class com.azure.storage.blob.models.BlobLeaseRequestConditions
getTagsConditions
Methods inherited from class com.azure.core.http.RequestConditions
getIfModifiedSince, getIfUnmodifiedSince
Methods inherited from class com.azure.core.http.MatchConditions
getIfMatch, getIfNoneMatch
-
Constructor Details
-
AppendBlobRequestConditions
public AppendBlobRequestConditions()
-
-
Method Details
-
setIfMatch
Optionally limit requests to resources that match the passed ETag.- Overrides:
setIfMatch
in classBlobRequestConditions
- Parameters:
ifMatch
- ETag that resources must match.- Returns:
- The updated AppendBlobRequestConditions object.
-
setIfNoneMatch
Optionally limit requests to resources that do not match the passed ETag.- Overrides:
setIfNoneMatch
in classBlobRequestConditions
- Parameters:
ifNoneMatch
- ETag that resources must not match.- Returns:
- The updated AppendBlobRequestConditions object.
-
setIfModifiedSince
Optionally limit requests to resources that have only been modified since the passeddatetime
.- Overrides:
setIfModifiedSince
in classBlobRequestConditions
- Parameters:
ifModifiedSince
- The datetime that resources must have been modified since.- Returns:
- The updated AppendBlobRequestConditions object.
-
setIfUnmodifiedSince
Optionally limit requests to resources that have remained unmodified since the passeddatetime
.- Overrides:
setIfUnmodifiedSince
in classBlobRequestConditions
- Parameters:
ifUnmodifiedSince
- The datetime that resources must have remained unmodified since.- Returns:
- The updated AppendBlobRequestConditions object.
-
setLeaseId
Optionally limits requests to blobs and containers that match the lease ID.- Overrides:
setLeaseId
in classBlobRequestConditions
- Parameters:
leaseId
- Lease ID that blobs and containers must match.- Returns:
- The updated AppendBlobRequestConditions object.
-
setTagsConditions
Optionally applies the SQL statement to the tags of the blob.- Overrides:
setTagsConditions
in classBlobRequestConditions
- Parameters:
tagsConditions
- The SQL statement that apply to the tags of the blob.- Returns:
- The updated BlobRequestConditions object.
-
getMaxSize
Gets the max length in bytes allowed for the append blob.If the operation would cause the append blob to grow larger than the limit the request will fail.
- Returns:
- The max length in bytes allowed for the append blob.
-
setMaxSize
Sets the max length in bytes allowed for the append blob.If the operation would cause the append blob to grow larger than the limit the request will fail.
- Parameters:
maxSize
- Append blob size byte limit.- Returns:
- The updated AppendBlobRequestConditions object.
-
getAppendPosition
Gets the byte offset that the append position of the append blob must match.- Returns:
- The byte offset that must match the append position.
-
setAppendPosition
Sets the byte offset that the append position of the append blob must match.- Parameters:
appendPosition
- Byte offset to compare to the append position.- Returns:
- The updated AppendBlobRequestConditions object.
-