CreateTransitRouterVbrAttachmentRequest.cc 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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/cbn/model/CreateTransitRouterVbrAttachmentRequest.h>
  17. using AlibabaCloud::Cbn::Model::CreateTransitRouterVbrAttachmentRequest;
  18. CreateTransitRouterVbrAttachmentRequest::CreateTransitRouterVbrAttachmentRequest()
  19. : RpcServiceRequest("cbn", "2017-09-12", "CreateTransitRouterVbrAttachment") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. CreateTransitRouterVbrAttachmentRequest::~CreateTransitRouterVbrAttachmentRequest() {}
  23. long CreateTransitRouterVbrAttachmentRequest::getResourceOwnerId() const {
  24. return resourceOwnerId_;
  25. }
  26. void CreateTransitRouterVbrAttachmentRequest::setResourceOwnerId(long resourceOwnerId) {
  27. resourceOwnerId_ = resourceOwnerId;
  28. setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
  29. }
  30. std::string CreateTransitRouterVbrAttachmentRequest::getClientToken() const {
  31. return clientToken_;
  32. }
  33. void CreateTransitRouterVbrAttachmentRequest::setClientToken(const std::string &clientToken) {
  34. clientToken_ = clientToken;
  35. setParameter(std::string("ClientToken"), clientToken);
  36. }
  37. std::string CreateTransitRouterVbrAttachmentRequest::getCenId() const {
  38. return cenId_;
  39. }
  40. void CreateTransitRouterVbrAttachmentRequest::setCenId(const std::string &cenId) {
  41. cenId_ = cenId;
  42. setParameter(std::string("CenId"), cenId);
  43. }
  44. bool CreateTransitRouterVbrAttachmentRequest::getRouteTableAssociationEnabled() const {
  45. return routeTableAssociationEnabled_;
  46. }
  47. void CreateTransitRouterVbrAttachmentRequest::setRouteTableAssociationEnabled(bool routeTableAssociationEnabled) {
  48. routeTableAssociationEnabled_ = routeTableAssociationEnabled;
  49. setParameter(std::string("RouteTableAssociationEnabled"), routeTableAssociationEnabled ? "true" : "false");
  50. }
  51. std::string CreateTransitRouterVbrAttachmentRequest::getVbrId() const {
  52. return vbrId_;
  53. }
  54. void CreateTransitRouterVbrAttachmentRequest::setVbrId(const std::string &vbrId) {
  55. vbrId_ = vbrId;
  56. setParameter(std::string("VbrId"), vbrId);
  57. }
  58. std::string CreateTransitRouterVbrAttachmentRequest::getTransitRouterAttachmentName() const {
  59. return transitRouterAttachmentName_;
  60. }
  61. void CreateTransitRouterVbrAttachmentRequest::setTransitRouterAttachmentName(const std::string &transitRouterAttachmentName) {
  62. transitRouterAttachmentName_ = transitRouterAttachmentName;
  63. setParameter(std::string("TransitRouterAttachmentName"), transitRouterAttachmentName);
  64. }
  65. std::string CreateTransitRouterVbrAttachmentRequest::getRegionId() const {
  66. return regionId_;
  67. }
  68. void CreateTransitRouterVbrAttachmentRequest::setRegionId(const std::string &regionId) {
  69. regionId_ = regionId;
  70. setParameter(std::string("RegionId"), regionId);
  71. }
  72. bool CreateTransitRouterVbrAttachmentRequest::getAutoPublishRouteEnabled() const {
  73. return autoPublishRouteEnabled_;
  74. }
  75. void CreateTransitRouterVbrAttachmentRequest::setAutoPublishRouteEnabled(bool autoPublishRouteEnabled) {
  76. autoPublishRouteEnabled_ = autoPublishRouteEnabled;
  77. setParameter(std::string("AutoPublishRouteEnabled"), autoPublishRouteEnabled ? "true" : "false");
  78. }
  79. bool CreateTransitRouterVbrAttachmentRequest::getRouteTablePropagationEnabled() const {
  80. return routeTablePropagationEnabled_;
  81. }
  82. void CreateTransitRouterVbrAttachmentRequest::setRouteTablePropagationEnabled(bool routeTablePropagationEnabled) {
  83. routeTablePropagationEnabled_ = routeTablePropagationEnabled;
  84. setParameter(std::string("RouteTablePropagationEnabled"), routeTablePropagationEnabled ? "true" : "false");
  85. }
  86. bool CreateTransitRouterVbrAttachmentRequest::getDryRun() const {
  87. return dryRun_;
  88. }
  89. void CreateTransitRouterVbrAttachmentRequest::setDryRun(bool dryRun) {
  90. dryRun_ = dryRun;
  91. setParameter(std::string("DryRun"), dryRun ? "true" : "false");
  92. }
  93. std::string CreateTransitRouterVbrAttachmentRequest::getResourceOwnerAccount() const {
  94. return resourceOwnerAccount_;
  95. }
  96. void CreateTransitRouterVbrAttachmentRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
  97. resourceOwnerAccount_ = resourceOwnerAccount;
  98. setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
  99. }
  100. std::string CreateTransitRouterVbrAttachmentRequest::getOwnerAccount() const {
  101. return ownerAccount_;
  102. }
  103. void CreateTransitRouterVbrAttachmentRequest::setOwnerAccount(const std::string &ownerAccount) {
  104. ownerAccount_ = ownerAccount;
  105. setParameter(std::string("OwnerAccount"), ownerAccount);
  106. }
  107. long CreateTransitRouterVbrAttachmentRequest::getOwnerId() const {
  108. return ownerId_;
  109. }
  110. void CreateTransitRouterVbrAttachmentRequest::setOwnerId(long ownerId) {
  111. ownerId_ = ownerId;
  112. setParameter(std::string("OwnerId"), std::to_string(ownerId));
  113. }
  114. std::string CreateTransitRouterVbrAttachmentRequest::getTransitRouterId() const {
  115. return transitRouterId_;
  116. }
  117. void CreateTransitRouterVbrAttachmentRequest::setTransitRouterId(const std::string &transitRouterId) {
  118. transitRouterId_ = transitRouterId;
  119. setParameter(std::string("TransitRouterId"), transitRouterId);
  120. }
  121. std::string CreateTransitRouterVbrAttachmentRequest::getResourceType() const {
  122. return resourceType_;
  123. }
  124. void CreateTransitRouterVbrAttachmentRequest::setResourceType(const std::string &resourceType) {
  125. resourceType_ = resourceType;
  126. setParameter(std::string("ResourceType"), resourceType);
  127. }
  128. std::string CreateTransitRouterVbrAttachmentRequest::getTransitRouterAttachmentDescription() const {
  129. return transitRouterAttachmentDescription_;
  130. }
  131. void CreateTransitRouterVbrAttachmentRequest::setTransitRouterAttachmentDescription(const std::string &transitRouterAttachmentDescription) {
  132. transitRouterAttachmentDescription_ = transitRouterAttachmentDescription;
  133. setParameter(std::string("TransitRouterAttachmentDescription"), transitRouterAttachmentDescription);
  134. }
  135. std::string CreateTransitRouterVbrAttachmentRequest::getAssociateRouteTableId() const {
  136. return associateRouteTableId_;
  137. }
  138. void CreateTransitRouterVbrAttachmentRequest::setAssociateRouteTableId(const std::string &associateRouteTableId) {
  139. associateRouteTableId_ = associateRouteTableId;
  140. setParameter(std::string("AssociateRouteTableId"), associateRouteTableId);
  141. }
  142. long CreateTransitRouterVbrAttachmentRequest::getVbrOwnerId() const {
  143. return vbrOwnerId_;
  144. }
  145. void CreateTransitRouterVbrAttachmentRequest::setVbrOwnerId(long vbrOwnerId) {
  146. vbrOwnerId_ = vbrOwnerId;
  147. setParameter(std::string("VbrOwnerId"), std::to_string(vbrOwnerId));
  148. }