com.cumulocity.rest.representation.inventory
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
ManagedObjectRepresentation
public ManagedObjectRepresentation()
- Default constructor is needed for reflection based class instantiation.
getId
@JSONConverter(type=IDTypeConverter.class)
@JSONProperty(ignoreIfNull=true)
public GId getId()
setId
public void setId(GId id)
- Specified by:
setId
in interface ResourceRepresentationWithId
getType
@JSONProperty(ignoreIfNull=true)
public String getType()
setType
public void setType(String type)
getName
@JSONProperty(ignoreIfNull=true)
public String getName()
setName
public void setName(String name)
getLastUpdated
@JSONProperty(value="lastUpdated",
ignoreIfNull=true)
@JSONConverter(type=DateConverter.class)
public Date getLastUpdated()
setLastUpdated
public void setLastUpdated(Date lastUpdate)
getOwner
@JSONProperty(ignoreIfNull=true)
public String getOwner()
- Specified by:
getOwner
in interface OwnerSource
setOwner
public void setOwner(String owner)
getChildDevices
@JSONProperty(ignoreIfNull=true)
public ManagedObjectReferenceCollectionRepresentation getChildDevices()
setChildDevices
public void setChildDevices(ManagedObjectReferenceCollectionRepresentation childDevices)
getChildAssets
@JSONProperty(ignoreIfNull=true)
public ManagedObjectReferenceCollectionRepresentation getChildAssets()
setChildAssets
public void setChildAssets(ManagedObjectReferenceCollectionRepresentation childAssets)
getParents
@JSONProperty(ignoreIfNull=true)
public ManagedObjectReferenceCollectionRepresentation getParents()
setParents
public void setParents(ManagedObjectReferenceCollectionRepresentation parents)
Copyright © 2013 (C) Cumulocity GmbH. All Rights Reserved.