ListVpdsRequest.cc 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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/eflo/model/ListVpdsRequest.h>
  17. using AlibabaCloud::Eflo::Model::ListVpdsRequest;
  18. ListVpdsRequest::ListVpdsRequest()
  19. : RpcServiceRequest("eflo", "2022-05-30", "ListVpds") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. ListVpdsRequest::~ListVpdsRequest() {}
  23. std::string ListVpdsRequest::getVpdName() const {
  24. return vpdName_;
  25. }
  26. void ListVpdsRequest::setVpdName(const std::string &vpdName) {
  27. vpdName_ = vpdName;
  28. setBodyParameter(std::string("VpdName"), vpdName);
  29. }
  30. int ListVpdsRequest::getPageNumber() const {
  31. return pageNumber_;
  32. }
  33. void ListVpdsRequest::setPageNumber(int pageNumber) {
  34. pageNumber_ = pageNumber;
  35. setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
  36. }
  37. bool ListVpdsRequest::getWithDependence() const {
  38. return withDependence_;
  39. }
  40. void ListVpdsRequest::setWithDependence(bool withDependence) {
  41. withDependence_ = withDependence;
  42. setBodyParameter(std::string("WithDependence"), withDependence ? "true" : "false");
  43. }
  44. std::string ListVpdsRequest::getResourceGroupId() const {
  45. return resourceGroupId_;
  46. }
  47. void ListVpdsRequest::setResourceGroupId(const std::string &resourceGroupId) {
  48. resourceGroupId_ = resourceGroupId;
  49. setBodyParameter(std::string("ResourceGroupId"), resourceGroupId);
  50. }
  51. std::string ListVpdsRequest::getRegionId() const {
  52. return regionId_;
  53. }
  54. void ListVpdsRequest::setRegionId(const std::string &regionId) {
  55. regionId_ = regionId;
  56. setBodyParameter(std::string("RegionId"), regionId);
  57. }
  58. bool ListVpdsRequest::getWithoutVcc() const {
  59. return withoutVcc_;
  60. }
  61. void ListVpdsRequest::setWithoutVcc(bool withoutVcc) {
  62. withoutVcc_ = withoutVcc;
  63. setBodyParameter(std::string("WithoutVcc"), withoutVcc ? "true" : "false");
  64. }
  65. int ListVpdsRequest::getPageSize() const {
  66. return pageSize_;
  67. }
  68. void ListVpdsRequest::setPageSize(int pageSize) {
  69. pageSize_ = pageSize;
  70. setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
  71. }
  72. std::vector<ListVpdsRequest::Tag> ListVpdsRequest::getTag() const {
  73. return tag_;
  74. }
  75. void ListVpdsRequest::setTag(const std::vector<ListVpdsRequest::Tag> &tag) {
  76. tag_ = tag;
  77. for(int dep1 = 0; dep1 != tag.size(); dep1++) {
  78. auto tagObj = tag.at(dep1);
  79. std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
  80. setBodyParameter(tagObjStr + ".Value", tagObj.value);
  81. setBodyParameter(tagObjStr + ".Key", tagObj.key);
  82. }
  83. }
  84. bool ListVpdsRequest::getForSelect() const {
  85. return forSelect_;
  86. }
  87. void ListVpdsRequest::setForSelect(bool forSelect) {
  88. forSelect_ = forSelect;
  89. setBodyParameter(std::string("ForSelect"), forSelect ? "true" : "false");
  90. }
  91. std::string ListVpdsRequest::getFilterErId() const {
  92. return filterErId_;
  93. }
  94. void ListVpdsRequest::setFilterErId(const std::string &filterErId) {
  95. filterErId_ = filterErId;
  96. setBodyParameter(std::string("FilterErId"), filterErId);
  97. }
  98. std::string ListVpdsRequest::getVpdId() const {
  99. return vpdId_;
  100. }
  101. void ListVpdsRequest::setVpdId(const std::string &vpdId) {
  102. vpdId_ = vpdId;
  103. setBodyParameter(std::string("VpdId"), vpdId);
  104. }
  105. bool ListVpdsRequest::getEnablePage() const {
  106. return enablePage_;
  107. }
  108. void ListVpdsRequest::setEnablePage(bool enablePage) {
  109. enablePage_ = enablePage;
  110. setBodyParameter(std::string("EnablePage"), enablePage ? "true" : "false");
  111. }
  112. std::string ListVpdsRequest::getStatus() const {
  113. return status_;
  114. }
  115. void ListVpdsRequest::setStatus(const std::string &status) {
  116. status_ = status;
  117. setBodyParameter(std::string("Status"), status);
  118. }