Class RetrieveThing.Builder
- java.lang.Object
-
- org.eclipse.ditto.things.model.signals.commands.query.RetrieveThing.Builder
-
- Enclosing class:
- RetrieveThing
@NotThreadSafe public static final class RetrieveThing.Builder extends java.lang.ObjectA mutable builder with a fluent API for an immutableRetrieveThing.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RetrieveThingbuild()RetrieveThing.BuilderwithSelectedFields(org.eclipse.ditto.json.JsonFieldSelector fieldSelector)Sets the fields of the JSON representation of the Thing to retrieve.RetrieveThing.BuilderwithSnapshotRevision(long snapshotRevision)Sets the revision of the persistence snapshot of the Thing to retrieve.
-
-
-
Method Detail
-
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
public RetrieveThing.Builder withSnapshotRevision(long snapshotRevision)
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
public RetrieveThing build()
-
-