@Override public RetrieveThing setDittoHeaders(final DittoHeaders dittoHeaders) { return getBuilder(thingId, dittoHeaders) .withSelectedFields(selectedFields) .withSnapshotRevision(snapshotRevision) .build(); }
@Override public RetrieveThings setDittoHeaders(final DittoHeaders dittoHeaders) { return getBuilder(this).dittoHeaders(dittoHeaders).build(); }
/** * Returns a Command for retrieving the Thing with the given ID. * * @param thingId the ID of a single Thing to be retrieved by this command. * @param dittoHeaders the headers of the command. * @return a Command for retrieving 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 RetrieveThing of(final CharSequence thingId, final DittoHeaders dittoHeaders) { return getBuilder(thingId, dittoHeaders).build(); }
private RetrieveFeaturePropertyLiveCommandImpl(final RetrieveFeatureProperty command) { super(command); featureId = command.getFeatureId(); propertyPointer = command.getPropertyPointer(); }
@Override public RetrieveFeaturePropertyResponse setDittoHeaders(final DittoHeaders dittoHeaders) { return of(thingId, featureId, propertyPointer, propertyValue, dittoHeaders); }
@Override public RetrieveThingsResponse setDittoHeaders(final DittoHeaders dittoHeaders) { return of(thingsPlainJson, namespace, dittoHeaders); }
@Override public RetrieveFeatures setDittoHeaders(final DittoHeaders dittoHeaders) { return of(thingId, selectedFields, dittoHeaders); }
@Override public RetrieveFeatureResponse setDittoHeaders(final DittoHeaders dittoHeaders) { return of(thingId, feature, dittoHeaders); }
@Override public RetrieveAttribute setDittoHeaders(final DittoHeaders dittoHeaders) { return of(thingId, attributePointer, dittoHeaders); }
@Override public RetrieveAclResponse setDittoHeaders(final DittoHeaders dittoHeaders) { return of(thingId, acl, dittoHeaders); }
private RetrieveFeatureLiveCommandImpl(final RetrieveFeature command) { super(command); featureId = command.getFeatureId(); }
/** * Returns a builder for a command for retrieving Things. The builder gets initialised with the data from the * specified RetrieveThings. * * @param retrieveThings a {@code RetrieveThings} object which acts as template for the new builder. * @return a builder for a Thing retrieving command. */ public static Builder getBuilder(final RetrieveThings retrieveThings) { return new Builder(retrieveThings); }
/** * Builds an instance of {@code RetrieveThings} based on the provided values. * * @return a new instance of {@code RetrieveThings}. */ public RetrieveThings build() { return new RetrieveThings(this); }
@Override public RetrieveAttributes setDittoHeaders(final DittoHeaders dittoHeaders) { return new RetrieveAttributes(selectedFields, thingId, dittoHeaders); }
@Override public RetrieveThing setDittoHeaders(final DittoHeaders dittoHeaders) { return getBuilder(thingId, dittoHeaders) .withSelectedFields(selectedFields) .withSnapshotRevision(snapshotRevision) .build(); }
@Override public RetrieveThings setDittoHeaders(final DittoHeaders dittoHeaders) { return getBuilder(this).dittoHeaders(dittoHeaders).build(); }
/** * Returns a Command for retrieving the Thing with the given ID. * * @param thingId the ID of a single Thing to be retrieved by this command. * @param dittoHeaders the headers of the command. * @return a Command for retrieving 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 RetrieveThing of(final CharSequence thingId, final DittoHeaders dittoHeaders) { return getBuilder(thingId, dittoHeaders).build(); }
private RetrieveFeaturePropertyLiveCommandImpl(final RetrieveFeatureProperty command) { super(command); featureId = command.getFeatureId(); propertyPointer = command.getPropertyPointer(); }
/** * Returns a builder for a command for retrieving Things. The builder gets initialised with the data from the * specified RetrieveThings. * * @param retrieveThings a {@code RetrieveThings} object which acts as template for the new builder. * @return a builder for a Thing retrieving command. */ public static Builder getBuilder(final RetrieveThings retrieveThings) { return new Builder(retrieveThings); }
/** * Builds an instance of {@code RetrieveThings} based on the provided values. * * @return a new instance of {@code RetrieveThings}. */ public RetrieveThings build() { return new RetrieveThings(this); }