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 TypeEventMediaType.EVENT.
-
-
Constructor Summary
Constructors Constructor Description EventRepresentation()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)org.joda.time.DateTimegetCreationDateTime()DategetCreationTime()Deprecated.org.joda.time.DateTimegetDateTime()ExternalIDRepresentationgetExternalSource()GIdgetId()org.joda.time.DateTimegetLastUpdatedDateTime()ManagedObjectRepresentationgetSource()StringgetText()DategetTime()Deprecated.StringgetType()inthashCode()voidsetCreationDateTime(org.joda.time.DateTime creationTime)voidsetCreationTime(Date creationTime)Deprecated.voidsetDateTime(org.joda.time.DateTime time)voidsetExternalSource(ExternalIDRepresentation externalSource)voidsetId(GId id)voidsetLastUpdatedDateTime(org.joda.time.DateTime lastUpdated)voidsetSource(ManagedObjectRepresentation managedObject)voidsetText(String text)voidsetTime(Date time)Deprecated.voidsetType(String type)-
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
-
-
-
-
Method Detail
-
getId
@JSONConverter(type=IDTypeConverter.class) @JSONProperty(ignoreIfNull=true) public GId getId()
-
setId
public void setId(GId id)
-
getType
@JSONProperty(ignoreIfNull=true) public String getType()
-
setType
public void setType(String type)
-
getTime
@JSONProperty(value="deprecated_Time", ignore=true) @Deprecated public Date getTime()Deprecated.
-
setTime
@Deprecated public void setTime(Date time)
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
@JSONProperty(value="text", ignoreIfNull=true) public String getText()
-
setText
public void setText(String text)
-
getSource
@JSONProperty(value="source", ignoreIfNull=true) @JSONConverter(type=SourceableConverter.class) public ManagedObjectRepresentation getSource()- Specified by:
getSourcein interfaceSourceableRepresentation
-
setSource
public void setSource(ManagedObjectRepresentation managedObject)
- Specified by:
setSourcein interfaceSourceableRepresentation
-
getExternalSource
@JSONProperty(value="externalSource", ignoreIfNull=true) public ExternalIDRepresentation getExternalSource()
-
setExternalSource
public void setExternalSource(ExternalIDRepresentation externalSource)
-
getCreationTime
@JSONProperty(value="deprecated_CreationTime", ignore=true) @Deprecated public Date getCreationTime()Deprecated.
-
setCreationTime
@Deprecated public void setCreationTime(Date creationTime)
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)
-
canEqual
protected boolean canEqual(Object other)
-
-