/** * Returns a command for retrieving an attribute of a Thing with the given ID. * * @param thingId the ID of a single Thing from which a single attribute will be retrieved by this command. * @param attributeJsonPointer defines one JSON pointer of the attribute to retrieve. * @param dittoHeaders the headers of the command. * @return a Command for retrieving a single attribute of the Thing with the {@code thingId} as its ID which is * readable from the passed authorization context. * @throws NullPointerException if any argument but {@code thingId} is {@code null}. * @throws org.eclipse.ditto.model.things.ThingIdInvalidException if the parsed thing ID did not comply to {@link * org.eclipse.ditto.model.things.Thing#ID_REGEX}. */ public static RetrieveAttribute of(final String thingId, final JsonPointer attributeJsonPointer, final DittoHeaders dittoHeaders) { return new RetrieveAttribute(attributeJsonPointer, thingId, dittoHeaders); }
/** * Returns a command for retrieving an attribute of a Thing with the given ID. * * @param thingId the ID of a single Thing from which a single attribute will be retrieved by this command. * @param attributeJsonPointer defines one JSON pointer of the attribute to retrieve. * @param dittoHeaders the headers of the command. * @return a Command for retrieving a single attribute of the Thing with the {@code thingId} as its ID which is * readable from the passed authorization context. * @throws NullPointerException if any argument but {@code thingId} is {@code null}. * @throws org.eclipse.ditto.model.things.ThingIdInvalidException if the parsed thing ID did not comply to {@link * org.eclipse.ditto.model.things.Thing#ID_REGEX}. */ public static RetrieveAttribute of(final String thingId, final JsonPointer attributeJsonPointer, final DittoHeaders dittoHeaders) { return new RetrieveAttribute(attributeJsonPointer, thingId, dittoHeaders); }