SingleSendMailRequest.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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 Dm\Request\V20151123;
  21. class SingleSendMailRequest extends \RpcAcsRequest
  22. {
  23. function __construct()
  24. {
  25. parent::__construct("Dm", "2015-11-23", "SingleSendMail");
  26. parent::setMethod("POST");
  27. }
  28. private $ownerId;
  29. private $resourceOwnerAccount;
  30. private $resourceOwnerId;
  31. private $accountName;
  32. private $addressType;
  33. private $tagName;
  34. private $replyToAddress;
  35. private $toAddress;
  36. private $subject;
  37. private $htmlBody;
  38. private $textBody;
  39. private $fromAlias;
  40. private $clickTrace;
  41. public function getClickTrace() {
  42. return $this->clickTrace;
  43. }
  44. public function setClickTrace($clickTrace) {
  45. $this->clickTrace = $clickTrace;
  46. $this->queryParameters["ClickTrace"]=$clickTrace;
  47. }
  48. public function getOwnerId() {
  49. return $this->ownerId;
  50. }
  51. public function setOwnerId($ownerId) {
  52. $this->ownerId = $ownerId;
  53. $this->queryParameters["OwnerId"]=$ownerId;
  54. }
  55. public function getResourceOwnerAccount() {
  56. return $this->resourceOwnerAccount;
  57. }
  58. public function setResourceOwnerAccount($resourceOwnerAccount) {
  59. $this->resourceOwnerAccount = $resourceOwnerAccount;
  60. $this->queryParameters["ResourceOwnerAccount"]=$resourceOwnerAccount;
  61. }
  62. public function getResourceOwnerId() {
  63. return $this->resourceOwnerId;
  64. }
  65. public function setResourceOwnerId($resourceOwnerId) {
  66. $this->resourceOwnerId = $resourceOwnerId;
  67. $this->queryParameters["ResourceOwnerId"]=$resourceOwnerId;
  68. }
  69. public function getAccountName() {
  70. return $this->accountName;
  71. }
  72. public function setAccountName($accountName) {
  73. $this->accountName = $accountName;
  74. $this->queryParameters["AccountName"]=$accountName;
  75. }
  76. public function getAddressType() {
  77. return $this->addressType;
  78. }
  79. public function setAddressType($addressType) {
  80. $this->addressType = $addressType;
  81. $this->queryParameters["AddressType"]=$addressType;
  82. }
  83. public function getTagName() {
  84. return $this->tagName;
  85. }
  86. public function setTagName($tagName) {
  87. $this->tagName = $tagName;
  88. $this->queryParameters["TagName"]=$tagName;
  89. }
  90. public function getReplyToAddress() {
  91. return $this->replyToAddress;
  92. }
  93. public function setReplyToAddress($replyToAddress) {
  94. $this->replyToAddress = $replyToAddress;
  95. $this->queryParameters["ReplyToAddress"]=$replyToAddress;
  96. }
  97. public function getToAddress() {
  98. return $this->toAddress;
  99. }
  100. public function setToAddress($toAddress) {
  101. $this->toAddress = $toAddress;
  102. $this->queryParameters["ToAddress"]=$toAddress;
  103. }
  104. public function getSubject() {
  105. return $this->subject;
  106. }
  107. public function setSubject($subject) {
  108. $this->subject = $subject;
  109. $this->queryParameters["Subject"]=$subject;
  110. }
  111. public function getHtmlBody() {
  112. return $this->htmlBody;
  113. }
  114. public function setHtmlBody($htmlBody) {
  115. $this->htmlBody = $htmlBody;
  116. $this->queryParameters["HtmlBody"]=$htmlBody;
  117. }
  118. public function getTextBody() {
  119. return $this->textBody;
  120. }
  121. public function setTextBody($textBody) {
  122. $this->textBody = $textBody;
  123. $this->queryParameters["TextBody"]=$textBody;
  124. }
  125. public function getFromAlias() {
  126. return $this->fromAlias;
  127. }
  128. public function setFromAlias($fromAlias) {
  129. $this->fromAlias = $fromAlias;
  130. $this->queryParameters["FromAlias"]=$fromAlias;
  131. }
  132. }