Package com.azure.core.http
Class MatchConditions
java.lang.Object
com.azure.core.http.MatchConditions
- Direct Known Subclasses:
RequestConditions
Specifies HTTP options for conditional requests.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the ETag that resources must match.Gets the ETag that resources must not match.setIfMatch
(String ifMatch) Optionally limit requests to resources that match the passed ETag.setIfNoneMatch
(String ifNoneMatch) Optionally limit requests to resources that do not match the passed ETag.
-
Constructor Details
-
MatchConditions
public MatchConditions()Creates a new instance ofMatchConditions
.
-
-
Method Details
-
getIfMatch
Gets the ETag that resources must match.- Returns:
- The ETag that resources must match.
-
setIfMatch
Optionally limit requests to resources that match the passed ETag.- Parameters:
ifMatch
- ETag that resources must match.- Returns:
- The updated MatchConditions object.
-
getIfNoneMatch
Gets the ETag that resources must not match.- Returns:
- The ETag that resources must not match.
-
setIfNoneMatch
Optionally limit requests to resources that do not match the passed ETag.- Parameters:
ifNoneMatch
- ETag that resources must not match.- Returns:
- The updated MatchConditions object.
-