@Immutable public final class ModifyFeaturePropertiesResponse extends org.eclipse.ditto.signals.commands.base.AbstractCommandResponse<ModifyFeaturePropertiesResponse> implements ThingModifyCommandResponse<ModifyFeaturePropertiesResponse>
ModifyFeatureProperties 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) |
static ModifyFeaturePropertiesResponse |
created(String thingId,
String featureId,
org.eclipse.ditto.model.things.FeatureProperties featureProperties,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Returns a new
ModifyFeaturePropertiesResponse for a created FeatureProperties. |
boolean |
equals(Object o) |
static ModifyFeaturePropertiesResponse |
fromJson(org.eclipse.ditto.json.JsonObject jsonObject,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Creates a response to a
ModifyFeatureProperties command from a JSON object. |
static ModifyFeaturePropertiesResponse |
fromJson(String jsonString,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Creates a response to a
ModifyFeatureProperties command from a JSON string. |
Optional<org.eclipse.ditto.json.JsonValue> |
getEntity(org.eclipse.ditto.model.base.json.JsonSchemaVersion schemaVersion) |
String |
getFeatureId()
Returns the ID of the
Feature whose properties were modified. |
Optional<org.eclipse.ditto.model.things.FeatureProperties> |
getFeaturePropertiesCreated()
Returns the created
FeatureProperties. |
org.eclipse.ditto.json.JsonPointer |
getResourcePath() |
String |
getThingId() |
int |
hashCode() |
static ModifyFeaturePropertiesResponse |
modified(String thingId,
String featureId,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Returns a new
ModifyFeaturePropertiesResponse for a modified FeatureProperties. |
ModifyFeaturePropertiesResponse |
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 ModifyFeaturePropertiesResponse created(String thingId, String featureId, org.eclipse.ditto.model.things.FeatureProperties featureProperties, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
ModifyFeaturePropertiesResponse for a created FeatureProperties. This corresponds to the
HTTP status code HttpStatusCode.CREATED.thingId - the Thing ID of the created feature properties.featureId - the Feature's ID whose Properties were created.featureProperties - the created FeatureProperties.dittoHeaders - the headers of the ThingCommand which caused the new response.NullPointerException - if any argument is null.public static ModifyFeaturePropertiesResponse modified(String thingId, String featureId, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
ModifyFeaturePropertiesResponse for a modified FeatureProperties. This corresponds to the
HTTP status code HttpStatusCode.NO_CONTENT.thingId - the Thing ID of the modified feature properties.featureId - the Feature's ID whose Properties were modified.dittoHeaders - the headers of the ThingCommand which caused the new response.NullPointerException - if dittoHeaders is null.public static ModifyFeaturePropertiesResponse fromJson(String jsonString, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
ModifyFeatureProperties 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 ModifyFeaturePropertiesResponse fromJson(org.eclipse.ditto.json.JsonObject jsonObject, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
ModifyFeatureProperties 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 jsonObject 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 Optional<org.eclipse.ditto.model.things.FeatureProperties> getFeaturePropertiesCreated()
FeatureProperties.public Optional<org.eclipse.ditto.json.JsonValue> getEntity(org.eclipse.ditto.model.base.json.JsonSchemaVersion schemaVersion)
getEntity in interface org.eclipse.ditto.signals.base.WithOptionalEntitypublic 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<ModifyFeaturePropertiesResponse>public ModifyFeaturePropertiesResponse setDittoHeaders(org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
setDittoHeaders in interface org.eclipse.ditto.model.base.headers.WithDittoHeaders<ModifyFeaturePropertiesResponse>setDittoHeaders in interface org.eclipse.ditto.signals.commands.base.CommandResponse<ModifyFeaturePropertiesResponse>setDittoHeaders in interface ThingModifyCommandResponse<ModifyFeaturePropertiesResponse>setDittoHeaders in interface ThingCommandResponse<ModifyFeaturePropertiesResponse>protected boolean canEqual(@Nullable Object other)
canEqual in class org.eclipse.ditto.signals.commands.base.AbstractCommandResponse<ModifyFeaturePropertiesResponse>public boolean equals(@Nullable Object o)
equals in class org.eclipse.ditto.signals.commands.base.AbstractCommandResponse<ModifyFeaturePropertiesResponse>public int hashCode()
hashCode in class org.eclipse.ditto.signals.commands.base.AbstractCommandResponse<ModifyFeaturePropertiesResponse>public String toString()
toString in class org.eclipse.ditto.signals.commands.base.AbstractCommandResponse<ModifyFeaturePropertiesResponse>Copyright © 2017–2018 Eclipse Foundation. All rights reserved.