@Immutable public final class FeaturePropertiesCreated extends AbstractThingEvent<FeaturePropertiesCreated> implements ThingModifiedEvent<FeaturePropertiesCreated>, org.eclipse.ditto.signals.base.WithFeatureId
FeatureProperties were created.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 "Feature Properties Created" 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> thePredicate)
Appends the event specific custom payload to the passed
jsonObjectBuilder. |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
static FeaturePropertiesCreated |
fromJson(org.eclipse.ditto.json.JsonObject jsonObject,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Creates a new
FeaturePropertiesCreated from a JSON object. |
static FeaturePropertiesCreated |
fromJson(String jsonString,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Creates a new
PropertiesCreated from a JSON string. |
Optional<org.eclipse.ditto.json.JsonValue> |
getEntity(org.eclipse.ditto.model.base.json.JsonSchemaVersion schemaVersion) |
String |
getFeatureId() |
org.eclipse.ditto.model.things.FeatureProperties |
getProperties()
Returns the created
FeatureProperties. |
org.eclipse.ditto.json.JsonPointer |
getResourcePath() |
int |
hashCode() |
static FeaturePropertiesCreated |
of(String thingId,
String featureId,
org.eclipse.ditto.model.things.FeatureProperties properties,
long revision,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Constructs a new
PropertiesCreated object. |
static FeaturePropertiesCreated |
of(String thingId,
String featureId,
org.eclipse.ditto.model.things.FeatureProperties properties,
long revision,
Instant timestamp,
org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
Constructs a new
PropertiesCreated object. |
FeaturePropertiesCreated |
setDittoHeaders(org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders) |
FeaturePropertiesCreated |
setRevision(long revision) |
String |
toString() |
getDittoHeaders, getManifest, getRevision, getThingId, getTimestamp, getType, 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 FeaturePropertiesCreated of(String thingId, String featureId, org.eclipse.ditto.model.things.FeatureProperties properties, long revision, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
PropertiesCreated object.thingId - the ID of the Thing whose Feature's Properties were created.featureId - the ID of the Feature whose Properties were created.properties - the created FeatureProperties.revision - the revision of the Thing.dittoHeaders - the headers of the command which was the cause of this event. FeatureModifiedFeaturePropertiesCreatedNullPointerException - if any argument is null.public static FeaturePropertiesCreated of(String thingId, String featureId, org.eclipse.ditto.model.things.FeatureProperties properties, long revision, @Nullable Instant timestamp, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
PropertiesCreated object.thingId - the ID of the Thing whose Feature's Properties were created.featureId - the ID of the Feature whose Properties were created.properties - the created FeatureProperties.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. FeatureModifiedFeaturePropertiesCreatedNullPointerException - if any argument but timestamp is null.public static FeaturePropertiesCreated fromJson(String jsonString, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
PropertiesCreated from a JSON string.jsonString - the JSON string of which a new PropertiesCreated instance is to be created.dittoHeaders - the headers of the command which was the cause of this event.FeaturePropertiesCreated 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
'PropertiesCreated' format.public static FeaturePropertiesCreated fromJson(org.eclipse.ditto.json.JsonObject jsonObject, org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
FeaturePropertiesCreated from a JSON object.jsonObject - the JSON object from which a new FeaturePropertiesCreated instance is to be created.dittoHeaders - the headers of the command which was the cause of this event.FeaturePropertiesCreated 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
'FeaturePropertiesCreated' format.public String getFeatureId()
getFeatureId in interface org.eclipse.ditto.signals.base.WithFeatureIdpublic org.eclipse.ditto.model.things.FeatureProperties getProperties()
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.WithResourcepublic FeaturePropertiesCreated setRevision(long revision)
setRevision in interface org.eclipse.ditto.signals.events.base.Event<FeaturePropertiesCreated>public FeaturePropertiesCreated setDittoHeaders(org.eclipse.ditto.model.base.headers.DittoHeaders dittoHeaders)
setDittoHeaders in interface org.eclipse.ditto.model.base.headers.WithDittoHeaders<FeaturePropertiesCreated>setDittoHeaders in interface ThingEvent<FeaturePropertiesCreated>setDittoHeaders in interface ThingModifiedEvent<FeaturePropertiesCreated>protected void appendPayloadAndBuild(org.eclipse.ditto.json.JsonObjectBuilder jsonObjectBuilder,
org.eclipse.ditto.model.base.json.JsonSchemaVersion schemaVersion,
Predicate<org.eclipse.ditto.json.JsonField> thePredicate)
AbstractThingEventjsonObjectBuilder.appendPayloadAndBuild in class AbstractThingEvent<FeaturePropertiesCreated>jsonObjectBuilder - the JsonObjectBuilder to add the custom payload to.schemaVersion - the JsonSchemaVersion used in toJson().thePredicate - the predicate to evaluate when adding the payload.public int hashCode()
hashCode in class AbstractThingEvent<FeaturePropertiesCreated>public boolean equals(@Nullable Object o)
equals in class AbstractThingEvent<FeaturePropertiesCreated>protected boolean canEqual(@Nullable Object other)
canEqual in class AbstractThingEvent<FeaturePropertiesCreated>public String toString()
toString in class AbstractThingEvent<FeaturePropertiesCreated>Copyright © 2017–2019 Eclipse Foundation. All rights reserved.