/** * Returns a Command for retrieving a Feature with the given ID of a Thing. * * @param thingId the ID of a Thing whose Feature to be retrieved by this command. * @param featureId the ID of the a single Feature to be retrieved by this command. * @param selectedFields defines the fields of the JSON representation of the Feature to retrieve. * @param dittoHeaders the headers of the command. * @return a Command for retrieving the Feature with the {@code featureId} as its ID. * @throws NullPointerException if {@code featureId} or {@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 RetrieveFeature of(final String thingId, final String featureId, @Nullable final JsonFieldSelector selectedFields, final DittoHeaders dittoHeaders) { return new RetrieveFeature(thingId, featureId, selectedFields, dittoHeaders); }
/** * Returns a Command for retrieving a Feature with the given ID of a Thing. * * @param thingId the ID of a Thing whose Feature to be retrieved by this command. * @param featureId the ID of the a single Feature to be retrieved by this command. * @param selectedFields defines the fields of the JSON representation of the Feature to retrieve. * @param dittoHeaders the headers of the command. * @return a Command for retrieving the Feature with the {@code featureId} as its ID. * @throws NullPointerException if {@code featureId} or {@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 RetrieveFeature of(final String thingId, final String featureId, @Nullable final JsonFieldSelector selectedFields, final DittoHeaders dittoHeaders) { return new RetrieveFeature(thingId, featureId, selectedFields, dittoHeaders); }