ModifySagLanRequest.cc 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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/ModifySagLanRequest.h>
  17. using AlibabaCloud::Smartag::Model::ModifySagLanRequest;
  18. ModifySagLanRequest::ModifySagLanRequest() :
  19. RpcServiceRequest("smartag", "2018-03-13", "ModifySagLan")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. ModifySagLanRequest::~ModifySagLanRequest()
  24. {}
  25. std::string ModifySagLanRequest::getEndIp()const
  26. {
  27. return endIp_;
  28. }
  29. void ModifySagLanRequest::setEndIp(const std::string& endIp)
  30. {
  31. endIp_ = endIp;
  32. setParameter("EndIp", endIp);
  33. }
  34. long ModifySagLanRequest::getResourceOwnerId()const
  35. {
  36. return resourceOwnerId_;
  37. }
  38. void ModifySagLanRequest::setResourceOwnerId(long resourceOwnerId)
  39. {
  40. resourceOwnerId_ = resourceOwnerId;
  41. setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  42. }
  43. std::string ModifySagLanRequest::getRegionId()const
  44. {
  45. return regionId_;
  46. }
  47. void ModifySagLanRequest::setRegionId(const std::string& regionId)
  48. {
  49. regionId_ = regionId;
  50. setParameter("RegionId", regionId);
  51. }
  52. std::string ModifySagLanRequest::getMask()const
  53. {
  54. return mask_;
  55. }
  56. void ModifySagLanRequest::setMask(const std::string& mask)
  57. {
  58. mask_ = mask;
  59. setParameter("Mask", mask);
  60. }
  61. std::string ModifySagLanRequest::getStartIp()const
  62. {
  63. return startIp_;
  64. }
  65. void ModifySagLanRequest::setStartIp(const std::string& startIp)
  66. {
  67. startIp_ = startIp;
  68. setParameter("StartIp", startIp);
  69. }
  70. std::string ModifySagLanRequest::getResourceOwnerAccount()const
  71. {
  72. return resourceOwnerAccount_;
  73. }
  74. void ModifySagLanRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  75. {
  76. resourceOwnerAccount_ = resourceOwnerAccount;
  77. setParameter("ResourceOwnerAccount", resourceOwnerAccount);
  78. }
  79. std::string ModifySagLanRequest::getOwnerAccount()const
  80. {
  81. return ownerAccount_;
  82. }
  83. void ModifySagLanRequest::setOwnerAccount(const std::string& ownerAccount)
  84. {
  85. ownerAccount_ = ownerAccount;
  86. setParameter("OwnerAccount", ownerAccount);
  87. }
  88. std::string ModifySagLanRequest::getIP()const
  89. {
  90. return iP_;
  91. }
  92. void ModifySagLanRequest::setIP(const std::string& iP)
  93. {
  94. iP_ = iP;
  95. setParameter("IP", iP);
  96. }
  97. long ModifySagLanRequest::getOwnerId()const
  98. {
  99. return ownerId_;
  100. }
  101. void ModifySagLanRequest::setOwnerId(long ownerId)
  102. {
  103. ownerId_ = ownerId;
  104. setParameter("OwnerId", std::to_string(ownerId));
  105. }
  106. std::string ModifySagLanRequest::getIPType()const
  107. {
  108. return iPType_;
  109. }
  110. void ModifySagLanRequest::setIPType(const std::string& iPType)
  111. {
  112. iPType_ = iPType;
  113. setParameter("IPType", iPType);
  114. }
  115. std::string ModifySagLanRequest::getSmartAGId()const
  116. {
  117. return smartAGId_;
  118. }
  119. void ModifySagLanRequest::setSmartAGId(const std::string& smartAGId)
  120. {
  121. smartAGId_ = smartAGId;
  122. setParameter("SmartAGId", smartAGId);
  123. }
  124. std::string ModifySagLanRequest::getSmartAGSn()const
  125. {
  126. return smartAGSn_;
  127. }
  128. void ModifySagLanRequest::setSmartAGSn(const std::string& smartAGSn)
  129. {
  130. smartAGSn_ = smartAGSn;
  131. setParameter("SmartAGSn", smartAGSn);
  132. }
  133. std::string ModifySagLanRequest::getPortName()const
  134. {
  135. return portName_;
  136. }
  137. void ModifySagLanRequest::setPortName(const std::string& portName)
  138. {
  139. portName_ = portName;
  140. setParameter("PortName", portName);
  141. }
  142. std::string ModifySagLanRequest::getLease()const
  143. {
  144. return lease_;
  145. }
  146. void ModifySagLanRequest::setLease(const std::string& lease)
  147. {
  148. lease_ = lease;
  149. setParameter("Lease", lease);
  150. }