Class RetrieveThing.Builder
java.lang.Object
org.eclipse.ditto.things.model.signals.commands.query.RetrieveThing.Builder
- Enclosing class:
- RetrieveThing
A mutable builder with a fluent API for an immutable
RetrieveThing.-
Method Summary
Modifier and TypeMethodDescriptionbuild()withSelectedFields(org.eclipse.ditto.json.JsonFieldSelector fieldSelector) Sets the fields of the JSON representation of the Thing to retrieve.withSnapshotRevision(long snapshotRevision) Sets the revision of the persistence snapshot of the Thing to retrieve.
-
Method Details
-
withSelectedFields
public RetrieveThing.Builder withSelectedFields(@Nullable org.eclipse.ditto.json.JsonFieldSelector fieldSelector) Sets the fields of the JSON representation of the Thing to retrieve.- Parameters:
fieldSelector- the selected JSON fields.- Returns:
- this builder instance to allow Method Chaining.
-
withSnapshotRevision
Sets the revision of the persistence snapshot of the Thing to retrieve.- Parameters:
snapshotRevision- the revision.- Returns:
- this builder instance to allow Method Chaining.
-
build
-