SendSmsRequest.php 2.9 KB

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