Class ManagedObjectRepresentation
java.lang.Object
com.cumulocity.rest.representation.BaseResourceRepresentation
com.cumulocity.rest.representation.AbstractExtensibleRepresentation
com.cumulocity.rest.representation.inventory.ManagedObjectRepresentation
- All Implemented Interfaces:
OwnerSource
,ResourceRepresentation
,ResourceRepresentationWithId
,org.svenson.DynamicProperties
public class ManagedObjectRepresentation
extends AbstractExtensibleRepresentation
implements ResourceRepresentationWithId, OwnerSource
A Java Representation for the MediaType ManagedObject
-
Constructor Summary
ConstructorDescriptionDefault constructor is needed for reflection based class instantiation. -
Method Summary
Modifier and TypeMethodDescriptionorg.joda.time.DateTime
Deprecated.getId()
Deprecated.org.joda.time.DateTime
getName()
getOwner()
getType()
void
setAdditionParents
(ManagedObjectReferenceCollectionRepresentation additionParents) void
void
setChildAdditions
(ManagedObjectReferenceCollectionRepresentation childAdditions) void
void
void
setCreationDateTime
(org.joda.time.DateTime creationTime) void
setCreationTime
(Date creationTime) void
setDeviceParents
(ManagedObjectReferenceCollectionRepresentation deviceParents) void
void
setLastUpdated
(Date lastUpdate) Deprecated.void
setLastUpdatedDateTime
(org.joda.time.DateTime lastUpdate) void
void
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
-
ManagedObjectRepresentation
public ManagedObjectRepresentation()Default constructor is needed for reflection based class instantiation.
-
-
Method Details
-
getId
-
setId
- Specified by:
setId
in interfaceResourceRepresentationWithId
-
getType
-
setType
-
getName
-
setName
-
getLastUpdated
Deprecated. -
setLastUpdated
Deprecated. -
getLastUpdatedDateTime
@JSONProperty(value="lastUpdated", ignoreIfNull=true) @JSONConverter(type=DateTimeConverter.class) public org.joda.time.DateTime getLastUpdatedDateTime() -
setLastUpdatedDateTime
public void setLastUpdatedDateTime(org.joda.time.DateTime lastUpdate) -
getCreationTime
@JSONProperty(value="deprecated_CreationTime", ignore=true) @Deprecated public Date getCreationTime()Deprecated. -
setCreationTime
-
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) -
getOwner
- Specified by:
getOwner
in interfaceOwnerSource
-
setOwner
-
getChildDevices
@JSONProperty(ignoreIfNull=true) public ManagedObjectReferenceCollectionRepresentation getChildDevices() -
setChildDevices
-
getChildAssets
@JSONProperty(ignoreIfNull=true) public ManagedObjectReferenceCollectionRepresentation getChildAssets() -
setChildAssets
-
getChildAdditions
@JSONProperty(ignoreIfNull=true) public ManagedObjectReferenceCollectionRepresentation getChildAdditions() -
setChildAdditions
-
getDeviceParents
@JSONProperty(ignoreIfNull=true) public ManagedObjectReferenceCollectionRepresentation getDeviceParents() -
setDeviceParents
-
getAdditionParents
@JSONProperty(ignoreIfNull=true) public ManagedObjectReferenceCollectionRepresentation getAdditionParents() -
setAdditionParents
-
getAssetParents
@JSONProperty(ignoreIfNull=true) public ManagedObjectReferenceCollectionRepresentation getAssetParents() -
setAssetParents
-