ListDatasourceFeatureViewsRequest.cc 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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/paifeaturestore/model/ListDatasourceFeatureViewsRequest.h>
  17. using AlibabaCloud::PaiFeatureStore::Model::ListDatasourceFeatureViewsRequest;
  18. ListDatasourceFeatureViewsRequest::ListDatasourceFeatureViewsRequest()
  19. : RoaServiceRequest("paifeaturestore", "2023-06-21") {
  20. setResourcePath("/api/v1/instances/[InstanceId]/datasources/[DatasourceId]/featureviews"};
  21. setMethod(HttpRequest::Method::Get);
  22. }
  23. ListDatasourceFeatureViewsRequest::~ListDatasourceFeatureViewsRequest() {}
  24. std::string ListDatasourceFeatureViewsRequest::getType() const {
  25. return type_;
  26. }
  27. void ListDatasourceFeatureViewsRequest::setType(const std::string &type) {
  28. type_ = type;
  29. setParameter(std::string("Type"), type);
  30. }
  31. std::string ListDatasourceFeatureViewsRequest::getStartDate() const {
  32. return startDate_;
  33. }
  34. void ListDatasourceFeatureViewsRequest::setStartDate(const std::string &startDate) {
  35. startDate_ = startDate;
  36. setParameter(std::string("StartDate"), startDate);
  37. }
  38. int ListDatasourceFeatureViewsRequest::getPageNumber() const {
  39. return pageNumber_;
  40. }
  41. void ListDatasourceFeatureViewsRequest::setPageNumber(int pageNumber) {
  42. pageNumber_ = pageNumber;
  43. setParameter(std::string("PageNumber"), std::to_string(pageNumber));
  44. }
  45. int ListDatasourceFeatureViewsRequest::getPageSize() const {
  46. return pageSize_;
  47. }
  48. void ListDatasourceFeatureViewsRequest::setPageSize(int pageSize) {
  49. pageSize_ = pageSize;
  50. setParameter(std::string("PageSize"), std::to_string(pageSize));
  51. }
  52. std::string ListDatasourceFeatureViewsRequest::getProjectId() const {
  53. return projectId_;
  54. }
  55. void ListDatasourceFeatureViewsRequest::setProjectId(const std::string &projectId) {
  56. projectId_ = projectId;
  57. setParameter(std::string("ProjectId"), projectId);
  58. }
  59. std::string ListDatasourceFeatureViewsRequest::getOrder() const {
  60. return order_;
  61. }
  62. void ListDatasourceFeatureViewsRequest::setOrder(const std::string &order) {
  63. order_ = order;
  64. setParameter(std::string("Order"), order);
  65. }
  66. bool ListDatasourceFeatureViewsRequest::getAll() const {
  67. return all_;
  68. }
  69. void ListDatasourceFeatureViewsRequest::setAll(bool all) {
  70. all_ = all;
  71. setParameter(std::string("All"), all ? "true" : "false");
  72. }
  73. std::string ListDatasourceFeatureViewsRequest::getProjectName() const {
  74. return projectName_;
  75. }
  76. void ListDatasourceFeatureViewsRequest::setProjectName(const std::string &projectName) {
  77. projectName_ = projectName;
  78. setParameter(std::string("ProjectName"), projectName);
  79. }
  80. bool ListDatasourceFeatureViewsRequest::getShowStorageUsage() const {
  81. return showStorageUsage_;
  82. }
  83. void ListDatasourceFeatureViewsRequest::setShowStorageUsage(bool showStorageUsage) {
  84. showStorageUsage_ = showStorageUsage;
  85. setParameter(std::string("ShowStorageUsage"), showStorageUsage ? "true" : "false");
  86. }
  87. bool ListDatasourceFeatureViewsRequest::getVerbose() const {
  88. return verbose_;
  89. }
  90. void ListDatasourceFeatureViewsRequest::setVerbose(bool verbose) {
  91. verbose_ = verbose;
  92. setParameter(std::string("Verbose"), verbose ? "true" : "false");
  93. }
  94. std::string ListDatasourceFeatureViewsRequest::getInstanceId() const {
  95. return instanceId_;
  96. }
  97. void ListDatasourceFeatureViewsRequest::setInstanceId(const std::string &instanceId) {
  98. instanceId_ = instanceId;
  99. setParameter(std::string("InstanceId"), instanceId);
  100. }
  101. std::string ListDatasourceFeatureViewsRequest::getEndDate() const {
  102. return endDate_;
  103. }
  104. void ListDatasourceFeatureViewsRequest::setEndDate(const std::string &endDate) {
  105. endDate_ = endDate;
  106. setParameter(std::string("EndDate"), endDate);
  107. }
  108. std::string ListDatasourceFeatureViewsRequest::getDatasourceId() const {
  109. return datasourceId_;
  110. }
  111. void ListDatasourceFeatureViewsRequest::setDatasourceId(const std::string &datasourceId) {
  112. datasourceId_ = datasourceId;
  113. setParameter(std::string("DatasourceId"), datasourceId);
  114. }
  115. std::string ListDatasourceFeatureViewsRequest::getName() const {
  116. return name_;
  117. }
  118. void ListDatasourceFeatureViewsRequest::setName(const std::string &name) {
  119. name_ = name;
  120. setParameter(std::string("Name"), name);
  121. }
  122. std::string ListDatasourceFeatureViewsRequest::getSortBy() const {
  123. return sortBy_;
  124. }
  125. void ListDatasourceFeatureViewsRequest::setSortBy(const std::string &sortBy) {
  126. sortBy_ = sortBy;
  127. setParameter(std::string("SortBy"), sortBy);
  128. }