CreateBgpGroupRequest.cc 3.9 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/CreateBgpGroupRequest.h>
  17. using AlibabaCloud::Vpc::Model::CreateBgpGroupRequest;
  18. CreateBgpGroupRequest::CreateBgpGroupRequest() :
  19. RpcServiceRequest("vpc", "2016-04-28", "CreateBgpGroup")
  20. {}
  21. CreateBgpGroupRequest::~CreateBgpGroupRequest()
  22. {}
  23. std::string CreateBgpGroupRequest::getAuthKey()const
  24. {
  25. return authKey_;
  26. }
  27. void CreateBgpGroupRequest::setAuthKey(const std::string& authKey)
  28. {
  29. authKey_ = authKey;
  30. setCoreParameter("AuthKey", authKey);
  31. }
  32. long CreateBgpGroupRequest::getResourceOwnerId()const
  33. {
  34. return resourceOwnerId_;
  35. }
  36. void CreateBgpGroupRequest::setResourceOwnerId(long resourceOwnerId)
  37. {
  38. resourceOwnerId_ = resourceOwnerId;
  39. setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  40. }
  41. std::string CreateBgpGroupRequest::getClientToken()const
  42. {
  43. return clientToken_;
  44. }
  45. void CreateBgpGroupRequest::setClientToken(const std::string& clientToken)
  46. {
  47. clientToken_ = clientToken;
  48. setCoreParameter("ClientToken", clientToken);
  49. }
  50. std::string CreateBgpGroupRequest::getDescription()const
  51. {
  52. return description_;
  53. }
  54. void CreateBgpGroupRequest::setDescription(const std::string& description)
  55. {
  56. description_ = description;
  57. setCoreParameter("Description", description);
  58. }
  59. long CreateBgpGroupRequest::getPeerAsn()const
  60. {
  61. return peerAsn_;
  62. }
  63. void CreateBgpGroupRequest::setPeerAsn(long peerAsn)
  64. {
  65. peerAsn_ = peerAsn;
  66. setCoreParameter("PeerAsn", std::to_string(peerAsn));
  67. }
  68. bool CreateBgpGroupRequest::getIsFakeAsn()const
  69. {
  70. return isFakeAsn_;
  71. }
  72. void CreateBgpGroupRequest::setIsFakeAsn(bool isFakeAsn)
  73. {
  74. isFakeAsn_ = isFakeAsn;
  75. setCoreParameter("IsFakeAsn", isFakeAsn ? "true" : "false");
  76. }
  77. std::string CreateBgpGroupRequest::getRegionId()const
  78. {
  79. return regionId_;
  80. }
  81. void CreateBgpGroupRequest::setRegionId(const std::string& regionId)
  82. {
  83. regionId_ = regionId;
  84. setCoreParameter("RegionId", regionId);
  85. }
  86. std::string CreateBgpGroupRequest::getResourceOwnerAccount()const
  87. {
  88. return resourceOwnerAccount_;
  89. }
  90. void CreateBgpGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  91. {
  92. resourceOwnerAccount_ = resourceOwnerAccount;
  93. setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
  94. }
  95. std::string CreateBgpGroupRequest::getOwnerAccount()const
  96. {
  97. return ownerAccount_;
  98. }
  99. void CreateBgpGroupRequest::setOwnerAccount(const std::string& ownerAccount)
  100. {
  101. ownerAccount_ = ownerAccount;
  102. setCoreParameter("OwnerAccount", ownerAccount);
  103. }
  104. long CreateBgpGroupRequest::getOwnerId()const
  105. {
  106. return ownerId_;
  107. }
  108. void CreateBgpGroupRequest::setOwnerId(long ownerId)
  109. {
  110. ownerId_ = ownerId;
  111. setCoreParameter("OwnerId", std::to_string(ownerId));
  112. }
  113. std::string CreateBgpGroupRequest::getRouterId()const
  114. {
  115. return routerId_;
  116. }
  117. void CreateBgpGroupRequest::setRouterId(const std::string& routerId)
  118. {
  119. routerId_ = routerId;
  120. setCoreParameter("RouterId", routerId);
  121. }
  122. std::string CreateBgpGroupRequest::getName()const
  123. {
  124. return name_;
  125. }
  126. void CreateBgpGroupRequest::setName(const std::string& name)
  127. {
  128. name_ = name;
  129. setCoreParameter("Name", name);
  130. }
  131. long CreateBgpGroupRequest::getLocalAsn()const
  132. {
  133. return localAsn_;
  134. }
  135. void CreateBgpGroupRequest::setLocalAsn(long localAsn)
  136. {
  137. localAsn_ = localAsn;
  138. setCoreParameter("LocalAsn", std::to_string(localAsn));
  139. }