SendInterSmsRequest.php 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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 SendInterSmsRequest extends RpcAcsRequest
  23. {
  24. function __construct()
  25. {
  26. parent::__construct("Dysmsapi", "2017-05-25", "SendInterSms");
  27. $this->setMethod("POST");
  28. }
  29. private $templateCode;
  30. private $phoneNumbers;
  31. private $countryCode;
  32. private $signName;
  33. private $resourceOwnerAccount;
  34. private $templateParam;
  35. private $resourceOwnerId;
  36. private $ownerId;
  37. private $outId;
  38. public function getTemplateCode() {
  39. return $this->templateCode;
  40. }
  41. public function setTemplateCode($templateCode) {
  42. $this->templateCode = $templateCode;
  43. $this->queryParameters["TemplateCode"]=$templateCode;
  44. }
  45. public function getPhoneNumbers() {
  46. return $this->phoneNumbers;
  47. }
  48. public function setPhoneNumbers($phoneNumbers) {
  49. $this->phoneNumbers = $phoneNumbers;
  50. $this->queryParameters["PhoneNumbers"]=$phoneNumbers;
  51. }
  52. public function getCountryCode() {
  53. return $this->countryCode;
  54. }
  55. public function setCountryCode($countryCode) {
  56. $this->countryCode = $countryCode;
  57. $this->queryParameters["CountryCode"]=$countryCode;
  58. }
  59. public function getSignName() {
  60. return $this->signName;
  61. }
  62. public function setSignName($signName) {
  63. $this->signName = $signName;
  64. $this->queryParameters["SignName"]=$signName;
  65. }
  66. public function getResourceOwnerAccount() {
  67. return $this->resourceOwnerAccount;
  68. }
  69. public function setResourceOwnerAccount($resourceOwnerAccount) {
  70. $this->resourceOwnerAccount = $resourceOwnerAccount;
  71. $this->queryParameters["ResourceOwnerAccount"]=$resourceOwnerAccount;
  72. }
  73. public function getTemplateParam() {
  74. return $this->templateParam;
  75. }
  76. public function setTemplateParam($templateParam) {
  77. $this->templateParam = $templateParam;
  78. $this->queryParameters["TemplateParam"]=$templateParam;
  79. }
  80. public function getResourceOwnerId() {
  81. return $this->resourceOwnerId;
  82. }
  83. public function setResourceOwnerId($resourceOwnerId) {
  84. $this->resourceOwnerId = $resourceOwnerId;
  85. $this->queryParameters["ResourceOwnerId"]=$resourceOwnerId;
  86. }
  87. public function getOwnerId() {
  88. return $this->ownerId;
  89. }
  90. public function setOwnerId($ownerId) {
  91. $this->ownerId = $ownerId;
  92. $this->queryParameters["OwnerId"]=$ownerId;
  93. }
  94. public function getOutId() {
  95. return $this->outId;
  96. }
  97. public function setOutId($outId) {
  98. $this->outId = $outId;
  99. $this->queryParameters["OutId"]=$outId;
  100. }
  101. }