@Override public RetrieveAttributes setDittoHeaders(final DittoHeaders dittoHeaders) { return new RetrieveAttributes(selectedFields, thingId, dittoHeaders); }
/** * Returns a command for retrieving the attributes of a Thing with the given ID. * * @param thingId the ID of a single Thing whose attributes will be retrieved by this command. * @param dittoHeaders the headers of the command. * @return a Command for retrieving attributes of the Thing with the {@code thingId} as its ID which is readable * from the passed authorization context. * @throws NullPointerException if {@code dittoHeaders} 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 RetrieveAttributes of(final String thingId, final DittoHeaders dittoHeaders) { return new RetrieveAttributes(null, thingId, dittoHeaders); }
@Override public RetrieveAttributes setDittoHeaders(final DittoHeaders dittoHeaders) { return new RetrieveAttributes(selectedFields, thingId, dittoHeaders); }
/** * Returns a command for retrieving the attributes of a Thing with the given ID. * * @param thingId the ID of a single Thing whose attributes will be retrieved by this command. * @param dittoHeaders the headers of the command. * @return a Command for retrieving attributes of the Thing with the {@code thingId} as its ID which is readable * from the passed authorization context. * @throws NullPointerException if {@code dittoHeaders} 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 RetrieveAttributes of(final String thingId, final DittoHeaders dittoHeaders) { return new RetrieveAttributes(null, thingId, dittoHeaders); }
/** * Returns a command for retrieving an attribute of a Thing with the given ID. * * @param thingId the ID of a single Thing whose attributes will be retrieved by this command. * @param selectedFields defines the optionally selected fields. * @param dittoHeaders the headers of the command. * @return a Command for retrieving attributes of the Thing with the {@code thingId} as its ID which is readable * from the passed authorization context. * @throws NullPointerException if {@code dittoHeaders} 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 RetrieveAttributes of(final String thingId, @Nullable final JsonFieldSelector selectedFields, final DittoHeaders dittoHeaders) { return new RetrieveAttributes(selectedFields, thingId, dittoHeaders); }
/** * Returns a command for retrieving an attribute of a Thing with the given ID. * * @param thingId the ID of a single Thing whose attributes will be retrieved by this command. * @param selectedFields defines the optionally selected fields. * @param dittoHeaders the headers of the command. * @return a Command for retrieving attributes of the Thing with the {@code thingId} as its ID which is readable * from the passed authorization context. * @throws NullPointerException if {@code dittoHeaders} 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 RetrieveAttributes of(final String thingId, @Nullable final JsonFieldSelector selectedFields, final DittoHeaders dittoHeaders) { return new RetrieveAttributes(selectedFields, thingId, dittoHeaders); }