ListDataSourceRequest.cc 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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/oceanbasepro/model/ListDataSourceRequest.h>
  17. using AlibabaCloud::OceanBasePro::Model::ListDataSourceRequest;
  18. ListDataSourceRequest::ListDataSourceRequest()
  19. : RpcServiceRequest("oceanbasepro", "2019-09-01", "ListDataSource") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. ListDataSourceRequest::~ListDataSourceRequest() {}
  23. std::vector<ListDataSourceRequest::std::string> ListDataSourceRequest::getTypes() const {
  24. return types_;
  25. }
  26. void ListDataSourceRequest::setTypes(const std::vector<ListDataSourceRequest::std::string> &types) {
  27. types_ = types;
  28. for(int dep1 = 0; dep1 != types.size(); dep1++) {
  29. setBodyParameter(std::string("Types") + "." + std::to_string(dep1 + 1), types[dep1]);
  30. }
  31. }
  32. std::string ListDataSourceRequest::getSearchKey() const {
  33. return searchKey_;
  34. }
  35. void ListDataSourceRequest::setSearchKey(const std::string &searchKey) {
  36. searchKey_ = searchKey;
  37. setBodyParameter(std::string("SearchKey"), searchKey);
  38. }
  39. std::string ListDataSourceRequest::getPageNumber() const {
  40. return pageNumber_;
  41. }
  42. void ListDataSourceRequest::setPageNumber(const std::string &pageNumber) {
  43. pageNumber_ = pageNumber;
  44. setBodyParameter(std::string("PageNumber"), pageNumber);
  45. }
  46. std::string ListDataSourceRequest::getPageSize() const {
  47. return pageSize_;
  48. }
  49. void ListDataSourceRequest::setPageSize(const std::string &pageSize) {
  50. pageSize_ = pageSize;
  51. setBodyParameter(std::string("PageSize"), pageSize);
  52. }
  53. std::string ListDataSourceRequest::getSortField() const {
  54. return sortField_;
  55. }
  56. void ListDataSourceRequest::setSortField(const std::string &sortField) {
  57. sortField_ = sortField;
  58. setBodyParameter(std::string("SortField"), sortField);
  59. }
  60. std::string ListDataSourceRequest::getOrder() const {
  61. return order_;
  62. }
  63. void ListDataSourceRequest::setOrder(const std::string &order) {
  64. order_ = order;
  65. setBodyParameter(std::string("Order"), order);
  66. }