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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanorg.joda.time.DateTimeDeprecated.org.joda.time.DateTimegetId()org.joda.time.DateTimegetText()getTime()Deprecated.getType()inthashCode()voidsetCreationDateTime(org.joda.time.DateTime creationTime) voidsetCreationTime(Date creationTime) Deprecated.voidsetDateTime(org.joda.time.DateTime time) voidsetExternalSource(ExternalIDRepresentation externalSource) voidvoidsetLastUpdatedDateTime(org.joda.time.DateTime lastUpdated) voidsetSource(ManagedObjectRepresentation managedObject) voidvoidDeprecated.voidMethods inherited from class com.cumulocity.rest.representation.AbstractExtensibleRepresentation
get, get, getAttrs, getProperty, hasProperty, propertyNames, removeProperty, set, set, set, setAttrs, setPropertyMethods 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:
getSourcein interfaceSourceableRepresentation
-
setSource
- Specified by:
setSourcein 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()
-