Class MeasurementRepresentation
java.lang.Object
com.cumulocity.rest.representation.BaseResourceRepresentation
com.cumulocity.rest.representation.AbstractExtensibleRepresentation
com.cumulocity.rest.representation.measurement.MeasurementRepresentation
- All Implemented Interfaces:
ResourceRepresentation
,SourceableRepresentation
,Cloneable
,org.svenson.DynamicProperties
public class MeasurementRepresentation
extends AbstractExtensibleRepresentation
implements Cloneable, SourceableRepresentation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
clone()
org.joda.time.DateTime
getId()
getTime()
Deprecated.getType()
void
setDateTime
(org.joda.time.DateTime time) void
setExternalSource
(ExternalIDRepresentation externalSource) void
void
setSource
(ManagedObjectRepresentation source) void
Deprecated.void
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
-
Constructor Details
-
MeasurementRepresentation
public MeasurementRepresentation()
-
-
Method Details
-
setId
-
getId
-
setType
-
getType
-
setExternalSource
-
getExternalSource
-
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) -
setSource
- Specified by:
setSource
in interfaceSourceableRepresentation
-
getSource
@JSONProperty(ignoreIfNull=true) @JSONConverter(type=SourceableConverter.class) public ManagedObjectRepresentation getSource()- Specified by:
getSource
in interfaceSourceableRepresentation
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-