/** * <p> * The expected version of the thing record in the registry. If the version of the record in the registry does not * match the expected version specified in the request, the <code>DeleteThing</code> request is rejected with a * <code>VersionConflictException</code>. * </p> * * @param expectedVersion * The expected version of the thing record in the registry. If the version of the record in the registry * does not match the expected version specified in the request, the <code>DeleteThing</code> request is * rejected with a <code>VersionConflictException</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteThingRequest withExpectedVersion(Long expectedVersion) { setExpectedVersion(expectedVersion); return this; }
/** * <p> * The expected version of the thing record in the registry. If the version of the record in the registry does not * match the expected version specified in the request, the <code>DeleteThing</code> request is rejected with a * <code>VersionConflictException</code>. * </p> * * @param expectedVersion * The expected version of the thing record in the registry. If the version of the record in the registry * does not match the expected version specified in the request, the <code>DeleteThing</code> request is * rejected with a <code>VersionConflictException</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteThingRequest withExpectedVersion(Long expectedVersion) { setExpectedVersion(expectedVersion); return this; }