ListGrantVSwitchEnisRequest.cc 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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/ListGrantVSwitchEnisRequest.h>
  17. using AlibabaCloud::Cbn::Model::ListGrantVSwitchEnisRequest;
  18. ListGrantVSwitchEnisRequest::ListGrantVSwitchEnisRequest()
  19. : RpcServiceRequest("cbn", "2017-09-12", "ListGrantVSwitchEnis") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. ListGrantVSwitchEnisRequest::~ListGrantVSwitchEnisRequest() {}
  23. long ListGrantVSwitchEnisRequest::getResourceOwnerId() const {
  24. return resourceOwnerId_;
  25. }
  26. void ListGrantVSwitchEnisRequest::setResourceOwnerId(long resourceOwnerId) {
  27. resourceOwnerId_ = resourceOwnerId;
  28. setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
  29. }
  30. std::string ListGrantVSwitchEnisRequest::getCenId() const {
  31. return cenId_;
  32. }
  33. void ListGrantVSwitchEnisRequest::setCenId(const std::string &cenId) {
  34. cenId_ = cenId;
  35. setParameter(std::string("CenId"), cenId);
  36. }
  37. int ListGrantVSwitchEnisRequest::getPageNumber() const {
  38. return pageNumber_;
  39. }
  40. void ListGrantVSwitchEnisRequest::setPageNumber(int pageNumber) {
  41. pageNumber_ = pageNumber;
  42. setParameter(std::string("PageNumber"), std::to_string(pageNumber));
  43. }
  44. std::string ListGrantVSwitchEnisRequest::getNextToken() const {
  45. return nextToken_;
  46. }
  47. void ListGrantVSwitchEnisRequest::setNextToken(const std::string &nextToken) {
  48. nextToken_ = nextToken;
  49. setParameter(std::string("NextToken"), nextToken);
  50. }
  51. int ListGrantVSwitchEnisRequest::getPageSize() const {
  52. return pageSize_;
  53. }
  54. void ListGrantVSwitchEnisRequest::setPageSize(int pageSize) {
  55. pageSize_ = pageSize;
  56. setParameter(std::string("PageSize"), std::to_string(pageSize));
  57. }
  58. std::string ListGrantVSwitchEnisRequest::getNetworkInterfaceName() const {
  59. return networkInterfaceName_;
  60. }
  61. void ListGrantVSwitchEnisRequest::setNetworkInterfaceName(const std::string &networkInterfaceName) {
  62. networkInterfaceName_ = networkInterfaceName;
  63. setParameter(std::string("NetworkInterfaceName"), networkInterfaceName);
  64. }
  65. std::string ListGrantVSwitchEnisRequest::getResourceOwnerAccount() const {
  66. return resourceOwnerAccount_;
  67. }
  68. void ListGrantVSwitchEnisRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
  69. resourceOwnerAccount_ = resourceOwnerAccount;
  70. setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
  71. }
  72. std::string ListGrantVSwitchEnisRequest::getOwnerAccount() const {
  73. return ownerAccount_;
  74. }
  75. void ListGrantVSwitchEnisRequest::setOwnerAccount(const std::string &ownerAccount) {
  76. ownerAccount_ = ownerAccount;
  77. setParameter(std::string("OwnerAccount"), ownerAccount);
  78. }
  79. long ListGrantVSwitchEnisRequest::getOwnerId() const {
  80. return ownerId_;
  81. }
  82. void ListGrantVSwitchEnisRequest::setOwnerId(long ownerId) {
  83. ownerId_ = ownerId;
  84. setParameter(std::string("OwnerId"), std::to_string(ownerId));
  85. }
  86. std::string ListGrantVSwitchEnisRequest::getVersion() const {
  87. return version_;
  88. }
  89. void ListGrantVSwitchEnisRequest::setVersion(const std::string &version) {
  90. version_ = version;
  91. setParameter(std::string("Version"), version);
  92. }
  93. std::string ListGrantVSwitchEnisRequest::getVSwitchId() const {
  94. return vSwitchId_;
  95. }
  96. void ListGrantVSwitchEnisRequest::setVSwitchId(const std::string &vSwitchId) {
  97. vSwitchId_ = vSwitchId;
  98. setParameter(std::string("VSwitchId"), vSwitchId);
  99. }
  100. std::string ListGrantVSwitchEnisRequest::getVpcId() const {
  101. return vpcId_;
  102. }
  103. void ListGrantVSwitchEnisRequest::setVpcId(const std::string &vpcId) {
  104. vpcId_ = vpcId;
  105. setParameter(std::string("VpcId"), vpcId);
  106. }
  107. long ListGrantVSwitchEnisRequest::getMaxResults() const {
  108. return maxResults_;
  109. }
  110. void ListGrantVSwitchEnisRequest::setMaxResults(long maxResults) {
  111. maxResults_ = maxResults;
  112. setParameter(std::string("MaxResults"), std::to_string(maxResults));
  113. }
  114. std::string ListGrantVSwitchEnisRequest::getPrimaryIpAddress() const {
  115. return primaryIpAddress_;
  116. }
  117. void ListGrantVSwitchEnisRequest::setPrimaryIpAddress(const std::string &primaryIpAddress) {
  118. primaryIpAddress_ = primaryIpAddress;
  119. setParameter(std::string("PrimaryIpAddress"), primaryIpAddress);
  120. }
  121. std::vector<ListGrantVSwitchEnisRequest::std::string> ListGrantVSwitchEnisRequest::getNetworkInterfaceId() const {
  122. return networkInterfaceId_;
  123. }
  124. void ListGrantVSwitchEnisRequest::setNetworkInterfaceId(const std::vector<ListGrantVSwitchEnisRequest::std::string> &networkInterfaceId) {
  125. networkInterfaceId_ = networkInterfaceId;
  126. for(int dep1 = 0; dep1 != networkInterfaceId.size(); dep1++) {
  127. setParameter(std::string("NetworkInterfaceId") + "." + std::to_string(dep1 + 1), networkInterfaceId[dep1]);
  128. }
  129. }