@Immutable public final class RetrieveFeatureResponse extends org.eclipse.ditto.signals.commands.base.AbstractCommandResponse<RetrieveFeatureResponse> implements ThingQueryCommandResponse<RetrieveFeatureResponse>
RetrieveFeature command.ThingCommandResponse.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 |
TYPE
Type of this response.
|
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 o) |
static RetrieveFeatureResponse |
fromJson(org.eclipse.ditto.json.JsonObject jsonObject,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Creates a response to a
RetrieveFeature command from a JSON object. |
static RetrieveFeatureResponse |
fromJson(String jsonString,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Creates a response to a
RetrieveFeature command from a JSON string. |
org.eclipse.ditto.json.JsonObject |
getEntity(org.eclipse.ditto.model.base.json.JsonSchemaVersion schemaVersion) |
org.eclipse.ditto.model.things.Feature |
getFeature()
Returns the retrieved Feature.
|
String |
getFeatureId()
Returns the identifier of the
Feature whose properties were modified. |
org.eclipse.ditto.json.JsonPointer |
getResourcePath() |
String |
getThingId() |
int |
hashCode() |
static RetrieveFeatureResponse |
of(String thingId,
org.eclipse.ditto.model.things.Feature feature,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Creates a response to a
RetrieveFeature command. |
static RetrieveFeatureResponse |
of(String thingId,
String featureId,
org.eclipse.ditto.json.JsonObject jsonObject,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Creates a response to a
RetrieveFeature command. |
RetrieveFeatureResponse |
setDittoHeaders(org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders) |
RetrieveFeatureResponse |
setEntity(org.eclipse.ditto.json.JsonValue entity) |
String |
toString() |
getDittoHeaders, getManifest, getStatusCode, getType, toJsonclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetId, getResourceTypegetImplementedSchemaVersion, getStatusCode, getStatusCodeValue, toJson, toJsontoJson, toJsonString, toJsonStringgetLatestSchemaVersion, getSupportedSchemaVersions, implementsSchemaVersion, implementsSchemaVersion, toJsonStringpublic static final String TYPE
public static RetrieveFeatureResponse of(String thingId, String featureId, @Nullable org.eclipse.ditto.json.JsonObject jsonObject, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
RetrieveFeature command.thingId - the Thing ID of the retrieved feature.featureId - the identifier of the retrieved Feature.jsonObject - the retrieved Feature JSON.dittoHeaders - the headers of the preceding command.NullPointerException - if any argument but jsonObject is null.public static RetrieveFeatureResponse of(String thingId, org.eclipse.ditto.model.things.Feature feature, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
RetrieveFeature command.thingId - the Thing ID of the retrieved feature.feature - the retrieved Feature.dittoHeaders - the headers of the preceding command.NullPointerException - if any argument is null.public static RetrieveFeatureResponse fromJson(String jsonString, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
RetrieveFeature command from a JSON string.jsonString - the JSON string of which the response is to be created.dittoHeaders - the headers of the preceding command.NullPointerException - if jsonString is null.IllegalArgumentException - if jsonString is empty.org.eclipse.ditto.json.JsonParseException - if the passed in jsonString was not in the expected
format.public static RetrieveFeatureResponse fromJson(org.eclipse.ditto.json.JsonObject jsonObject, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
RetrieveFeature command from a JSON object.jsonObject - the JSON object of which the response is to be created.dittoHeaders - the headers of the preceding command.NullPointerException - if any argument is null.org.eclipse.ditto.json.JsonParseException - if the passed in jsonObject was not in the expected
format.public String getThingId()
getThingId in interface org.eclipse.ditto.signals.base.WithThingIdpublic String getFeatureId()
Feature whose properties were modified.public org.eclipse.ditto.model.things.Feature getFeature()
public org.eclipse.ditto.json.JsonObject getEntity(org.eclipse.ditto.model.base.json.JsonSchemaVersion schemaVersion)
getEntity in interface org.eclipse.ditto.signals.commands.base.WithEntity<RetrieveFeatureResponse>public RetrieveFeatureResponse setEntity(org.eclipse.ditto.json.JsonValue entity)
setEntity in interface org.eclipse.ditto.signals.commands.base.WithEntity<RetrieveFeatureResponse>setEntity in interface ThingQueryCommandResponse<RetrieveFeatureResponse>public RetrieveFeatureResponse setDittoHeaders(org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
setDittoHeaders in interface org.eclipse.ditto.model.base.headers.WithDittoHeaders<RetrieveFeatureResponse>setDittoHeaders in interface org.eclipse.ditto.signals.commands.base.CommandResponse<RetrieveFeatureResponse>setDittoHeaders in interface ThingQueryCommandResponse<RetrieveFeatureResponse>setDittoHeaders in interface ThingCommandResponse<RetrieveFeatureResponse>public 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.AbstractCommandResponse<RetrieveFeatureResponse>protected boolean canEqual(@Nullable Object other)
canEqual in class org.eclipse.ditto.signals.commands.base.AbstractCommandResponse<RetrieveFeatureResponse>public boolean equals(@Nullable Object o)
equals in class org.eclipse.ditto.signals.commands.base.AbstractCommandResponse<RetrieveFeatureResponse>public int hashCode()
hashCode in class org.eclipse.ditto.signals.commands.base.AbstractCommandResponse<RetrieveFeatureResponse>public String toString()
toString in class org.eclipse.ditto.signals.commands.base.AbstractCommandResponse<RetrieveFeatureResponse>Copyright © 2017–2018 Eclipse Foundation. All rights reserved.