Class DeviceCommand
java.lang.Object
com.cumulocity.microservice.lpwan.codec.model.DeviceCommand
-
Constructor Summary
ConstructorDescriptionDeviceCommand
(@NotBlank String name, @NotBlank String category, @Null String command) Instantiates a new DeviceCommand -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the name, category, command and the delivery types associated with the Device Commandvoid
validate()
This method validates the object field.
-
Constructor Details
-
DeviceCommand
public DeviceCommand(@NotBlank @NotBlank String name, @NotBlank @NotBlank String category, @Null @Null String command) Instantiates a new DeviceCommand- Parameters:
name
- represents the name of the device commandcategory
- represents the category of the device commandcommand
- represents the command text of the device command
-
-
Method Details
-
getAttributes
This method returns the name, category, command and the delivery types associated with the Device Command- Returns:
- Map The resultant map containing the attributes associated with the Device Command
-
validate
public void validate()This method validates the object field.- Throws:
IllegalArgumentException
- if the field marked with @NotBlank are either null or blank.- See Also:
-