SendBatchSmsRequest.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <?php
  2. // This file is auto-generated, don't edit it. Thanks.
  3. namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
  4. use AlibabaCloud\Tea\Model;
  5. class SendBatchSmsRequest extends Model
  6. {
  7. /**
  8. * @var string
  9. */
  10. public $outId;
  11. /**
  12. * @var int
  13. */
  14. public $ownerId;
  15. /**
  16. * @var string
  17. */
  18. public $phoneNumberJson;
  19. /**
  20. * @var string
  21. */
  22. public $resourceOwnerAccount;
  23. /**
  24. * @var int
  25. */
  26. public $resourceOwnerId;
  27. /**
  28. * @var string
  29. */
  30. public $signNameJson;
  31. /**
  32. * @var string
  33. */
  34. public $smsUpExtendCodeJson;
  35. /**
  36. * @var string
  37. */
  38. public $templateCode;
  39. /**
  40. * @var string
  41. */
  42. public $templateParamJson;
  43. protected $_name = [
  44. 'outId' => 'OutId',
  45. 'ownerId' => 'OwnerId',
  46. 'phoneNumberJson' => 'PhoneNumberJson',
  47. 'resourceOwnerAccount' => 'ResourceOwnerAccount',
  48. 'resourceOwnerId' => 'ResourceOwnerId',
  49. 'signNameJson' => 'SignNameJson',
  50. 'smsUpExtendCodeJson' => 'SmsUpExtendCodeJson',
  51. 'templateCode' => 'TemplateCode',
  52. 'templateParamJson' => 'TemplateParamJson',
  53. ];
  54. public function validate()
  55. {
  56. }
  57. public function toMap()
  58. {
  59. $res = [];
  60. if (null !== $this->outId) {
  61. $res['OutId'] = $this->outId;
  62. }
  63. if (null !== $this->ownerId) {
  64. $res['OwnerId'] = $this->ownerId;
  65. }
  66. if (null !== $this->phoneNumberJson) {
  67. $res['PhoneNumberJson'] = $this->phoneNumberJson;
  68. }
  69. if (null !== $this->resourceOwnerAccount) {
  70. $res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
  71. }
  72. if (null !== $this->resourceOwnerId) {
  73. $res['ResourceOwnerId'] = $this->resourceOwnerId;
  74. }
  75. if (null !== $this->signNameJson) {
  76. $res['SignNameJson'] = $this->signNameJson;
  77. }
  78. if (null !== $this->smsUpExtendCodeJson) {
  79. $res['SmsUpExtendCodeJson'] = $this->smsUpExtendCodeJson;
  80. }
  81. if (null !== $this->templateCode) {
  82. $res['TemplateCode'] = $this->templateCode;
  83. }
  84. if (null !== $this->templateParamJson) {
  85. $res['TemplateParamJson'] = $this->templateParamJson;
  86. }
  87. return $res;
  88. }
  89. /**
  90. * @param array $map
  91. *
  92. * @return SendBatchSmsRequest
  93. */
  94. public static function fromMap($map = [])
  95. {
  96. $model = new self();
  97. if (isset($map['OutId'])) {
  98. $model->outId = $map['OutId'];
  99. }
  100. if (isset($map['OwnerId'])) {
  101. $model->ownerId = $map['OwnerId'];
  102. }
  103. if (isset($map['PhoneNumberJson'])) {
  104. $model->phoneNumberJson = $map['PhoneNumberJson'];
  105. }
  106. if (isset($map['ResourceOwnerAccount'])) {
  107. $model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
  108. }
  109. if (isset($map['ResourceOwnerId'])) {
  110. $model->resourceOwnerId = $map['ResourceOwnerId'];
  111. }
  112. if (isset($map['SignNameJson'])) {
  113. $model->signNameJson = $map['SignNameJson'];
  114. }
  115. if (isset($map['SmsUpExtendCodeJson'])) {
  116. $model->smsUpExtendCodeJson = $map['SmsUpExtendCodeJson'];
  117. }
  118. if (isset($map['TemplateCode'])) {
  119. $model->templateCode = $map['TemplateCode'];
  120. }
  121. if (isset($map['TemplateParamJson'])) {
  122. $model->templateParamJson = $map['TemplateParamJson'];
  123. }
  124. return $model;
  125. }
  126. }