ModifySagRouteProtocolOspfRequest.cc 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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/ModifySagRouteProtocolOspfRequest.h>
  17. using AlibabaCloud::Smartag::Model::ModifySagRouteProtocolOspfRequest;
  18. ModifySagRouteProtocolOspfRequest::ModifySagRouteProtocolOspfRequest() :
  19. RpcServiceRequest("smartag", "2018-03-13", "ModifySagRouteProtocolOspf")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. ModifySagRouteProtocolOspfRequest::~ModifySagRouteProtocolOspfRequest()
  24. {}
  25. long ModifySagRouteProtocolOspfRequest::getResourceOwnerId()const
  26. {
  27. return resourceOwnerId_;
  28. }
  29. void ModifySagRouteProtocolOspfRequest::setResourceOwnerId(long resourceOwnerId)
  30. {
  31. resourceOwnerId_ = resourceOwnerId;
  32. setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  33. }
  34. std::string ModifySagRouteProtocolOspfRequest::getAuthenticationType()const
  35. {
  36. return authenticationType_;
  37. }
  38. void ModifySagRouteProtocolOspfRequest::setAuthenticationType(const std::string& authenticationType)
  39. {
  40. authenticationType_ = authenticationType;
  41. setParameter("AuthenticationType", authenticationType);
  42. }
  43. std::string ModifySagRouteProtocolOspfRequest::getPassword()const
  44. {
  45. return password_;
  46. }
  47. void ModifySagRouteProtocolOspfRequest::setPassword(const std::string& password)
  48. {
  49. password_ = password;
  50. setParameter("Password", password);
  51. }
  52. int ModifySagRouteProtocolOspfRequest::getAreaId()const
  53. {
  54. return areaId_;
  55. }
  56. void ModifySagRouteProtocolOspfRequest::setAreaId(int areaId)
  57. {
  58. areaId_ = areaId;
  59. setParameter("AreaId", std::to_string(areaId));
  60. }
  61. std::string ModifySagRouteProtocolOspfRequest::getRegionId()const
  62. {
  63. return regionId_;
  64. }
  65. void ModifySagRouteProtocolOspfRequest::setRegionId(const std::string& regionId)
  66. {
  67. regionId_ = regionId;
  68. setParameter("RegionId", regionId);
  69. }
  70. std::string ModifySagRouteProtocolOspfRequest::getResourceOwnerAccount()const
  71. {
  72. return resourceOwnerAccount_;
  73. }
  74. void ModifySagRouteProtocolOspfRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  75. {
  76. resourceOwnerAccount_ = resourceOwnerAccount;
  77. setParameter("ResourceOwnerAccount", resourceOwnerAccount);
  78. }
  79. std::string ModifySagRouteProtocolOspfRequest::getOwnerAccount()const
  80. {
  81. return ownerAccount_;
  82. }
  83. void ModifySagRouteProtocolOspfRequest::setOwnerAccount(const std::string& ownerAccount)
  84. {
  85. ownerAccount_ = ownerAccount;
  86. setParameter("OwnerAccount", ownerAccount);
  87. }
  88. long ModifySagRouteProtocolOspfRequest::getOwnerId()const
  89. {
  90. return ownerId_;
  91. }
  92. void ModifySagRouteProtocolOspfRequest::setOwnerId(long ownerId)
  93. {
  94. ownerId_ = ownerId;
  95. setParameter("OwnerId", std::to_string(ownerId));
  96. }
  97. int ModifySagRouteProtocolOspfRequest::getMd5KeyId()const
  98. {
  99. return md5KeyId_;
  100. }
  101. void ModifySagRouteProtocolOspfRequest::setMd5KeyId(int md5KeyId)
  102. {
  103. md5KeyId_ = md5KeyId;
  104. setParameter("Md5KeyId", std::to_string(md5KeyId));
  105. }
  106. std::string ModifySagRouteProtocolOspfRequest::getRouterId()const
  107. {
  108. return routerId_;
  109. }
  110. void ModifySagRouteProtocolOspfRequest::setRouterId(const std::string& routerId)
  111. {
  112. routerId_ = routerId;
  113. setParameter("RouterId", routerId);
  114. }
  115. std::string ModifySagRouteProtocolOspfRequest::getSmartAGId()const
  116. {
  117. return smartAGId_;
  118. }
  119. void ModifySagRouteProtocolOspfRequest::setSmartAGId(const std::string& smartAGId)
  120. {
  121. smartAGId_ = smartAGId;
  122. setParameter("SmartAGId", smartAGId);
  123. }
  124. std::string ModifySagRouteProtocolOspfRequest::getSmartAGSn()const
  125. {
  126. return smartAGSn_;
  127. }
  128. void ModifySagRouteProtocolOspfRequest::setSmartAGSn(const std::string& smartAGSn)
  129. {
  130. smartAGSn_ = smartAGSn;
  131. setParameter("SmartAGSn", smartAGSn);
  132. }
  133. int ModifySagRouteProtocolOspfRequest::getDeadTime()const
  134. {
  135. return deadTime_;
  136. }
  137. void ModifySagRouteProtocolOspfRequest::setDeadTime(int deadTime)
  138. {
  139. deadTime_ = deadTime;
  140. setParameter("DeadTime", std::to_string(deadTime));
  141. }
  142. std::string ModifySagRouteProtocolOspfRequest::getMd5Key()const
  143. {
  144. return md5Key_;
  145. }
  146. void ModifySagRouteProtocolOspfRequest::setMd5Key(const std::string& md5Key)
  147. {
  148. md5Key_ = md5Key;
  149. setParameter("Md5Key", md5Key);
  150. }
  151. int ModifySagRouteProtocolOspfRequest::getHelloTime()const
  152. {
  153. return helloTime_;
  154. }
  155. void ModifySagRouteProtocolOspfRequest::setHelloTime(int helloTime)
  156. {
  157. helloTime_ = helloTime;
  158. setParameter("HelloTime", std::to_string(helloTime));
  159. }