Class RetrieveThings.Builder
java.lang.Object
org.eclipse.ditto.things.model.signals.commands.query.RetrieveThings.Builder
- Enclosing class:
- RetrieveThings
Builder to facilitate creation of
RetrieveThings instances. Multiple calls to one of this class' methods
will overwrite before set values.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofRetrieveThingsbased on the provided values.dittoHeaders(org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) Sets the optional command headers.Sets namespace for this command.selectedFields(Optional<org.eclipse.ditto.json.JsonFieldSelector> selectedFields) Sets the JSON fields which should be shown in the JSON document which is returned due to a HTTP request.selectedFields(org.eclipse.ditto.json.JsonFieldSelector selectedFields) Sets the JSON fields which should be shown in the JSON document which is returned due to a HTTP request.
-
Method Details
-
dittoHeaders
public RetrieveThings.Builder dittoHeaders(org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) Sets the optional command headers.- Parameters:
dittoHeaders- the command headers.- Returns:
- this builder to allow method chaining.
-
selectedFields
public RetrieveThings.Builder selectedFields(@Nullable org.eclipse.ditto.json.JsonFieldSelector selectedFields) Sets the JSON fields which should be shown in the JSON document which is returned due to a HTTP request.- Parameters:
selectedFields- the selected JSON fields to be shown in the resulting JSON document.- Returns:
- this builder to allow method chaining.
-
selectedFields
public RetrieveThings.Builder selectedFields(Optional<org.eclipse.ditto.json.JsonFieldSelector> selectedFields) Sets the JSON fields which should be shown in the JSON document which is returned due to a HTTP request.- Parameters:
selectedFields- the selected JSON fields to be shown in the resulting JSON document.- Returns:
- this builder to allow method chaining.
-
namespace
Sets namespace for this command.- Parameters:
namespace- the namespace used for this command- Returns:
- this builder to allow method chaining.
-
build
Builds an instance ofRetrieveThingsbased on the provided values.- Returns:
- a new instance of
RetrieveThings.
-