UpdateWorkflowDagRequest.cc 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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/schedulerx2/model/UpdateWorkflowDagRequest.h>
  17. using AlibabaCloud::Schedulerx2::Model::UpdateWorkflowDagRequest;
  18. UpdateWorkflowDagRequest::UpdateWorkflowDagRequest()
  19. : RpcServiceRequest("schedulerx2", "2019-04-30", "UpdateWorkflowDag") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. UpdateWorkflowDagRequest::~UpdateWorkflowDagRequest() {}
  23. std::string UpdateWorkflowDagRequest::getDagJson() const {
  24. return dagJson_;
  25. }
  26. void UpdateWorkflowDagRequest::setDagJson(const std::string &dagJson) {
  27. dagJson_ = dagJson;
  28. setBodyParameter(std::string("DagJson"), dagJson);
  29. }
  30. std::string UpdateWorkflowDagRequest::getNamespaceSource() const {
  31. return namespaceSource_;
  32. }
  33. void UpdateWorkflowDagRequest::setNamespaceSource(const std::string &namespaceSource) {
  34. namespaceSource_ = namespaceSource;
  35. setBodyParameter(std::string("NamespaceSource"), namespaceSource);
  36. }
  37. std::string UpdateWorkflowDagRequest::getGroupId() const {
  38. return groupId_;
  39. }
  40. void UpdateWorkflowDagRequest::setGroupId(const std::string &groupId) {
  41. groupId_ = groupId;
  42. setBodyParameter(std::string("GroupId"), groupId);
  43. }
  44. std::string UpdateWorkflowDagRequest::getRegionId() const {
  45. return regionId_;
  46. }
  47. void UpdateWorkflowDagRequest::setRegionId(const std::string &regionId) {
  48. regionId_ = regionId;
  49. setParameter(std::string("RegionId"), regionId);
  50. }
  51. std::string UpdateWorkflowDagRequest::get_Namespace() const {
  52. return _namespace_;
  53. }
  54. void UpdateWorkflowDagRequest::set_Namespace(const std::string &_namespace) {
  55. _namespace_ = _namespace;
  56. setBodyParameter(std::string("Namespace"), _namespace);
  57. }
  58. std::string UpdateWorkflowDagRequest::getWorkflowId() const {
  59. return workflowId_;
  60. }
  61. void UpdateWorkflowDagRequest::setWorkflowId(const std::string &workflowId) {
  62. workflowId_ = workflowId;
  63. setBodyParameter(std::string("WorkflowId"), workflowId);
  64. }