AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
TerminateWorkflowExecutionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/swf/SWFRequest.h>
9#include <aws/swf/SWF_EXPORTS.h>
10#include <aws/swf/model/ChildPolicy.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SWF {
16namespace Model {
17
21 public:
22 AWS_SWF_API TerminateWorkflowExecutionRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "TerminateWorkflowExecution"; }
29
30 AWS_SWF_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetDomain() const { return m_domain; }
39 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
40 template <typename DomainT = Aws::String>
41 void SetDomain(DomainT&& value) {
42 m_domainHasBeenSet = true;
43 m_domain = std::forward<DomainT>(value);
44 }
45 template <typename DomainT = Aws::String>
47 SetDomain(std::forward<DomainT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetWorkflowId() const { return m_workflowId; }
57 inline bool WorkflowIdHasBeenSet() const { return m_workflowIdHasBeenSet; }
58 template <typename WorkflowIdT = Aws::String>
59 void SetWorkflowId(WorkflowIdT&& value) {
60 m_workflowIdHasBeenSet = true;
61 m_workflowId = std::forward<WorkflowIdT>(value);
62 }
63 template <typename WorkflowIdT = Aws::String>
65 SetWorkflowId(std::forward<WorkflowIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetRunId() const { return m_runId; }
75 inline bool RunIdHasBeenSet() const { return m_runIdHasBeenSet; }
76 template <typename RunIdT = Aws::String>
77 void SetRunId(RunIdT&& value) {
78 m_runIdHasBeenSet = true;
79 m_runId = std::forward<RunIdT>(value);
80 }
81 template <typename RunIdT = Aws::String>
83 SetRunId(std::forward<RunIdT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetReason() const { return m_reason; }
93 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
94 template <typename ReasonT = Aws::String>
95 void SetReason(ReasonT&& value) {
96 m_reasonHasBeenSet = true;
97 m_reason = std::forward<ReasonT>(value);
98 }
99 template <typename ReasonT = Aws::String>
101 SetReason(std::forward<ReasonT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetDetails() const { return m_details; }
111 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
112 template <typename DetailsT = Aws::String>
113 void SetDetails(DetailsT&& value) {
114 m_detailsHasBeenSet = true;
115 m_details = std::forward<DetailsT>(value);
116 }
117 template <typename DetailsT = Aws::String>
119 SetDetails(std::forward<DetailsT>(value));
120 return *this;
121 }
123
125
141 inline ChildPolicy GetChildPolicy() const { return m_childPolicy; }
142 inline bool ChildPolicyHasBeenSet() const { return m_childPolicyHasBeenSet; }
143 inline void SetChildPolicy(ChildPolicy value) {
144 m_childPolicyHasBeenSet = true;
145 m_childPolicy = value;
146 }
148 SetChildPolicy(value);
149 return *this;
150 }
152 private:
153 Aws::String m_domain;
154
155 Aws::String m_workflowId;
156
157 Aws::String m_runId;
158
159 Aws::String m_reason;
160
161 Aws::String m_details;
162
163 ChildPolicy m_childPolicy{ChildPolicy::NOT_SET};
164 bool m_domainHasBeenSet = false;
165 bool m_workflowIdHasBeenSet = false;
166 bool m_runIdHasBeenSet = false;
167 bool m_reasonHasBeenSet = false;
168 bool m_detailsHasBeenSet = false;
169 bool m_childPolicyHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace SWF
174} // namespace Aws
AWS_SWF_API Aws::String SerializePayload() const override
AWS_SWF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
TerminateWorkflowExecutionRequest & WithReason(ReasonT &&value)
TerminateWorkflowExecutionRequest & WithRunId(RunIdT &&value)
TerminateWorkflowExecutionRequest & WithChildPolicy(ChildPolicy value)
TerminateWorkflowExecutionRequest & WithWorkflowId(WorkflowIdT &&value)
TerminateWorkflowExecutionRequest & WithDomain(DomainT &&value)
TerminateWorkflowExecutionRequest & WithDetails(DetailsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String