Class EventRepresentation
java.lang.Object
com.cumulocity.rest.representation.BaseResourceRepresentation
com.cumulocity.rest.representation.AbstractExtensibleRepresentation
com.cumulocity.rest.representation.event.EventRepresentation
- All Implemented Interfaces:
ResourceRepresentation
,SourceableRepresentation
,org.svenson.DynamicProperties
- Direct Known Subclasses:
AlarmRepresentation
,AuditRecordRepresentation
public class EventRepresentation
extends AbstractExtensibleRepresentation
implements SourceableRepresentation
A Java Representation for the Media Type
EventMediaType.EVENT
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
org.joda.time.DateTime
Deprecated.org.joda.time.DateTime
getId()
org.joda.time.DateTime
getText()
getTime()
Deprecated.getType()
int
hashCode()
void
setCreationDateTime
(org.joda.time.DateTime creationTime) void
setCreationTime
(Date creationTime) Deprecated.void
setDateTime
(org.joda.time.DateTime time) void
setExternalSource
(ExternalIDRepresentation externalSource) void
void
setLastUpdatedDateTime
(org.joda.time.DateTime lastUpdated) void
setSource
(ManagedObjectRepresentation managedObject) void
void
Deprecated.void
Methods inherited from class com.cumulocity.rest.representation.AbstractExtensibleRepresentation
get, get, getAttrs, getProperty, hasProperty, propertyNames, removeProperty, set, set, set, setAttrs, setProperty
Methods inherited from class com.cumulocity.rest.representation.BaseResourceRepresentation
getSelf, getSelfDecoded, setSelf, toJSON, toString
-
Constructor Details
-
EventRepresentation
public EventRepresentation()
-
-
Method Details
-
getId
-
setId
-
getType
-
setType
-
getTime
Deprecated. -
setTime
Deprecated. -
getDateTime
@JSONProperty(value="time", ignoreIfNull=true) @JSONConverter(type=DateTimeConverter.class) public org.joda.time.DateTime getDateTime() -
setDateTime
public void setDateTime(org.joda.time.DateTime time) -
getText
-
setText
-
getSource
@JSONProperty(value="source", ignoreIfNull=true) @JSONConverter(type=SourceableConverter.class) public ManagedObjectRepresentation getSource()- Specified by:
getSource
in interfaceSourceableRepresentation
-
setSource
- Specified by:
setSource
in interfaceSourceableRepresentation
-
getExternalSource
@JSONProperty(value="externalSource", ignoreIfNull=true) public ExternalIDRepresentation getExternalSource() -
setExternalSource
-
getCreationTime
@JSONProperty(value="deprecated_CreationTime", ignore=true) @Deprecated public Date getCreationTime()Deprecated. -
setCreationTime
Deprecated. -
getCreationDateTime
@JSONProperty(value="creationTime", ignoreIfNull=true) @JSONConverter(type=DateTimeConverter.class) public org.joda.time.DateTime getCreationDateTime() -
setCreationDateTime
public void setCreationDateTime(org.joda.time.DateTime creationTime) -
getLastUpdatedDateTime
@JSONProperty(value="lastUpdated", ignoreIfNull=true) @JSONConverter(type=DateTimeConverter.class) public org.joda.time.DateTime getLastUpdatedDateTime() -
setLastUpdatedDateTime
public void setLastUpdatedDateTime(org.joda.time.DateTime lastUpdated) -
equals
-
canEqual
-
hashCode
public int hashCode()
-