ModifyQosPolicyRequest.cc 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. /*
  2. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #include <alibabacloud/smartag/model/ModifyQosPolicyRequest.h>
  17. using AlibabaCloud::Smartag::Model::ModifyQosPolicyRequest;
  18. ModifyQosPolicyRequest::ModifyQosPolicyRequest() :
  19. RpcServiceRequest("smartag", "2018-03-13", "ModifyQosPolicy")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. ModifyQosPolicyRequest::~ModifyQosPolicyRequest()
  24. {}
  25. long ModifyQosPolicyRequest::getResourceOwnerId()const
  26. {
  27. return resourceOwnerId_;
  28. }
  29. void ModifyQosPolicyRequest::setResourceOwnerId(long resourceOwnerId)
  30. {
  31. resourceOwnerId_ = resourceOwnerId;
  32. setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  33. }
  34. std::string ModifyQosPolicyRequest::getSourcePortRange()const
  35. {
  36. return sourcePortRange_;
  37. }
  38. void ModifyQosPolicyRequest::setSourcePortRange(const std::string& sourcePortRange)
  39. {
  40. sourcePortRange_ = sourcePortRange;
  41. setParameter("SourcePortRange", sourcePortRange);
  42. }
  43. std::string ModifyQosPolicyRequest::getQosPolicyId()const
  44. {
  45. return qosPolicyId_;
  46. }
  47. void ModifyQosPolicyRequest::setQosPolicyId(const std::string& qosPolicyId)
  48. {
  49. qosPolicyId_ = qosPolicyId;
  50. setParameter("QosPolicyId", qosPolicyId);
  51. }
  52. std::string ModifyQosPolicyRequest::getSourceCidr()const
  53. {
  54. return sourceCidr_;
  55. }
  56. void ModifyQosPolicyRequest::setSourceCidr(const std::string& sourceCidr)
  57. {
  58. sourceCidr_ = sourceCidr;
  59. setParameter("SourceCidr", sourceCidr);
  60. }
  61. std::string ModifyQosPolicyRequest::getDescription()const
  62. {
  63. return description_;
  64. }
  65. void ModifyQosPolicyRequest::setDescription(const std::string& description)
  66. {
  67. description_ = description;
  68. setParameter("Description", description);
  69. }
  70. std::string ModifyQosPolicyRequest::getStartTime()const
  71. {
  72. return startTime_;
  73. }
  74. void ModifyQosPolicyRequest::setStartTime(const std::string& startTime)
  75. {
  76. startTime_ = startTime;
  77. setParameter("StartTime", startTime);
  78. }
  79. std::string ModifyQosPolicyRequest::getDestCidr()const
  80. {
  81. return destCidr_;
  82. }
  83. void ModifyQosPolicyRequest::setDestCidr(const std::string& destCidr)
  84. {
  85. destCidr_ = destCidr;
  86. setParameter("DestCidr", destCidr);
  87. }
  88. std::string ModifyQosPolicyRequest::getRegionId()const
  89. {
  90. return regionId_;
  91. }
  92. void ModifyQosPolicyRequest::setRegionId(const std::string& regionId)
  93. {
  94. regionId_ = regionId;
  95. setParameter("RegionId", regionId);
  96. }
  97. std::string ModifyQosPolicyRequest::getQosId()const
  98. {
  99. return qosId_;
  100. }
  101. void ModifyQosPolicyRequest::setQosId(const std::string& qosId)
  102. {
  103. qosId_ = qosId;
  104. setParameter("QosId", qosId);
  105. }
  106. std::string ModifyQosPolicyRequest::getResourceOwnerAccount()const
  107. {
  108. return resourceOwnerAccount_;
  109. }
  110. void ModifyQosPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  111. {
  112. resourceOwnerAccount_ = resourceOwnerAccount;
  113. setParameter("ResourceOwnerAccount", resourceOwnerAccount);
  114. }
  115. std::string ModifyQosPolicyRequest::getIpProtocol()const
  116. {
  117. return ipProtocol_;
  118. }
  119. void ModifyQosPolicyRequest::setIpProtocol(const std::string& ipProtocol)
  120. {
  121. ipProtocol_ = ipProtocol;
  122. setParameter("IpProtocol", ipProtocol);
  123. }
  124. std::string ModifyQosPolicyRequest::getOwnerAccount()const
  125. {
  126. return ownerAccount_;
  127. }
  128. void ModifyQosPolicyRequest::setOwnerAccount(const std::string& ownerAccount)
  129. {
  130. ownerAccount_ = ownerAccount;
  131. setParameter("OwnerAccount", ownerAccount);
  132. }
  133. std::string ModifyQosPolicyRequest::getEndTime()const
  134. {
  135. return endTime_;
  136. }
  137. void ModifyQosPolicyRequest::setEndTime(const std::string& endTime)
  138. {
  139. endTime_ = endTime;
  140. setParameter("EndTime", endTime);
  141. }
  142. long ModifyQosPolicyRequest::getOwnerId()const
  143. {
  144. return ownerId_;
  145. }
  146. void ModifyQosPolicyRequest::setOwnerId(long ownerId)
  147. {
  148. ownerId_ = ownerId;
  149. setParameter("OwnerId", std::to_string(ownerId));
  150. }
  151. int ModifyQosPolicyRequest::getPriority()const
  152. {
  153. return priority_;
  154. }
  155. void ModifyQosPolicyRequest::setPriority(int priority)
  156. {
  157. priority_ = priority;
  158. setParameter("Priority", std::to_string(priority));
  159. }
  160. std::string ModifyQosPolicyRequest::getDestPortRange()const
  161. {
  162. return destPortRange_;
  163. }
  164. void ModifyQosPolicyRequest::setDestPortRange(const std::string& destPortRange)
  165. {
  166. destPortRange_ = destPortRange;
  167. setParameter("DestPortRange", destPortRange);
  168. }
  169. std::string ModifyQosPolicyRequest::getName()const
  170. {
  171. return name_;
  172. }
  173. void ModifyQosPolicyRequest::setName(const std::string& name)
  174. {
  175. name_ = name;
  176. setParameter("Name", name);
  177. }