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 boolean
canEqual(Object other)
boolean
equals(Object o)
org.joda.time.DateTime
getCreationDateTime()
Date
getCreationTime()
Deprecated.org.joda.time.DateTime
getDateTime()
ExternalIDRepresentation
getExternalSource()
GId
getId()
org.joda.time.DateTime
getLastUpdatedDateTime()
ManagedObjectRepresentation
getSource()
String
getText()
Date
getTime()
Deprecated.String
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
setId(GId id)
void
setLastUpdatedDateTime(org.joda.time.DateTime lastUpdated)
void
setSource(ManagedObjectRepresentation managedObject)
void
setText(String text)
void
setTime(Date time)
Deprecated.void
setType(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:
getSource
in interfaceSourceableRepresentation
-
setSource
public void setSource(ManagedObjectRepresentation managedObject)
- Specified by:
setSource
in 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)
-
-