CreateCallTaskRequest.php 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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 CreateCallTaskRequest 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 string
  21. */
  22. public $taskName;
  23. /**
  24. * @var string
  25. */
  26. public $bizType;
  27. /**
  28. * @var string
  29. */
  30. public $templateCode;
  31. /**
  32. * @var string
  33. */
  34. public $templateName;
  35. /**
  36. * @var string
  37. */
  38. public $resourceType;
  39. /**
  40. * @var string
  41. */
  42. public $resource;
  43. /**
  44. * @var string
  45. */
  46. public $dataType;
  47. /**
  48. * @var string
  49. */
  50. public $data;
  51. /**
  52. * @var string
  53. */
  54. public $fireTime;
  55. /**
  56. * @var string
  57. */
  58. public $stopTime;
  59. /**
  60. * @var string
  61. */
  62. public $scheduleType;
  63. protected $_name = [
  64. 'ownerId' => 'OwnerId',
  65. 'resourceOwnerAccount' => 'ResourceOwnerAccount',
  66. 'resourceOwnerId' => 'ResourceOwnerId',
  67. 'taskName' => 'TaskName',
  68. 'bizType' => 'BizType',
  69. 'templateCode' => 'TemplateCode',
  70. 'templateName' => 'TemplateName',
  71. 'resourceType' => 'ResourceType',
  72. 'resource' => 'Resource',
  73. 'dataType' => 'DataType',
  74. 'data' => 'Data',
  75. 'fireTime' => 'FireTime',
  76. 'stopTime' => 'StopTime',
  77. 'scheduleType' => 'ScheduleType',
  78. ];
  79. public function validate()
  80. {
  81. }
  82. public function toMap()
  83. {
  84. $res = [];
  85. if (null !== $this->ownerId) {
  86. $res['OwnerId'] = $this->ownerId;
  87. }
  88. if (null !== $this->resourceOwnerAccount) {
  89. $res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
  90. }
  91. if (null !== $this->resourceOwnerId) {
  92. $res['ResourceOwnerId'] = $this->resourceOwnerId;
  93. }
  94. if (null !== $this->taskName) {
  95. $res['TaskName'] = $this->taskName;
  96. }
  97. if (null !== $this->bizType) {
  98. $res['BizType'] = $this->bizType;
  99. }
  100. if (null !== $this->templateCode) {
  101. $res['TemplateCode'] = $this->templateCode;
  102. }
  103. if (null !== $this->templateName) {
  104. $res['TemplateName'] = $this->templateName;
  105. }
  106. if (null !== $this->resourceType) {
  107. $res['ResourceType'] = $this->resourceType;
  108. }
  109. if (null !== $this->resource) {
  110. $res['Resource'] = $this->resource;
  111. }
  112. if (null !== $this->dataType) {
  113. $res['DataType'] = $this->dataType;
  114. }
  115. if (null !== $this->data) {
  116. $res['Data'] = $this->data;
  117. }
  118. if (null !== $this->fireTime) {
  119. $res['FireTime'] = $this->fireTime;
  120. }
  121. if (null !== $this->stopTime) {
  122. $res['StopTime'] = $this->stopTime;
  123. }
  124. if (null !== $this->scheduleType) {
  125. $res['ScheduleType'] = $this->scheduleType;
  126. }
  127. return $res;
  128. }
  129. /**
  130. * @param array $map
  131. *
  132. * @return CreateCallTaskRequest
  133. */
  134. public static function fromMap($map = [])
  135. {
  136. $model = new self();
  137. if (isset($map['OwnerId'])) {
  138. $model->ownerId = $map['OwnerId'];
  139. }
  140. if (isset($map['ResourceOwnerAccount'])) {
  141. $model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
  142. }
  143. if (isset($map['ResourceOwnerId'])) {
  144. $model->resourceOwnerId = $map['ResourceOwnerId'];
  145. }
  146. if (isset($map['TaskName'])) {
  147. $model->taskName = $map['TaskName'];
  148. }
  149. if (isset($map['BizType'])) {
  150. $model->bizType = $map['BizType'];
  151. }
  152. if (isset($map['TemplateCode'])) {
  153. $model->templateCode = $map['TemplateCode'];
  154. }
  155. if (isset($map['TemplateName'])) {
  156. $model->templateName = $map['TemplateName'];
  157. }
  158. if (isset($map['ResourceType'])) {
  159. $model->resourceType = $map['ResourceType'];
  160. }
  161. if (isset($map['Resource'])) {
  162. $model->resource = $map['Resource'];
  163. }
  164. if (isset($map['DataType'])) {
  165. $model->dataType = $map['DataType'];
  166. }
  167. if (isset($map['Data'])) {
  168. $model->data = $map['Data'];
  169. }
  170. if (isset($map['FireTime'])) {
  171. $model->fireTime = $map['FireTime'];
  172. }
  173. if (isset($map['StopTime'])) {
  174. $model->stopTime = $map['StopTime'];
  175. }
  176. if (isset($map['ScheduleType'])) {
  177. $model->scheduleType = $map['ScheduleType'];
  178. }
  179. return $model;
  180. }
  181. }