@Immutable public final class AttributesDeleted extends AbstractThingEvent<AttributesDeleted> implements ThingModifiedEvent<AttributesDeleted>
Attributes were deleted.ThingEvent.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 "Thing Attributes Deleted" event.
|
static String |
TYPE
Type of this event.
|
RESOURCE_TYPE, TYPE_PREFIX| Modifier and Type | Method and Description |
|---|---|
protected void |
appendPayloadAndBuild(org.eclipse.ditto.json.JsonObjectBuilder jsonObjectBuilder,
org.eclipse.ditto.model.base.json.JsonSchemaVersion schemaVersion,
Predicate<org.eclipse.ditto.json.JsonField> predicate)
Appends the event specific custom payload to the passed
jsonObjectBuilder. |
static AttributesDeleted |
fromJson(org.eclipse.ditto.json.JsonObject jsonObject,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Creates a new
AttributesDeleted from a JSON object. |
static AttributesDeleted |
fromJson(String jsonString,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Creates a new
AttributesDeleted from a JSON string. |
org.eclipse.ditto.json.JsonPointer |
getResourcePath() |
static AttributesDeleted |
of(String thingId,
long revision,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Constructs a new
AttributesDeleted object. |
static AttributesDeleted |
of(String thingId,
long revision,
Instant timestamp,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Constructs a new
AttributesDeleted object. |
AttributesDeleted |
setDittoHeaders(org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders) |
AttributesDeleted |
setRevision(long revision) |
String |
toString() |
canEqual, equals, getDittoHeaders, getManifest, getRevision, getThingId, getTimestamp, getType, hashCode, toJsonclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetId, getResourceType, getThingIdgetImplementedSchemaVersion, getRevision, getTimestamp, getType, toJsontoJson, toJson, toJsonString, toJsonStringgetLatestSchemaVersion, getSupportedSchemaVersions, implementsSchemaVersion, implementsSchemaVersion, toJsonStringpublic static final String NAME
public static final String TYPE
public static AttributesDeleted of(String thingId, long revision, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
AttributesDeleted object.thingId - the ID of the Thing whose Attributes were deleted.revision - the revision of the Thing.dittoHeaders - the headers of the command which was the cause of this event.NullPointerException - if any argument is null.public static AttributesDeleted of(String thingId, long revision, @Nullable Instant timestamp, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
AttributesDeleted object.thingId - the ID of the Thing whose Attributes were deleted.revision - the revision of the Thing.timestamp - the timestamp of this event.dittoHeaders - the headers of the command which was the cause of this event.NullPointerException - if any argument is null.public static AttributesDeleted fromJson(String jsonString, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
AttributesDeleted from a JSON string.jsonString - the JSON string of which a new AttributesDeleted instance is to be created.dittoHeaders - the headers of the command which was the cause of this event.AttributesDeleted which was created from the given JSON string.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
'AttributesDeleted' format.public static AttributesDeleted fromJson(org.eclipse.ditto.json.JsonObject jsonObject, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
AttributesDeleted from a JSON object.jsonObject - the JSON object from which a new AttributesDeleted instance is to be created.dittoHeaders - the headers of the command which was the cause of this event.AttributesDeleted which was created from the given JSON object.NullPointerException - if jsonObject is null.org.eclipse.ditto.json.JsonParseException - if the passed in jsonObject was not in the expected
'AttributesDeleted' format.public org.eclipse.ditto.json.JsonPointer getResourcePath()
getResourcePath in interface org.eclipse.ditto.signals.base.WithResourcepublic AttributesDeleted setRevision(long revision)
setRevision in interface org.eclipse.ditto.signals.events.base.Event<AttributesDeleted>public AttributesDeleted setDittoHeaders(org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
setDittoHeaders in interface org.eclipse.ditto.model.base.headers.WithDittoHeaders<AttributesDeleted>setDittoHeaders in interface ThingEvent<AttributesDeleted>setDittoHeaders in interface ThingModifiedEvent<AttributesDeleted>protected void appendPayloadAndBuild(org.eclipse.ditto.json.JsonObjectBuilder jsonObjectBuilder,
org.eclipse.ditto.model.base.json.JsonSchemaVersion schemaVersion,
Predicate<org.eclipse.ditto.json.JsonField> predicate)
AbstractThingEventjsonObjectBuilder.appendPayloadAndBuild in class AbstractThingEvent<AttributesDeleted>jsonObjectBuilder - the JsonObjectBuilder to add the custom payload to.schemaVersion - the JsonSchemaVersion used in toJson().predicate - the predicate to evaluate when adding the payload.public String toString()
toString in class AbstractThingEvent<AttributesDeleted>Copyright © 2017–2019 Eclipse Foundation. All rights reserved.