Class DeviceCommand
- java.lang.Object
-
- com.cumulocity.microservice.lpwan.codec.model.DeviceCommand
-
public class DeviceCommand extends Object
-
-
Constructor Summary
Constructors Constructor Description DeviceCommand(@NotBlank String name, @NotBlank String category, @Null String command)
Instantiates a new DeviceCommand
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
getAttributes()
This method returns the name, category, command and the delivery types associated with the Device Commandvoid
validate()
This method validates the object field.
-
-
-
Constructor Detail
-
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 Detail
-
getAttributes
public Map<String,Object> 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:
- IllegalArgumentException
-
-