ListBaselinesRequest.cc 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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/ListBaselinesRequest.h>
  17. using AlibabaCloud::Dataworks_public::Model::ListBaselinesRequest;
  18. ListBaselinesRequest::ListBaselinesRequest()
  19. : RpcServiceRequest("dataworks-public", "2020-05-18", "ListBaselines") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. ListBaselinesRequest::~ListBaselinesRequest() {}
  23. std::string ListBaselinesRequest::getOwner() const {
  24. return owner_;
  25. }
  26. void ListBaselinesRequest::setOwner(const std::string &owner) {
  27. owner_ = owner;
  28. setBodyParameter(std::string("Owner"), owner);
  29. }
  30. std::string ListBaselinesRequest::getSearchText() const {
  31. return searchText_;
  32. }
  33. void ListBaselinesRequest::setSearchText(const std::string &searchText) {
  34. searchText_ = searchText;
  35. setBodyParameter(std::string("SearchText"), searchText);
  36. }
  37. std::string ListBaselinesRequest::getProjectEnv() const {
  38. return projectEnv_;
  39. }
  40. void ListBaselinesRequest::setProjectEnv(const std::string &projectEnv) {
  41. projectEnv_ = projectEnv;
  42. setBodyParameter(std::string("ProjectEnv"), projectEnv);
  43. }
  44. std::string ListBaselinesRequest::getPriority() const {
  45. return priority_;
  46. }
  47. void ListBaselinesRequest::setPriority(const std::string &priority) {
  48. priority_ = priority;
  49. setBodyParameter(std::string("Priority"), priority);
  50. }
  51. int ListBaselinesRequest::getPageNumber() const {
  52. return pageNumber_;
  53. }
  54. void ListBaselinesRequest::setPageNumber(int pageNumber) {
  55. pageNumber_ = pageNumber;
  56. setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
  57. }
  58. bool ListBaselinesRequest::getEnable() const {
  59. return enable_;
  60. }
  61. void ListBaselinesRequest::setEnable(bool enable) {
  62. enable_ = enable;
  63. setBodyParameter(std::string("Enable"), enable ? "true" : "false");
  64. }
  65. int ListBaselinesRequest::getPageSize() const {
  66. return pageSize_;
  67. }
  68. void ListBaselinesRequest::setPageSize(int pageSize) {
  69. pageSize_ = pageSize;
  70. setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
  71. }
  72. long ListBaselinesRequest::getProjectId() const {
  73. return projectId_;
  74. }
  75. void ListBaselinesRequest::setProjectId(long projectId) {
  76. projectId_ = projectId;
  77. setBodyParameter(std::string("ProjectId"), std::to_string(projectId));
  78. }
  79. std::string ListBaselinesRequest::getBaselineTypes() const {
  80. return baselineTypes_;
  81. }
  82. void ListBaselinesRequest::setBaselineTypes(const std::string &baselineTypes) {
  83. baselineTypes_ = baselineTypes;
  84. setBodyParameter(std::string("BaselineTypes"), baselineTypes);
  85. }