@Immutable public final class ModifyAclEntryResponse extends org.eclipse.ditto.signals.commands.base.AbstractCommandResponse<ModifyAclEntryResponse> implements ThingModifyCommandResponse<ModifyAclEntryResponse>
ModifyAclEntry 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) |
static ModifyAclEntryResponse |
created(String thingId,
org.eclipse.ditto.model.things.AclEntry aclEntry,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Returns a new
ModifyAclEntryResponse for a created AclEntry. |
boolean |
equals(Object o) |
static ModifyAclEntryResponse |
fromJson(org.eclipse.ditto.json.JsonObject jsonObject,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Creates a response to a
ModifyAclEntry command from a JSON object. |
static ModifyAclEntryResponse |
fromJson(String jsonString,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Creates a response to a
ModifyAcl command from a JSON string. |
org.eclipse.ditto.model.things.AclEntry |
getAclEntry()
Returns the modified ACL entry.
|
Optional<org.eclipse.ditto.json.JsonValue> |
getEntity(org.eclipse.ditto.model.base.json.JsonSchemaVersion schemaVersion) |
org.eclipse.ditto.json.JsonPointer |
getResourcePath() |
org.eclipse.ditto.model.base.json.JsonSchemaVersion[] |
getSupportedSchemaVersions()
ModifyAclEntryResponse is only available in JsonSchemaVersion V_1.
|
String |
getThingId() |
int |
hashCode() |
static ModifyAclEntryResponse |
modified(String thingId,
org.eclipse.ditto.model.things.AclEntry aclEntry,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Returns a new
ModifyAclEntryResponse for a modified AclEntry. |
ModifyAclEntryResponse |
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, implementsSchemaVersion, implementsSchemaVersion, toJsonStringpublic static final String TYPE
public static ModifyAclEntryResponse created(String thingId, org.eclipse.ditto.model.things.AclEntry aclEntry, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
ModifyAclEntryResponse for a created AclEntry. This corresponds to the HTTP status code
HttpStatusCode.CREATED.thingId - the Thing ID of the created ACL entry.aclEntry - the created AclEntry.dittoHeaders - the headers of the ThingCommand which caused the new response.NullPointerException - if any argument is null.public static ModifyAclEntryResponse modified(String thingId, org.eclipse.ditto.model.things.AclEntry aclEntry, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
ModifyAclEntryResponse for a modified AclEntry. This corresponds to the HTTP status code
HttpStatusCode.NO_CONTENT.thingId - the Thing ID of the modified ACL entry.aclEntry - the modified AclEntry.dittoHeaders - the headers of the ThingCommand which caused the new response.NullPointerException - any argument is null.public static ModifyAclEntryResponse fromJson(String jsonString, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
ModifyAcl 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 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 ModifyAclEntryResponse fromJson(org.eclipse.ditto.json.JsonObject jsonObject, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
ModifyAclEntry 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 - 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 org.eclipse.ditto.model.things.AclEntry getAclEntry()
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> predicate)
appendPayload in class org.eclipse.ditto.signals.commands.base.AbstractCommandResponse<ModifyAclEntryResponse>public ModifyAclEntryResponse setDittoHeaders(org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
setDittoHeaders in interface org.eclipse.ditto.model.base.headers.WithDittoHeaders<ModifyAclEntryResponse>setDittoHeaders in interface org.eclipse.ditto.signals.commands.base.CommandResponse<ModifyAclEntryResponse>setDittoHeaders in interface ThingModifyCommandResponse<ModifyAclEntryResponse>setDittoHeaders in interface ThingCommandResponse<ModifyAclEntryResponse>public org.eclipse.ditto.model.base.json.JsonSchemaVersion[] getSupportedSchemaVersions()
getSupportedSchemaVersions in interface org.eclipse.ditto.model.base.json.Jsonifiable<org.eclipse.ditto.json.JsonObject>public boolean equals(@Nullable Object o)
equals in class org.eclipse.ditto.signals.commands.base.AbstractCommandResponse<ModifyAclEntryResponse>protected boolean canEqual(@Nullable Object other)
canEqual in class org.eclipse.ditto.signals.commands.base.AbstractCommandResponse<ModifyAclEntryResponse>public int hashCode()
hashCode in class org.eclipse.ditto.signals.commands.base.AbstractCommandResponse<ModifyAclEntryResponse>public String toString()
toString in class org.eclipse.ditto.signals.commands.base.AbstractCommandResponse<ModifyAclEntryResponse>Copyright © 2017–2018 Eclipse Foundation. All rights reserved.