ModifyVpnPbrRouteEntryWeightRequest.cc 4.5 KB

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