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
ConstructorsConstructorDescriptionDefault constructor is needed for reflection based class instantiation. -
Method Summary
Modifier and TypeMethodDescriptionorg.joda.time.DateTimeDeprecated.getId()Deprecated.org.joda.time.DateTimegetName()getOwner()getType()voidsetAdditionParents(ManagedObjectReferenceCollectionRepresentation additionParents) voidvoidsetChildAdditions(ManagedObjectReferenceCollectionRepresentation childAdditions) voidvoidvoidsetCreationDateTime(org.joda.time.DateTime creationTime) voidsetCreationTime(Date creationTime) voidsetDeviceParents(ManagedObjectReferenceCollectionRepresentation deviceParents) voidvoidsetLastUpdated(Date lastUpdate) Deprecated.voidsetLastUpdatedDateTime(org.joda.time.DateTime lastUpdate) voidvoidvoidMethods 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
-
ManagedObjectRepresentation
public ManagedObjectRepresentation()Default constructor is needed for reflection based class instantiation.
-
-
Method Details
-
getId
-
setId
- Specified by:
setIdin 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:
getOwnerin 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
-