123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203 |
- <?php
- // This file is auto-generated, don't edit it. Thanks.
- namespace AlibabaCloud\SDK\Dyvmsapi\V20170525\Models;
- use AlibabaCloud\Tea\Model;
- class CreateCallTaskRequest extends Model
- {
- /**
- * @var int
- */
- public $ownerId;
- /**
- * @var string
- */
- public $resourceOwnerAccount;
- /**
- * @var int
- */
- public $resourceOwnerId;
- /**
- * @var string
- */
- public $taskName;
- /**
- * @var string
- */
- public $bizType;
- /**
- * @var string
- */
- public $templateCode;
- /**
- * @var string
- */
- public $templateName;
- /**
- * @var string
- */
- public $resourceType;
- /**
- * @var string
- */
- public $resource;
- /**
- * @var string
- */
- public $dataType;
- /**
- * @var string
- */
- public $data;
- /**
- * @var string
- */
- public $fireTime;
- /**
- * @var string
- */
- public $stopTime;
- /**
- * @var string
- */
- public $scheduleType;
- protected $_name = [
- 'ownerId' => 'OwnerId',
- 'resourceOwnerAccount' => 'ResourceOwnerAccount',
- 'resourceOwnerId' => 'ResourceOwnerId',
- 'taskName' => 'TaskName',
- 'bizType' => 'BizType',
- 'templateCode' => 'TemplateCode',
- 'templateName' => 'TemplateName',
- 'resourceType' => 'ResourceType',
- 'resource' => 'Resource',
- 'dataType' => 'DataType',
- 'data' => 'Data',
- 'fireTime' => 'FireTime',
- 'stopTime' => 'StopTime',
- 'scheduleType' => 'ScheduleType',
- ];
- public function validate()
- {
- }
- public function toMap()
- {
- $res = [];
- if (null !== $this->ownerId) {
- $res['OwnerId'] = $this->ownerId;
- }
- if (null !== $this->resourceOwnerAccount) {
- $res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
- }
- if (null !== $this->resourceOwnerId) {
- $res['ResourceOwnerId'] = $this->resourceOwnerId;
- }
- if (null !== $this->taskName) {
- $res['TaskName'] = $this->taskName;
- }
- if (null !== $this->bizType) {
- $res['BizType'] = $this->bizType;
- }
- if (null !== $this->templateCode) {
- $res['TemplateCode'] = $this->templateCode;
- }
- if (null !== $this->templateName) {
- $res['TemplateName'] = $this->templateName;
- }
- if (null !== $this->resourceType) {
- $res['ResourceType'] = $this->resourceType;
- }
- if (null !== $this->resource) {
- $res['Resource'] = $this->resource;
- }
- if (null !== $this->dataType) {
- $res['DataType'] = $this->dataType;
- }
- if (null !== $this->data) {
- $res['Data'] = $this->data;
- }
- if (null !== $this->fireTime) {
- $res['FireTime'] = $this->fireTime;
- }
- if (null !== $this->stopTime) {
- $res['StopTime'] = $this->stopTime;
- }
- if (null !== $this->scheduleType) {
- $res['ScheduleType'] = $this->scheduleType;
- }
- return $res;
- }
- /**
- * @param array $map
- *
- * @return CreateCallTaskRequest
- */
- public static function fromMap($map = [])
- {
- $model = new self();
- if (isset($map['OwnerId'])) {
- $model->ownerId = $map['OwnerId'];
- }
- if (isset($map['ResourceOwnerAccount'])) {
- $model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
- }
- if (isset($map['ResourceOwnerId'])) {
- $model->resourceOwnerId = $map['ResourceOwnerId'];
- }
- if (isset($map['TaskName'])) {
- $model->taskName = $map['TaskName'];
- }
- if (isset($map['BizType'])) {
- $model->bizType = $map['BizType'];
- }
- if (isset($map['TemplateCode'])) {
- $model->templateCode = $map['TemplateCode'];
- }
- if (isset($map['TemplateName'])) {
- $model->templateName = $map['TemplateName'];
- }
- if (isset($map['ResourceType'])) {
- $model->resourceType = $map['ResourceType'];
- }
- if (isset($map['Resource'])) {
- $model->resource = $map['Resource'];
- }
- if (isset($map['DataType'])) {
- $model->dataType = $map['DataType'];
- }
- if (isset($map['Data'])) {
- $model->data = $map['Data'];
- }
- if (isset($map['FireTime'])) {
- $model->fireTime = $map['FireTime'];
- }
- if (isset($map['StopTime'])) {
- $model->stopTime = $map['StopTime'];
- }
- if (isset($map['ScheduleType'])) {
- $model->scheduleType = $map['ScheduleType'];
- }
- return $model;
- }
- }
|