ModifyVpnPbrRouteEntryWeightRequest.cc 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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/vpc/model/ModifyVpnPbrRouteEntryWeightRequest.h>
  17. using AlibabaCloud::Vpc::Model::ModifyVpnPbrRouteEntryWeightRequest;
  18. ModifyVpnPbrRouteEntryWeightRequest::ModifyVpnPbrRouteEntryWeightRequest() :
  19. RpcServiceRequest("vpc", "2016-04-28", "ModifyVpnPbrRouteEntryWeight")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. ModifyVpnPbrRouteEntryWeightRequest::~ModifyVpnPbrRouteEntryWeightRequest()
  24. {}
  25. std::string ModifyVpnPbrRouteEntryWeightRequest::getRouteSource()const
  26. {
  27. return routeSource_;
  28. }
  29. void ModifyVpnPbrRouteEntryWeightRequest::setRouteSource(const std::string& routeSource)
  30. {
  31. routeSource_ = routeSource;
  32. setParameter("RouteSource", routeSource);
  33. }
  34. long ModifyVpnPbrRouteEntryWeightRequest::getResourceOwnerId()const
  35. {
  36. return resourceOwnerId_;
  37. }
  38. void ModifyVpnPbrRouteEntryWeightRequest::setResourceOwnerId(long resourceOwnerId)
  39. {
  40. resourceOwnerId_ = resourceOwnerId;
  41. setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  42. }
  43. std::string ModifyVpnPbrRouteEntryWeightRequest::getClientToken()const
  44. {
  45. return clientToken_;
  46. }
  47. void ModifyVpnPbrRouteEntryWeightRequest::setClientToken(const std::string& clientToken)
  48. {
  49. clientToken_ = clientToken;
  50. setParameter("ClientToken", clientToken);
  51. }
  52. int ModifyVpnPbrRouteEntryWeightRequest::getNewWeight()const
  53. {
  54. return newWeight_;
  55. }
  56. void ModifyVpnPbrRouteEntryWeightRequest::setNewWeight(int newWeight)
  57. {
  58. newWeight_ = newWeight;
  59. setParameter("NewWeight", std::to_string(newWeight));
  60. }
  61. std::string ModifyVpnPbrRouteEntryWeightRequest::getRegionId()const
  62. {
  63. return regionId_;
  64. }
  65. void ModifyVpnPbrRouteEntryWeightRequest::setRegionId(const std::string& regionId)
  66. {
  67. regionId_ = regionId;
  68. setParameter("RegionId", regionId);
  69. }
  70. std::string ModifyVpnPbrRouteEntryWeightRequest::getResourceOwnerAccount()const
  71. {
  72. return resourceOwnerAccount_;
  73. }
  74. void ModifyVpnPbrRouteEntryWeightRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  75. {
  76. resourceOwnerAccount_ = resourceOwnerAccount;
  77. setParameter("ResourceOwnerAccount", resourceOwnerAccount);
  78. }
  79. std::string ModifyVpnPbrRouteEntryWeightRequest::getOwnerAccount()const
  80. {
  81. return ownerAccount_;
  82. }
  83. void ModifyVpnPbrRouteEntryWeightRequest::setOwnerAccount(const std::string& ownerAccount)
  84. {
  85. ownerAccount_ = ownerAccount;
  86. setParameter("OwnerAccount", ownerAccount);
  87. }
  88. int ModifyVpnPbrRouteEntryWeightRequest::getWeight()const
  89. {
  90. return weight_;
  91. }
  92. void ModifyVpnPbrRouteEntryWeightRequest::setWeight(int weight)
  93. {
  94. weight_ = weight;
  95. setParameter("Weight", std::to_string(weight));
  96. }
  97. std::string ModifyVpnPbrRouteEntryWeightRequest::getVpnGatewayId()const
  98. {
  99. return vpnGatewayId_;
  100. }
  101. void ModifyVpnPbrRouteEntryWeightRequest::setVpnGatewayId(const std::string& vpnGatewayId)
  102. {
  103. vpnGatewayId_ = vpnGatewayId;
  104. setParameter("VpnGatewayId", vpnGatewayId);
  105. }
  106. long ModifyVpnPbrRouteEntryWeightRequest::getOwnerId()const
  107. {
  108. return ownerId_;
  109. }
  110. void ModifyVpnPbrRouteEntryWeightRequest::setOwnerId(long ownerId)
  111. {
  112. ownerId_ = ownerId;
  113. setParameter("OwnerId", std::to_string(ownerId));
  114. }
  115. std::string ModifyVpnPbrRouteEntryWeightRequest::getRouteDest()const
  116. {
  117. return routeDest_;
  118. }
  119. void ModifyVpnPbrRouteEntryWeightRequest::setRouteDest(const std::string& routeDest)
  120. {
  121. routeDest_ = routeDest;
  122. setParameter("RouteDest", routeDest);
  123. }
  124. std::string ModifyVpnPbrRouteEntryWeightRequest::getNextHop()const
  125. {
  126. return nextHop_;
  127. }
  128. void ModifyVpnPbrRouteEntryWeightRequest::setNextHop(const std::string& nextHop)
  129. {
  130. nextHop_ = nextHop;
  131. setParameter("NextHop", nextHop);
  132. }
  133. std::string ModifyVpnPbrRouteEntryWeightRequest::getOverlayMode()const
  134. {
  135. return overlayMode_;
  136. }
  137. void ModifyVpnPbrRouteEntryWeightRequest::setOverlayMode(const std::string& overlayMode)
  138. {
  139. overlayMode_ = overlayMode;
  140. setParameter("OverlayMode", overlayMode);
  141. }