Class InventoryRoleRepresentation
java.lang.Object
com.cumulocity.rest.representation.BaseResourceRepresentation
com.cumulocity.rest.representation.AbstractExtensibleRepresentation
com.cumulocity.rest.representation.role.inventory.InventoryRoleRepresentation
- All Implemented Interfaces:
ResourceRepresentation,org.svenson.DynamicProperties
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionInventoryRoleRepresentation(Long id, String name, String description, List<InventoryPermissionRepresentation> permissions) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleangetId()getName()inthashCode()voidsetDescription(String description) voidvoidvoidsetPermissions(List<InventoryPermissionRepresentation> permissions) toString()Methods 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
-
Constructor Details
-
InventoryRoleRepresentation
public InventoryRoleRepresentation(Long id, String name, String description, List<InventoryPermissionRepresentation> permissions) -
InventoryRoleRepresentation
public InventoryRoleRepresentation()
-
-
Method Details
-
getPermissions
@JSONTypeHint(InventoryPermissionRepresentation.class) public List<InventoryPermissionRepresentation> getPermissions() -
builder
-
getId
-
getName
-
getDescription
-
setId
-
setName
-
setDescription
-
setPermissions
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
- Overrides:
toStringin classBaseResourceRepresentation
-