StartRobotTaskRequest.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. // This file is auto-generated, don't edit it. Thanks.
  3. namespace AlibabaCloud\SDK\Dyvmsapi\V20170525\Models;
  4. use AlibabaCloud\Tea\Model;
  5. class StartRobotTaskRequest extends Model
  6. {
  7. /**
  8. * @var int
  9. */
  10. public $ownerId;
  11. /**
  12. * @var string
  13. */
  14. public $resourceOwnerAccount;
  15. /**
  16. * @var int
  17. */
  18. public $resourceOwnerId;
  19. /**
  20. * @var int
  21. */
  22. public $taskId;
  23. /**
  24. * @var string
  25. */
  26. public $scheduleTime;
  27. protected $_name = [
  28. 'ownerId' => 'OwnerId',
  29. 'resourceOwnerAccount' => 'ResourceOwnerAccount',
  30. 'resourceOwnerId' => 'ResourceOwnerId',
  31. 'taskId' => 'TaskId',
  32. 'scheduleTime' => 'ScheduleTime',
  33. ];
  34. public function validate()
  35. {
  36. }
  37. public function toMap()
  38. {
  39. $res = [];
  40. if (null !== $this->ownerId) {
  41. $res['OwnerId'] = $this->ownerId;
  42. }
  43. if (null !== $this->resourceOwnerAccount) {
  44. $res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
  45. }
  46. if (null !== $this->resourceOwnerId) {
  47. $res['ResourceOwnerId'] = $this->resourceOwnerId;
  48. }
  49. if (null !== $this->taskId) {
  50. $res['TaskId'] = $this->taskId;
  51. }
  52. if (null !== $this->scheduleTime) {
  53. $res['ScheduleTime'] = $this->scheduleTime;
  54. }
  55. return $res;
  56. }
  57. /**
  58. * @param array $map
  59. *
  60. * @return StartRobotTaskRequest
  61. */
  62. public static function fromMap($map = [])
  63. {
  64. $model = new self();
  65. if (isset($map['OwnerId'])) {
  66. $model->ownerId = $map['OwnerId'];
  67. }
  68. if (isset($map['ResourceOwnerAccount'])) {
  69. $model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
  70. }
  71. if (isset($map['ResourceOwnerId'])) {
  72. $model->resourceOwnerId = $map['ResourceOwnerId'];
  73. }
  74. if (isset($map['TaskId'])) {
  75. $model->taskId = $map['TaskId'];
  76. }
  77. if (isset($map['ScheduleTime'])) {
  78. $model->scheduleTime = $map['ScheduleTime'];
  79. }
  80. return $model;
  81. }
  82. }