Class RetrieveThing.Builder

  • Enclosing class:
    RetrieveThing

    @NotThreadSafe
    public static final class RetrieveThing.Builder
    extends java.lang.Object
    A mutable builder with a fluent API for an immutable RetrieveThing.
    • 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.