com.cumulocity.rest.representation.event
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, org.svenson.DynamicProperties
- Direct Known Subclasses:
- AlarmRepresentation, AuditRecordRepresentation
public class EventRepresentation
- extends AbstractExtensibleRepresentation
A Java Representation for the Media Type EventMediaType.EVENT
.
EventRepresentation
public EventRepresentation()
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="time",
ignoreIfNull=true)
@JSONConverter(type=DateConverter.class)
public Date getTime()
setTime
public void setTime(Date time)
getText
@JSONProperty(value="text",
ignoreIfNull=true)
public String getText()
setText
public void setText(String text)
getSource
@JSONProperty(value="source",
ignoreIfNull=true)
public ManagedObjectRepresentation getSource()
setSource
public void setSource(ManagedObjectRepresentation managedObject)
getCreationTime
@JSONProperty(value="creationTime",
ignoreIfNull=true)
@JSONConverter(type=DateConverter.class)
public Date getCreationTime()
setCreationTime
public void setCreationTime(Date creationTime)
Copyright © 2013 (C) Cumulocity GmbH. All Rights Reserved.