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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Objectclone()org.joda.time.DateTimegetId()getTime()Deprecated.getType()voidsetDateTime(org.joda.time.DateTime time) voidsetExternalSource(ExternalIDRepresentation externalSource) voidvoidsetSource(ManagedObjectRepresentation source) voidDeprecated.voidMethods inherited from class com.cumulocity.rest.representation.AbstractExtensibleRepresentation
get, get, getAttrs, getProperty, hasProperty, propertyNames, removeProperty, set, set, set, setAttrs, setPropertyMethods 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:
setSourcein interfaceSourceableRepresentation
-
getSource
@JSONProperty(ignoreIfNull=true) @JSONConverter(type=SourceableConverter.class) public ManagedObjectRepresentation getSource()- Specified by:
getSourcein interfaceSourceableRepresentation
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-