SendBatchSmsRequest.php 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <?php
  2. /*
  3. * Licensed to the Apache Software Foundation (ASF) under one
  4. * or more contributor license agreements. See the NOTICE file
  5. * distributed with this work for additional information
  6. * regarding copyright ownership. The ASF licenses this file
  7. * to you under the Apache License, Version 2.0 (the
  8. * "License"); you may not use this file except in compliance
  9. * with the License. You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing,
  14. * software distributed under the License is distributed on an
  15. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. * KIND, either express or implied. See the License for the
  17. * specific language governing permissions and limitations
  18. * under the License.
  19. */
  20. namespace Aliyun\Api\Sms\Request\V20170525;
  21. use Aliyun\Core\RpcAcsRequest;
  22. class SendBatchSmsRequest extends RpcAcsRequest
  23. {
  24. function __construct()
  25. {
  26. parent::__construct("Dysmsapi", "2017-05-25", "SendBatchSms");
  27. $this->setMethod("POST");
  28. }
  29. private $templateCode;
  30. private $templateParamJson;
  31. private $resourceOwnerAccount;
  32. private $smsUpExtendCodeJson;
  33. private $resourceOwnerId;
  34. private $signNameJson;
  35. private $ownerId;
  36. private $phoneNumberJson;
  37. public function getTemplateCode() {
  38. return $this->templateCode;
  39. }
  40. public function setTemplateCode($templateCode) {
  41. $this->templateCode = $templateCode;
  42. $this->queryParameters["TemplateCode"]=$templateCode;
  43. }
  44. public function getTemplateParamJson() {
  45. return $this->templateParamJson;
  46. }
  47. public function setTemplateParamJson($templateParamJson) {
  48. $this->templateParamJson = $templateParamJson;
  49. $this->queryParameters["TemplateParamJson"]=$templateParamJson;
  50. }
  51. public function getResourceOwnerAccount() {
  52. return $this->resourceOwnerAccount;
  53. }
  54. public function setResourceOwnerAccount($resourceOwnerAccount) {
  55. $this->resourceOwnerAccount = $resourceOwnerAccount;
  56. $this->queryParameters["ResourceOwnerAccount"]=$resourceOwnerAccount;
  57. }
  58. public function getSmsUpExtendCodeJson() {
  59. return $this->smsUpExtendCodeJson;
  60. }
  61. public function setSmsUpExtendCodeJson($smsUpExtendCodeJson) {
  62. $this->smsUpExtendCodeJson = $smsUpExtendCodeJson;
  63. $this->queryParameters["SmsUpExtendCodeJson"]=$smsUpExtendCodeJson;
  64. }
  65. public function getResourceOwnerId() {
  66. return $this->resourceOwnerId;
  67. }
  68. public function setResourceOwnerId($resourceOwnerId) {
  69. $this->resourceOwnerId = $resourceOwnerId;
  70. $this->queryParameters["ResourceOwnerId"]=$resourceOwnerId;
  71. }
  72. public function getSignNameJson() {
  73. return $this->signNameJson;
  74. }
  75. public function setSignNameJson($signNameJson) {
  76. $this->signNameJson = $signNameJson;
  77. $this->queryParameters["SignNameJson"]=$signNameJson;
  78. }
  79. public function getOwnerId() {
  80. return $this->ownerId;
  81. }
  82. public function setOwnerId($ownerId) {
  83. $this->ownerId = $ownerId;
  84. $this->queryParameters["OwnerId"]=$ownerId;
  85. }
  86. public function getPhoneNumberJson() {
  87. return $this->phoneNumberJson;
  88. }
  89. public function setPhoneNumberJson($phoneNumberJson) {
  90. $this->phoneNumberJson = $phoneNumberJson;
  91. $this->queryParameters["PhoneNumberJson"]=$phoneNumberJson;
  92. }
  93. }