ListNodesRequest.cc 2.8 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/ListNodesRequest.h>
  17. using AlibabaCloud::Dataworks_public::Model::ListNodesRequest;
  18. ListNodesRequest::ListNodesRequest()
  19. : RpcServiceRequest("dataworks-public", "2020-05-18", "ListNodes") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. ListNodesRequest::~ListNodesRequest() {}
  23. std::string ListNodesRequest::getOwner() const {
  24. return owner_;
  25. }
  26. void ListNodesRequest::setOwner(const std::string &owner) {
  27. owner_ = owner;
  28. setBodyParameter(std::string("Owner"), owner);
  29. }
  30. std::string ListNodesRequest::getProjectEnv() const {
  31. return projectEnv_;
  32. }
  33. void ListNodesRequest::setProjectEnv(const std::string &projectEnv) {
  34. projectEnv_ = projectEnv;
  35. setBodyParameter(std::string("ProjectEnv"), projectEnv);
  36. }
  37. std::string ListNodesRequest::getBizName() const {
  38. return bizName_;
  39. }
  40. void ListNodesRequest::setBizName(const std::string &bizName) {
  41. bizName_ = bizName;
  42. setBodyParameter(std::string("BizName"), bizName);
  43. }
  44. int ListNodesRequest::getPageNumber() const {
  45. return pageNumber_;
  46. }
  47. void ListNodesRequest::setPageNumber(int pageNumber) {
  48. pageNumber_ = pageNumber;
  49. setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
  50. }
  51. std::string ListNodesRequest::getNodeName() const {
  52. return nodeName_;
  53. }
  54. void ListNodesRequest::setNodeName(const std::string &nodeName) {
  55. nodeName_ = nodeName;
  56. setBodyParameter(std::string("NodeName"), nodeName);
  57. }
  58. std::string ListNodesRequest::getProgramType() const {
  59. return programType_;
  60. }
  61. void ListNodesRequest::setProgramType(const std::string &programType) {
  62. programType_ = programType;
  63. setBodyParameter(std::string("ProgramType"), programType);
  64. }
  65. int ListNodesRequest::getPageSize() const {
  66. return pageSize_;
  67. }
  68. void ListNodesRequest::setPageSize(int pageSize) {
  69. pageSize_ = pageSize;
  70. setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
  71. }
  72. long ListNodesRequest::getProjectId() const {
  73. return projectId_;
  74. }
  75. void ListNodesRequest::setProjectId(long projectId) {
  76. projectId_ = projectId;
  77. setBodyParameter(std::string("ProjectId"), std::to_string(projectId));
  78. }