Class InventoryRepresentation
java.lang.Object
com.cumulocity.rest.representation.BaseResourceRepresentation
com.cumulocity.rest.representation.AbstractExtensibleRepresentation
com.cumulocity.rest.representation.inventory.InventoryRepresentation
- All Implemented Interfaces:
ResourceRepresentation
,org.svenson.DynamicProperties
A Java Representation for the MediaType Inventory, making a compromise between
https://startups.jira.com/wiki/display/MTM/Inventory and the example in
https://startups.jira.com/wiki/display/MTM/Requests+to+Inventory
-
Constructor Summary
ConstructorDescriptionDefault constructor is needed for reflection based class instantiation. -
Method Summary
Modifier and TypeMethodDescriptionfinal String
final String
final void
setManagedObjects
(ManagedObjectReferenceCollectionRepresentation managedObjects) final void
setManagedObjectsForFragmentType
(String managedObjectsForFragmentType) void
setManagedObjectsForListOfIds
(String managedObjectsForListOfIds) final void
setManagedObjectsForType
(String managedObjectsForType) 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
-
InventoryRepresentation
public InventoryRepresentation()Default constructor is needed for reflection based class instantiation.
-
-
Method Details
-
getManagedObjectsForType
@JSONProperty(value="managedObjectsForType", ignoreIfNull=true) public final String getManagedObjectsForType()- Returns:
- the managedObjectsForType
-
setManagedObjectsForType
- Parameters:
managedObjectsForType
- the managedObjectsForType to set
-
getManagedObjectsForFragmentType
@JSONProperty(value="managedObjectsForFragmentType", ignoreIfNull=true) public final String getManagedObjectsForFragmentType()- Returns:
- the managedObjectsForFragmentType
-
setManagedObjectsForFragmentType
- Parameters:
managedObjectsForFragmentType
- the managedObjectsForFragmentType to set
-
getManagedObjects
@JSONProperty(value="managedObjects", ignoreIfNull=false) public final ManagedObjectReferenceCollectionRepresentation getManagedObjects()- Returns:
- the managedObjects
-
setManagedObjects
- Parameters:
managedObjects
- the managedObjects to set
-
getManagedObjectsForListOfIds
- Returns:
- managedObjectsForListOfIds
-
setManagedObjectsForListOfIds
- Parameters:
managedObjectsForListOfIds
- to be set
-