@Immutable public final class DeleteFeaturePropertyResponse extends org.eclipse.ditto.signals.commands.base.AbstractCommandResponse<DeleteFeaturePropertyResponse> implements ThingModifyCommandResponse<DeleteFeaturePropertyResponse>
DeleteFeatureProperty 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> predicate) |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
static DeleteFeaturePropertyResponse |
fromJson(org.eclipse.ditto.json.JsonObject jsonObject,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Creates a response to a
DeleteFeatureProperty command from a JSON object. |
static DeleteFeaturePropertyResponse |
fromJson(String jsonString,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Creates a response to a
DeleteFeatureProperty command from a JSON string. |
String |
getFeatureId()
Returns the
Feature's ID whose property was deleted. |
org.eclipse.ditto.json.JsonPointer |
getPropertyPointer()
Returns the JSON pointer of the Property to delete.
|
org.eclipse.ditto.json.JsonPointer |
getResourcePath() |
String |
getThingId() |
int |
hashCode() |
static DeleteFeaturePropertyResponse |
of(String thingId,
String featureId,
org.eclipse.ditto.json.JsonPointer propertyPointer,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Creates a response to a
DeleteFeatureProperty command. |
DeleteFeaturePropertyResponse |
setDittoHeaders(org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders) |
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 DeleteFeaturePropertyResponse of(String thingId, String featureId, org.eclipse.ditto.json.JsonPointer propertyPointer, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
DeleteFeatureProperty command.thingId - the Thing ID of the deleted feature property.featureId - the Feature's ID whose Property was deleted.propertyPointer - the JSON pointer of the deleted Property.dittoHeaders - the headers of the preceding command.NullPointerException - if any argument is null.public static DeleteFeaturePropertyResponse fromJson(String jsonString, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
DeleteFeatureProperty 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 - 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.public static DeleteFeaturePropertyResponse fromJson(org.eclipse.ditto.json.JsonObject jsonObject, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
DeleteFeatureProperty 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's ID whose property was deleted.public org.eclipse.ditto.json.JsonPointer getPropertyPointer()
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> predicate)
appendPayload in class org.eclipse.ditto.signals.commands.base.AbstractCommandResponse<DeleteFeaturePropertyResponse>public DeleteFeaturePropertyResponse setDittoHeaders(org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
setDittoHeaders in interface org.eclipse.ditto.model.base.headers.WithDittoHeaders<DeleteFeaturePropertyResponse>setDittoHeaders in interface org.eclipse.ditto.signals.commands.base.CommandResponse<DeleteFeaturePropertyResponse>setDittoHeaders in interface ThingModifyCommandResponse<DeleteFeaturePropertyResponse>setDittoHeaders in interface ThingCommandResponse<DeleteFeaturePropertyResponse>public boolean equals(@Nullable Object o)
equals in class org.eclipse.ditto.signals.commands.base.AbstractCommandResponse<DeleteFeaturePropertyResponse>protected boolean canEqual(@Nullable Object other)
canEqual in class org.eclipse.ditto.signals.commands.base.AbstractCommandResponse<DeleteFeaturePropertyResponse>public int hashCode()
hashCode in class org.eclipse.ditto.signals.commands.base.AbstractCommandResponse<DeleteFeaturePropertyResponse>public String toString()
toString in class org.eclipse.ditto.signals.commands.base.AbstractCommandResponse<DeleteFeaturePropertyResponse>Copyright © 2017–2018 Eclipse Foundation. All rights reserved.