CreateBgpGroupRequest.cc 3.7 KB

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