Class DeviceCommand

java.lang.Object
com.cumulocity.microservice.lpwan.codec.model.DeviceCommand

public class DeviceCommand extends Object
  • 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 command
      category - represents the category of the device command
      command - represents the command text of the device command
  • Method Details

    • 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: