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
Constructors Constructor Description ManagedObjectRepresentation()
Default constructor is needed for reflection based class instantiation.
-
Method Summary
-
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
-
-
-
-
Method Detail
-
getId
@JSONConverter(type=IDTypeConverter.class) @JSONProperty(ignoreIfNull=true) public GId getId()
-
setId
public void setId(GId id)
- Specified by:
setId
in interfaceResourceRepresentationWithId
-
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="deprecated_LastUpdated", ignore=true) @Deprecated public Date getLastUpdated()
Deprecated.
-
setLastUpdated
@Deprecated public void setLastUpdated(Date lastUpdate)
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
public void setCreationTime(Date creationTime)
-
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
@JSONProperty(ignoreIfNull=true) public String getOwner()
- Specified by:
getOwner
in interfaceOwnerSource
-
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)
-
getChildAdditions
@JSONProperty(ignoreIfNull=true) public ManagedObjectReferenceCollectionRepresentation getChildAdditions()
-
setChildAdditions
public void setChildAdditions(ManagedObjectReferenceCollectionRepresentation childAdditions)
-
getDeviceParents
@JSONProperty(ignoreIfNull=true) public ManagedObjectReferenceCollectionRepresentation getDeviceParents()
-
setDeviceParents
public void setDeviceParents(ManagedObjectReferenceCollectionRepresentation deviceParents)
-
getAdditionParents
@JSONProperty(ignoreIfNull=true) public ManagedObjectReferenceCollectionRepresentation getAdditionParents()
-
setAdditionParents
public void setAdditionParents(ManagedObjectReferenceCollectionRepresentation additionParents)
-
getAssetParents
@JSONProperty(ignoreIfNull=true) public ManagedObjectReferenceCollectionRepresentation getAssetParents()
-
setAssetParents
public void setAssetParents(ManagedObjectReferenceCollectionRepresentation assetParents)
-
-