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 Object
A mutable builder with a fluent API for an immutable RetrieveThing.
  • 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

      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()