@Override public PayloadBuilder withFields(final String fields) { this.fields = JsonFieldSelector.newInstance(fields); return this; }
@Override public PayloadBuilder withFields(final String fields) { this.fields = JsonFieldSelector.newInstance(fields); return this; }
/** * Creates a sudo command for retrieving a thing. * * @param thingId the thingId. * @return the created command. */ static SudoRetrieveThing sudoRetrieveThing(final String thingId) { LOGGER.debug("Sending SudoRetrieveThing for Thing with ID <{}>", thingId); final JsonFieldSelector jsonFieldSelector = JsonFieldSelector.newInstance( Thing.JsonFields.ID.getPointer(), Thing.JsonFields.REVISION.getPointer(), Thing.JsonFields.ACL.getPointer(), Thing.JsonFields.POLICY_ID.getPointer()); return SudoRetrieveThing.withOriginalSchemaVersion(thingId, jsonFieldSelector, DittoHeaders.newBuilder().correlationId(getCorrelationId(thingId)).build()); }