@Immutable public final class RetrieveFeatureProperties extends org.eclipse.ditto.signals.commands.base.AbstractCommand<RetrieveFeatureProperties> implements ThingQueryCommand<RetrieveFeatureProperties>, org.eclipse.ditto.signals.base.WithFeatureId
Feature's properties.ThingCommand.JsonFieldsorg.eclipse.ditto.model.base.json.Jsonifiable.WithFieldSelector, org.eclipse.ditto.model.base.json.Jsonifiable.WithFieldSelectorAndPredicate<T>, org.eclipse.ditto.model.base.json.Jsonifiable.WithPointer<J extends org.eclipse.ditto.json.JsonValue>, org.eclipse.ditto.model.base.json.Jsonifiable.WithPredicate<J extends org.eclipse.ditto.json.JsonValue,T>| Modifier and Type | Field and Description |
|---|---|
static String |
NAME
Name of the "Retrieve Feature Properties" command.
|
static String |
TYPE
Type of this command.
|
RESOURCE_TYPE, TYPE_PREFIX| Modifier and Type | Method and Description |
|---|---|
protected void |
appendPayload(org.eclipse.ditto.json.JsonObjectBuilder jsonObjectBuilder,
org.eclipse.ditto.model.base.json.JsonSchemaVersion schemaVersion,
Predicate<org.eclipse.ditto.json.JsonField> thePredicate) |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object obj) |
static RetrieveFeatureProperties |
fromJson(org.eclipse.ditto.json.JsonObject jsonObject,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Creates a new
RetrieveFeatureProperties from a JSON object. |
static RetrieveFeatureProperties |
fromJson(String jsonString,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Creates a new
RetrieveFeatureProperties from a JSON string. |
String |
getFeatureId() |
org.eclipse.ditto.json.JsonPointer |
getResourcePath() |
Optional<org.eclipse.ditto.json.JsonFieldSelector> |
getSelectedFields()
Returns the selected fields which are to be included in the JSON of the retrieved entity.
|
String |
getThingId() |
int |
hashCode() |
static RetrieveFeatureProperties |
of(String thingId,
String featureId,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Returns a Command for retrieving a Feature's Properties on a Thing.
|
static RetrieveFeatureProperties |
of(String thingId,
String featureId,
org.eclipse.ditto.json.JsonFieldSelector selectedFields,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Returns a Command for retrieving a Feature's Properties on a Thing.
|
RetrieveFeatureProperties |
setDittoHeaders(org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders) |
String |
toString() |
getDittoHeaders, getManifest, getType, toJsonclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetId, getResourceType, getTypePrefixgetImplementedSchemaVersion, toJson, toJsontoJson, toJsonString, toJsonStringgetLatestSchemaVersion, getSupportedSchemaVersions, implementsSchemaVersion, implementsSchemaVersion, toJsonStringpublic static final String NAME
public static final String TYPE
public static RetrieveFeatureProperties of(String thingId, String featureId, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
thingId - the Thing's ID whose Feature's Properties to retrieve.featureId - the Feature's ID whose Properties to retrieve.dittoHeaders - the headers of the command.NullPointerException - if any argument but thingId is null.org.eclipse.ditto.model.things.ThingIdInvalidException - if the parsed thing ID did not comply to Thing.ID_REGEX.public static RetrieveFeatureProperties of(String thingId, String featureId, @Nullable org.eclipse.ditto.json.JsonFieldSelector selectedFields, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
thingId - the Thing's ID whose Feature's Properties to retrieve.featureId - the Feature's ID whose Properties to retrieve.selectedFields - defines the fields of the JSON representation of the Properties to retrieve.dittoHeaders - the headers of the command.NullPointerException - if featureId or dittoHeaders is null.org.eclipse.ditto.model.things.ThingIdInvalidException - if the parsed thing ID did not comply to Thing.ID_REGEX.public static RetrieveFeatureProperties fromJson(String jsonString, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
RetrieveFeatureProperties from a JSON string.jsonString - the JSON string of which the command is to be created.dittoHeaders - the headers of the command.NullPointerException - if any argument is null.IllegalArgumentException - if jsonString is empty.org.eclipse.ditto.json.JsonParseException - if the passed in jsonString was not in the expected
format.org.eclipse.ditto.model.things.ThingIdInvalidException - if the parsed thing ID did not comply to Thing.ID_REGEX.public static RetrieveFeatureProperties fromJson(org.eclipse.ditto.json.JsonObject jsonObject, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
RetrieveFeatureProperties from a JSON object.jsonObject - the JSON object of which the command is to be created.dittoHeaders - the headers of the command.NullPointerException - if any argument is null.org.eclipse.ditto.json.JsonParseException - if the passed in jsonObject was not in the expected
format.org.eclipse.ditto.model.things.ThingIdInvalidException - if the parsed thing ID did not comply to Thing.ID_REGEX.public Optional<org.eclipse.ditto.json.JsonFieldSelector> getSelectedFields()
ThingQueryCommandgetSelectedFields in interface ThingQueryCommand<RetrieveFeatureProperties>public String getThingId()
getThingId in interface org.eclipse.ditto.signals.base.WithThingIdpublic String getFeatureId()
getFeatureId in interface org.eclipse.ditto.signals.base.WithFeatureIdpublic org.eclipse.ditto.json.JsonPointer getResourcePath()
getResourcePath in interface org.eclipse.ditto.signals.base.WithResourceprotected void appendPayload(org.eclipse.ditto.json.JsonObjectBuilder jsonObjectBuilder,
org.eclipse.ditto.model.base.json.JsonSchemaVersion schemaVersion,
Predicate<org.eclipse.ditto.json.JsonField> thePredicate)
appendPayload in class org.eclipse.ditto.signals.commands.base.AbstractCommand<RetrieveFeatureProperties>public RetrieveFeatureProperties setDittoHeaders(org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
setDittoHeaders in interface org.eclipse.ditto.model.base.headers.WithDittoHeaders<RetrieveFeatureProperties>setDittoHeaders in interface org.eclipse.ditto.signals.commands.base.Command<RetrieveFeatureProperties>setDittoHeaders in interface ThingQueryCommand<RetrieveFeatureProperties>setDittoHeaders in interface ThingCommand<RetrieveFeatureProperties>public int hashCode()
hashCode in class org.eclipse.ditto.signals.commands.base.AbstractCommand<RetrieveFeatureProperties>public boolean equals(@Nullable Object obj)
equals in class org.eclipse.ditto.signals.commands.base.AbstractCommand<RetrieveFeatureProperties>protected boolean canEqual(@Nullable Object other)
canEqual in class org.eclipse.ditto.signals.commands.base.AbstractCommand<RetrieveFeatureProperties>public String toString()
toString in class org.eclipse.ditto.signals.commands.base.AbstractCommand<RetrieveFeatureProperties>Copyright © 2017–2018 Eclipse Foundation. All rights reserved.