public class MeasurementRepresentation extends AbstractExtensibleRepresentation implements Cloneable
Constructor and Description |
---|
MeasurementRepresentation() |
Modifier and Type | Method and Description |
---|---|
protected Object |
clone() |
org.joda.time.DateTime |
getDateTime() |
ExternalIDRepresentation |
getExternalSource() |
com.cumulocity.model.idtype.GId |
getId() |
ManagedObjectRepresentation |
getSource() |
Date |
getTime()
Deprecated.
|
String |
getType() |
void |
setDateTime(org.joda.time.DateTime time) |
void |
setExternalSource(ExternalIDRepresentation externalSource) |
void |
setId(com.cumulocity.model.idtype.GId id) |
void |
setSource(ManagedObjectRepresentation source) |
void |
setTime(Date time)
Deprecated.
|
void |
setType(String type) |
get, get, getAttrs, getProperty, hasProperty, propertyNames, removeProperty, set, set, set, setAttrs, setProperty
getSelf, getSelfDecoded, setSelf, toJSON, toString
@JSONConverter(type=com.cumulocity.model.IDTypeConverter.class) public void setId(com.cumulocity.model.idtype.GId id)
@JSONProperty(ignoreIfNull=true) public com.cumulocity.model.idtype.GId getId()
public void setType(String type)
@JSONProperty(ignoreIfNull=true) public String getType()
public void setExternalSource(ExternalIDRepresentation externalSource)
@JSONProperty(ignoreIfNull=true) public ExternalIDRepresentation getExternalSource()
@JSONProperty(value="deprecated_Time", ignore=true) @Deprecated public Date getTime()
@Deprecated public void setTime(Date time)
@JSONProperty(value="time", ignoreIfNull=true) @JSONConverter(type=com.cumulocity.model.DateTimeConverter.class) public org.joda.time.DateTime getDateTime()
public void setDateTime(org.joda.time.DateTime time)
public void setSource(ManagedObjectRepresentation source)
@JSONProperty(ignoreIfNull=true) public ManagedObjectRepresentation getSource()
protected Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 2020 (C) Cumulocity GmbH. All rights reserved.