SearchMetaTablesRequest.cc 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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/dataworks-public/model/SearchMetaTablesRequest.h>
  17. using AlibabaCloud::Dataworks_public::Model::SearchMetaTablesRequest;
  18. SearchMetaTablesRequest::SearchMetaTablesRequest()
  19. : RpcServiceRequest("dataworks-public", "2020-05-18", "SearchMetaTables") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. SearchMetaTablesRequest::~SearchMetaTablesRequest() {}
  23. std::string SearchMetaTablesRequest::getSchema() const {
  24. return schema_;
  25. }
  26. void SearchMetaTablesRequest::setSchema(const std::string &schema) {
  27. schema_ = schema;
  28. setParameter(std::string("Schema"), schema);
  29. }
  30. std::string SearchMetaTablesRequest::getDataSourceType() const {
  31. return dataSourceType_;
  32. }
  33. void SearchMetaTablesRequest::setDataSourceType(const std::string &dataSourceType) {
  34. dataSourceType_ = dataSourceType;
  35. setParameter(std::string("DataSourceType"), dataSourceType);
  36. }
  37. std::string SearchMetaTablesRequest::getClusterId() const {
  38. return clusterId_;
  39. }
  40. void SearchMetaTablesRequest::setClusterId(const std::string &clusterId) {
  41. clusterId_ = clusterId;
  42. setParameter(std::string("ClusterId"), clusterId);
  43. }
  44. int SearchMetaTablesRequest::getPageNumber() const {
  45. return pageNumber_;
  46. }
  47. void SearchMetaTablesRequest::setPageNumber(int pageNumber) {
  48. pageNumber_ = pageNumber;
  49. setParameter(std::string("PageNumber"), std::to_string(pageNumber));
  50. }
  51. int SearchMetaTablesRequest::getEntityType() const {
  52. return entityType_;
  53. }
  54. void SearchMetaTablesRequest::setEntityType(int entityType) {
  55. entityType_ = entityType;
  56. setParameter(std::string("EntityType"), std::to_string(entityType));
  57. }
  58. int SearchMetaTablesRequest::getPageSize() const {
  59. return pageSize_;
  60. }
  61. void SearchMetaTablesRequest::setPageSize(int pageSize) {
  62. pageSize_ = pageSize;
  63. setParameter(std::string("PageSize"), std::to_string(pageSize));
  64. }
  65. std::string SearchMetaTablesRequest::getAppGuid() const {
  66. return appGuid_;
  67. }
  68. void SearchMetaTablesRequest::setAppGuid(const std::string &appGuid) {
  69. appGuid_ = appGuid;
  70. setParameter(std::string("AppGuid"), appGuid);
  71. }
  72. std::string SearchMetaTablesRequest::getKeyword() const {
  73. return keyword_;
  74. }
  75. void SearchMetaTablesRequest::setKeyword(const std::string &keyword) {
  76. keyword_ = keyword;
  77. setParameter(std::string("Keyword"), keyword);
  78. }