DescribeHaVipsRequest.cc 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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/DescribeHaVipsRequest.h>
  17. using AlibabaCloud::Vpc::Model::DescribeHaVipsRequest;
  18. DescribeHaVipsRequest::DescribeHaVipsRequest()
  19. : RpcServiceRequest("vpc", "2016-04-28", "DescribeHaVips") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. DescribeHaVipsRequest::~DescribeHaVipsRequest() {}
  23. long DescribeHaVipsRequest::getResourceOwnerId() const {
  24. return resourceOwnerId_;
  25. }
  26. void DescribeHaVipsRequest::setResourceOwnerId(long resourceOwnerId) {
  27. resourceOwnerId_ = resourceOwnerId;
  28. setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
  29. }
  30. int DescribeHaVipsRequest::getPageNumber() const {
  31. return pageNumber_;
  32. }
  33. void DescribeHaVipsRequest::setPageNumber(int pageNumber) {
  34. pageNumber_ = pageNumber;
  35. setParameter(std::string("PageNumber"), std::to_string(pageNumber));
  36. }
  37. std::string DescribeHaVipsRequest::getResourceGroupId() const {
  38. return resourceGroupId_;
  39. }
  40. void DescribeHaVipsRequest::setResourceGroupId(const std::string &resourceGroupId) {
  41. resourceGroupId_ = resourceGroupId;
  42. setParameter(std::string("ResourceGroupId"), resourceGroupId);
  43. }
  44. std::string DescribeHaVipsRequest::getRegionId() const {
  45. return regionId_;
  46. }
  47. void DescribeHaVipsRequest::setRegionId(const std::string &regionId) {
  48. regionId_ = regionId;
  49. setParameter(std::string("RegionId"), regionId);
  50. }
  51. int DescribeHaVipsRequest::getPageSize() const {
  52. return pageSize_;
  53. }
  54. void DescribeHaVipsRequest::setPageSize(int pageSize) {
  55. pageSize_ = pageSize;
  56. setParameter(std::string("PageSize"), std::to_string(pageSize));
  57. }
  58. std::string DescribeHaVipsRequest::getResourceOwnerAccount() const {
  59. return resourceOwnerAccount_;
  60. }
  61. void DescribeHaVipsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
  62. resourceOwnerAccount_ = resourceOwnerAccount;
  63. setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
  64. }
  65. std::string DescribeHaVipsRequest::getOwnerAccount() const {
  66. return ownerAccount_;
  67. }
  68. void DescribeHaVipsRequest::setOwnerAccount(const std::string &ownerAccount) {
  69. ownerAccount_ = ownerAccount;
  70. setParameter(std::string("OwnerAccount"), ownerAccount);
  71. }
  72. long DescribeHaVipsRequest::getOwnerId() const {
  73. return ownerId_;
  74. }
  75. void DescribeHaVipsRequest::setOwnerId(long ownerId) {
  76. ownerId_ = ownerId;
  77. setParameter(std::string("OwnerId"), std::to_string(ownerId));
  78. }
  79. std::vector<DescribeHaVipsRequest::Tags> DescribeHaVipsRequest::getTags() const {
  80. return tags_;
  81. }
  82. void DescribeHaVipsRequest::setTags(const std::vector<DescribeHaVipsRequest::Tags> &tags) {
  83. tags_ = tags;
  84. for(int dep1 = 0; dep1 != tags.size(); dep1++) {
  85. auto tagsObj = tags.at(dep1);
  86. std::string tagsObjStr = std::string("Tags") + "." + std::to_string(dep1 + 1);
  87. setParameter(tagsObjStr + ".Value", tagsObj.value);
  88. setParameter(tagsObjStr + ".Key", tagsObj.key);
  89. }
  90. }
  91. std::vector<DescribeHaVipsRequest::Filter> DescribeHaVipsRequest::getFilter() const {
  92. return filter_;
  93. }
  94. void DescribeHaVipsRequest::setFilter(const std::vector<DescribeHaVipsRequest::Filter> &filter) {
  95. filter_ = filter;
  96. for(int dep1 = 0; dep1 != filter.size(); dep1++) {
  97. auto filterObj = filter.at(dep1);
  98. std::string filterObjStr = std::string("Filter") + "." + std::to_string(dep1 + 1);
  99. setParameter(filterObjStr + ".Key", filterObj.key);
  100. }
  101. }