StopExecutionRequest.cc 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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/fnf/model/StopExecutionRequest.h>
  17. using AlibabaCloud::Fnf::Model::StopExecutionRequest;
  18. StopExecutionRequest::StopExecutionRequest() :
  19. RpcServiceRequest("fnf", "2019-03-15", "StopExecution")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. StopExecutionRequest::~StopExecutionRequest()
  24. {}
  25. std::string StopExecutionRequest::getExecutionName()const
  26. {
  27. return executionName_;
  28. }
  29. void StopExecutionRequest::setExecutionName(const std::string& executionName)
  30. {
  31. executionName_ = executionName;
  32. setBodyParameter("ExecutionName", executionName);
  33. }
  34. std::string StopExecutionRequest::getCause()const
  35. {
  36. return cause_;
  37. }
  38. void StopExecutionRequest::setCause(const std::string& cause)
  39. {
  40. cause_ = cause;
  41. setBodyParameter("Cause", cause);
  42. }
  43. std::string StopExecutionRequest::getError()const
  44. {
  45. return error_;
  46. }
  47. void StopExecutionRequest::setError(const std::string& error)
  48. {
  49. error_ = error;
  50. setBodyParameter("Error", error);
  51. }
  52. std::string StopExecutionRequest::getRequestId()const
  53. {
  54. return requestId_;
  55. }
  56. void StopExecutionRequest::setRequestId(const std::string& requestId)
  57. {
  58. requestId_ = requestId;
  59. setParameter("RequestId", requestId);
  60. }
  61. std::string StopExecutionRequest::getFlowName()const
  62. {
  63. return flowName_;
  64. }
  65. void StopExecutionRequest::setFlowName(const std::string& flowName)
  66. {
  67. flowName_ = flowName;
  68. setBodyParameter("FlowName", flowName);
  69. }