public final class AppendBlobRequestConditions extends BlobRequestConditions
Please refer to the request header section here for more conceptual information.
Constructor and Description |
---|
AppendBlobRequestConditions() |
Modifier and Type | Method and Description |
---|---|
Long |
getAppendPosition()
Gets the byte offset that the append position of the append blob must match.
|
Long |
getMaxSize()
Gets the max length in bytes allowed for the append blob.
|
AppendBlobRequestConditions |
setAppendPosition(Long appendPosition)
Sets the byte offset that the append position of the append blob must match.
|
AppendBlobRequestConditions |
setIfMatch(String ifMatch)
Optionally limit requests to resources that match the passed ETag.
|
AppendBlobRequestConditions |
setIfModifiedSince(OffsetDateTime ifModifiedSince)
Optionally limit requests to resources that have only been modified since the passed
datetime . |
AppendBlobRequestConditions |
setIfNoneMatch(String ifNoneMatch)
Optionally limit requests to resources that do not match the passed ETag.
|
AppendBlobRequestConditions |
setIfUnmodifiedSince(OffsetDateTime ifUnmodifiedSince)
Optionally limit requests to resources that have remained unmodified since the passed
datetime . |
AppendBlobRequestConditions |
setLeaseId(String leaseId)
Optionally limits requests to blobs and containers that match the lease ID.
|
AppendBlobRequestConditions |
setMaxSize(Long maxSize)
Sets the max length in bytes allowed for the append blob.
|
getLeaseId
getIfModifiedSince, getIfUnmodifiedSince
getIfMatch, getIfNoneMatch
public AppendBlobRequestConditions setIfMatch(String ifMatch)
setIfMatch
in class BlobRequestConditions
ifMatch
- ETag that resources must match.public AppendBlobRequestConditions setIfNoneMatch(String ifNoneMatch)
setIfNoneMatch
in class BlobRequestConditions
ifNoneMatch
- ETag that resources must not match.public AppendBlobRequestConditions setIfModifiedSince(OffsetDateTime ifModifiedSince)
datetime
.setIfModifiedSince
in class BlobRequestConditions
ifModifiedSince
- The datetime that resources must have been modified since.public AppendBlobRequestConditions setIfUnmodifiedSince(OffsetDateTime ifUnmodifiedSince)
datetime
.setIfUnmodifiedSince
in class BlobRequestConditions
ifUnmodifiedSince
- The datetime that resources must have remained unmodified since.public AppendBlobRequestConditions setLeaseId(String leaseId)
setLeaseId
in class BlobRequestConditions
leaseId
- Lease ID that blobs and containers must match.public Long getMaxSize()
If the operation would cause the append blob to grow larger than the limit the request will fail.
public AppendBlobRequestConditions setMaxSize(Long maxSize)
If the operation would cause the append blob to grow larger than the limit the request will fail.
maxSize
- Append blob size byte limit.public Long getAppendPosition()
public AppendBlobRequestConditions setAppendPosition(Long appendPosition)
appendPosition
- Byte offset to compare to the append position.Copyright © 2019 Microsoft Corporation. All rights reserved.