AccessCondition.generateIfMatchCondition(final String etag) Method


Returns an access condition such that an operation will be performed only if the resource's ETag value matches the specified ETag value.

Setting this access condition modifies the request to include the HTTP If-Match conditional header. If this access condition is set, the operation is performed only if the ETag of the resource matches the specified ETag.

For more information, see Specifying Conditional Headers for Blob Service Operations.

public static AccessCondition generateIfMatchCondition(final String etag)


final String

A String that represents the ETag value to check.


An AccessCondition object that represents the If-Match condition.

Applies to