CreateTransitRouterRequest.cc 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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/CreateTransitRouterRequest.h>
  17. using AlibabaCloud::Cbn::Model::CreateTransitRouterRequest;
  18. CreateTransitRouterRequest::CreateTransitRouterRequest()
  19. : RpcServiceRequest("cbn", "2017-09-12", "CreateTransitRouter") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. CreateTransitRouterRequest::~CreateTransitRouterRequest() {}
  23. std::string CreateTransitRouterRequest::getTransitRouterName() const {
  24. return transitRouterName_;
  25. }
  26. void CreateTransitRouterRequest::setTransitRouterName(const std::string &transitRouterName) {
  27. transitRouterName_ = transitRouterName;
  28. setParameter(std::string("TransitRouterName"), transitRouterName);
  29. }
  30. long CreateTransitRouterRequest::getResourceOwnerId() const {
  31. return resourceOwnerId_;
  32. }
  33. void CreateTransitRouterRequest::setResourceOwnerId(long resourceOwnerId) {
  34. resourceOwnerId_ = resourceOwnerId;
  35. setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
  36. }
  37. std::string CreateTransitRouterRequest::getServiceMode() const {
  38. return serviceMode_;
  39. }
  40. void CreateTransitRouterRequest::setServiceMode(const std::string &serviceMode) {
  41. serviceMode_ = serviceMode;
  42. setParameter(std::string("ServiceMode"), serviceMode);
  43. }
  44. std::string CreateTransitRouterRequest::getClientToken() const {
  45. return clientToken_;
  46. }
  47. void CreateTransitRouterRequest::setClientToken(const std::string &clientToken) {
  48. clientToken_ = clientToken;
  49. setParameter(std::string("ClientToken"), clientToken);
  50. }
  51. std::string CreateTransitRouterRequest::getCenId() const {
  52. return cenId_;
  53. }
  54. void CreateTransitRouterRequest::setCenId(const std::string &cenId) {
  55. cenId_ = cenId;
  56. setParameter(std::string("CenId"), cenId);
  57. }
  58. std::string CreateTransitRouterRequest::getType() const {
  59. return type_;
  60. }
  61. void CreateTransitRouterRequest::setType(const std::string &type) {
  62. type_ = type;
  63. setParameter(std::string("Type"), type);
  64. }
  65. std::string CreateTransitRouterRequest::getRegionId() const {
  66. return regionId_;
  67. }
  68. void CreateTransitRouterRequest::setRegionId(const std::string &regionId) {
  69. regionId_ = regionId;
  70. setParameter(std::string("RegionId"), regionId);
  71. }
  72. bool CreateTransitRouterRequest::getDryRun() const {
  73. return dryRun_;
  74. }
  75. void CreateTransitRouterRequest::setDryRun(bool dryRun) {
  76. dryRun_ = dryRun;
  77. setParameter(std::string("DryRun"), dryRun ? "true" : "false");
  78. }
  79. std::string CreateTransitRouterRequest::getResourceOwnerAccount() const {
  80. return resourceOwnerAccount_;
  81. }
  82. void CreateTransitRouterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
  83. resourceOwnerAccount_ = resourceOwnerAccount;
  84. setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
  85. }
  86. std::string CreateTransitRouterRequest::getOwnerAccount() const {
  87. return ownerAccount_;
  88. }
  89. void CreateTransitRouterRequest::setOwnerAccount(const std::string &ownerAccount) {
  90. ownerAccount_ = ownerAccount;
  91. setParameter(std::string("OwnerAccount"), ownerAccount);
  92. }
  93. long CreateTransitRouterRequest::getOwnerId() const {
  94. return ownerId_;
  95. }
  96. void CreateTransitRouterRequest::setOwnerId(long ownerId) {
  97. ownerId_ = ownerId;
  98. setParameter(std::string("OwnerId"), std::to_string(ownerId));
  99. }
  100. std::string CreateTransitRouterRequest::getTransitRouterDescription() const {
  101. return transitRouterDescription_;
  102. }
  103. void CreateTransitRouterRequest::setTransitRouterDescription(const std::string &transitRouterDescription) {
  104. transitRouterDescription_ = transitRouterDescription;
  105. setParameter(std::string("TransitRouterDescription"), transitRouterDescription);
  106. }
  107. bool CreateTransitRouterRequest::getSupportMulticast() const {
  108. return supportMulticast_;
  109. }
  110. void CreateTransitRouterRequest::setSupportMulticast(bool supportMulticast) {
  111. supportMulticast_ = supportMulticast;
  112. setParameter(std::string("SupportMulticast"), supportMulticast ? "true" : "false");
  113. }