DescribeVpcsRequest.cc 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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/DescribeVpcsRequest.h>
  17. using AlibabaCloud::Vpc::Model::DescribeVpcsRequest;
  18. DescribeVpcsRequest::DescribeVpcsRequest() :
  19. RpcServiceRequest("vpc", "2016-04-28", "DescribeVpcs")
  20. {}
  21. DescribeVpcsRequest::~DescribeVpcsRequest()
  22. {}
  23. long DescribeVpcsRequest::getResourceOwnerId()const
  24. {
  25. return resourceOwnerId_;
  26. }
  27. void DescribeVpcsRequest::setResourceOwnerId(long resourceOwnerId)
  28. {
  29. resourceOwnerId_ = resourceOwnerId;
  30. setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  31. }
  32. int DescribeVpcsRequest::getPageNumber()const
  33. {
  34. return pageNumber_;
  35. }
  36. void DescribeVpcsRequest::setPageNumber(int pageNumber)
  37. {
  38. pageNumber_ = pageNumber;
  39. setCoreParameter("PageNumber", std::to_string(pageNumber));
  40. }
  41. std::string DescribeVpcsRequest::getVpcName()const
  42. {
  43. return vpcName_;
  44. }
  45. void DescribeVpcsRequest::setVpcName(const std::string& vpcName)
  46. {
  47. vpcName_ = vpcName;
  48. setCoreParameter("VpcName", vpcName);
  49. }
  50. std::string DescribeVpcsRequest::getResourceGroupId()const
  51. {
  52. return resourceGroupId_;
  53. }
  54. void DescribeVpcsRequest::setResourceGroupId(const std::string& resourceGroupId)
  55. {
  56. resourceGroupId_ = resourceGroupId;
  57. setCoreParameter("ResourceGroupId", resourceGroupId);
  58. }
  59. std::string DescribeVpcsRequest::getRegionId()const
  60. {
  61. return regionId_;
  62. }
  63. void DescribeVpcsRequest::setRegionId(const std::string& regionId)
  64. {
  65. regionId_ = regionId;
  66. setCoreParameter("RegionId", regionId);
  67. }
  68. int DescribeVpcsRequest::getPageSize()const
  69. {
  70. return pageSize_;
  71. }
  72. void DescribeVpcsRequest::setPageSize(int pageSize)
  73. {
  74. pageSize_ = pageSize;
  75. setCoreParameter("PageSize", std::to_string(pageSize));
  76. }
  77. std::vector<DescribeVpcsRequest::Tag> DescribeVpcsRequest::getTag()const
  78. {
  79. return tag_;
  80. }
  81. void DescribeVpcsRequest::setTag(const std::vector<Tag>& tag)
  82. {
  83. tag_ = tag;
  84. int i = 0;
  85. for(int i = 0; i!= tag.size(); i++) {
  86. auto obj = tag.at(i);
  87. std::string str ="Tag."+ std::to_string(i);
  88. setCoreParameter(str + ".Value", obj.value);
  89. setCoreParameter(str + ".Key", obj.key);
  90. }
  91. }
  92. bool DescribeVpcsRequest::getIsDefault()const
  93. {
  94. return isDefault_;
  95. }
  96. void DescribeVpcsRequest::setIsDefault(bool isDefault)
  97. {
  98. isDefault_ = isDefault;
  99. setCoreParameter("IsDefault", isDefault ? "true" : "false");
  100. }
  101. bool DescribeVpcsRequest::getDryRun()const
  102. {
  103. return dryRun_;
  104. }
  105. void DescribeVpcsRequest::setDryRun(bool dryRun)
  106. {
  107. dryRun_ = dryRun;
  108. setCoreParameter("DryRun", dryRun ? "true" : "false");
  109. }
  110. std::string DescribeVpcsRequest::getResourceOwnerAccount()const
  111. {
  112. return resourceOwnerAccount_;
  113. }
  114. void DescribeVpcsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  115. {
  116. resourceOwnerAccount_ = resourceOwnerAccount;
  117. setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
  118. }
  119. std::string DescribeVpcsRequest::getOwnerAccount()const
  120. {
  121. return ownerAccount_;
  122. }
  123. void DescribeVpcsRequest::setOwnerAccount(const std::string& ownerAccount)
  124. {
  125. ownerAccount_ = ownerAccount;
  126. setCoreParameter("OwnerAccount", ownerAccount);
  127. }
  128. long DescribeVpcsRequest::getOwnerId()const
  129. {
  130. return ownerId_;
  131. }
  132. void DescribeVpcsRequest::setOwnerId(long ownerId)
  133. {
  134. ownerId_ = ownerId;
  135. setCoreParameter("OwnerId", std::to_string(ownerId));
  136. }
  137. std::string DescribeVpcsRequest::getVpcId()const
  138. {
  139. return vpcId_;
  140. }
  141. void DescribeVpcsRequest::setVpcId(const std::string& vpcId)
  142. {
  143. vpcId_ = vpcId;
  144. setCoreParameter("VpcId", vpcId);
  145. }