DigitalTwinUpdateRequestOptions Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. service. digitaltwin. models. DigitalTwinUpdateRequestOptions
- com.
public class DigitalTwinUpdateRequestOptions
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getIfMatch()
Gets a string representing a weak ETag for the entity that this request performs an operation against, as per RFC7232. |
Digital |
setIfMatch(String ifMatch)
Sets a string representing a weak ETag for the entity that this request performs an operation against, as per RFC7232. The request's operation is performed only if this ETag matches the value maintained by the server, indicating that the entity has not been modified since it was last retrieved. To force the operation to execute only if the entity exists, set the ETag to the wildcard character '*'. To force the operation to execute unconditionally, leave this value null. If this value is not set, it defaults to null, and the ifMatch header will not be sent with the request. This means that update will be unconditional and the operation will execute regardless of the existence of the resource. |
Method Details
getIfMatch
public String getIfMatch()
Gets a string representing a weak ETag for the entity that this request performs an operation against, as per RFC7232.
Returns:
setIfMatch
public DigitalTwinUpdateRequestOptions setIfMatch(String ifMatch)
Sets a string representing a weak ETag for the entity that this request performs an operation against, as per RFC7232.
The request's operation is performed only if this ETag matches the value maintained by the server, indicating that the entity has not been modified since it was last retrieved. To force the operation to execute only if the entity exists, set the ETag to the wildcard character '*'. To force the operation to execute unconditionally, leave this value null. If this value is not set, it defaults to null, and the ifMatch header will not be sent with the request. This means that update will be unconditional and the operation will execute regardless of the existence of the resource.
Parameters:
Returns:
Applies to
Azure SDK for Java