AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TerminateWorkflowExecutionRequest.h
1
6#pragma once
7#include <aws/swf/SWF_EXPORTS.h>
8#include <aws/swf/SWFRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/swf/model/ChildPolicy.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SWF
16{
17namespace Model
18{
19
23 {
24 public:
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "TerminateWorkflowExecution"; }
32
33 AWS_SWF_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetDomain() const{ return m_domain; }
43 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
44 inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
45 inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
46 inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
47 inline TerminateWorkflowExecutionRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
48 inline TerminateWorkflowExecutionRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
49 inline TerminateWorkflowExecutionRequest& WithDomain(const char* value) { SetDomain(value); return *this;}
51
53
56 inline const Aws::String& GetWorkflowId() const{ return m_workflowId; }
57 inline bool WorkflowIdHasBeenSet() const { return m_workflowIdHasBeenSet; }
58 inline void SetWorkflowId(const Aws::String& value) { m_workflowIdHasBeenSet = true; m_workflowId = value; }
59 inline void SetWorkflowId(Aws::String&& value) { m_workflowIdHasBeenSet = true; m_workflowId = std::move(value); }
60 inline void SetWorkflowId(const char* value) { m_workflowIdHasBeenSet = true; m_workflowId.assign(value); }
61 inline TerminateWorkflowExecutionRequest& WithWorkflowId(const Aws::String& value) { SetWorkflowId(value); return *this;}
62 inline TerminateWorkflowExecutionRequest& WithWorkflowId(Aws::String&& value) { SetWorkflowId(std::move(value)); return *this;}
63 inline TerminateWorkflowExecutionRequest& WithWorkflowId(const char* value) { SetWorkflowId(value); return *this;}
65
67
70 inline const Aws::String& GetRunId() const{ return m_runId; }
71 inline bool RunIdHasBeenSet() const { return m_runIdHasBeenSet; }
72 inline void SetRunId(const Aws::String& value) { m_runIdHasBeenSet = true; m_runId = value; }
73 inline void SetRunId(Aws::String&& value) { m_runIdHasBeenSet = true; m_runId = std::move(value); }
74 inline void SetRunId(const char* value) { m_runIdHasBeenSet = true; m_runId.assign(value); }
75 inline TerminateWorkflowExecutionRequest& WithRunId(const Aws::String& value) { SetRunId(value); return *this;}
76 inline TerminateWorkflowExecutionRequest& WithRunId(Aws::String&& value) { SetRunId(std::move(value)); return *this;}
77 inline TerminateWorkflowExecutionRequest& WithRunId(const char* value) { SetRunId(value); return *this;}
79
81
84 inline const Aws::String& GetReason() const{ return m_reason; }
85 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
86 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
87 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
88 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
89 inline TerminateWorkflowExecutionRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;}
90 inline TerminateWorkflowExecutionRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
91 inline TerminateWorkflowExecutionRequest& WithReason(const char* value) { SetReason(value); return *this;}
93
95
98 inline const Aws::String& GetDetails() const{ return m_details; }
99 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
100 inline void SetDetails(const Aws::String& value) { m_detailsHasBeenSet = true; m_details = value; }
101 inline void SetDetails(Aws::String&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
102 inline void SetDetails(const char* value) { m_detailsHasBeenSet = true; m_details.assign(value); }
103 inline TerminateWorkflowExecutionRequest& WithDetails(const Aws::String& value) { SetDetails(value); return *this;}
104 inline TerminateWorkflowExecutionRequest& WithDetails(Aws::String&& value) { SetDetails(std::move(value)); return *this;}
105 inline TerminateWorkflowExecutionRequest& WithDetails(const char* value) { SetDetails(value); return *this;}
107
109
125 inline const ChildPolicy& GetChildPolicy() const{ return m_childPolicy; }
126 inline bool ChildPolicyHasBeenSet() const { return m_childPolicyHasBeenSet; }
127 inline void SetChildPolicy(const ChildPolicy& value) { m_childPolicyHasBeenSet = true; m_childPolicy = value; }
128 inline void SetChildPolicy(ChildPolicy&& value) { m_childPolicyHasBeenSet = true; m_childPolicy = std::move(value); }
130 inline TerminateWorkflowExecutionRequest& WithChildPolicy(ChildPolicy&& value) { SetChildPolicy(std::move(value)); return *this;}
132 private:
133
134 Aws::String m_domain;
135 bool m_domainHasBeenSet = false;
136
137 Aws::String m_workflowId;
138 bool m_workflowIdHasBeenSet = false;
139
140 Aws::String m_runId;
141 bool m_runIdHasBeenSet = false;
142
143 Aws::String m_reason;
144 bool m_reasonHasBeenSet = false;
145
146 Aws::String m_details;
147 bool m_detailsHasBeenSet = false;
148
149 ChildPolicy m_childPolicy;
150 bool m_childPolicyHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace SWF
155} // namespace Aws
AWS_SWF_API Aws::String SerializePayload() const override
TerminateWorkflowExecutionRequest & WithDetails(const Aws::String &value)
TerminateWorkflowExecutionRequest & WithRunId(const Aws::String &value)
TerminateWorkflowExecutionRequest & WithChildPolicy(const ChildPolicy &value)
TerminateWorkflowExecutionRequest & WithReason(Aws::String &&value)
AWS_SWF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
TerminateWorkflowExecutionRequest & WithDetails(const char *value)
TerminateWorkflowExecutionRequest & WithDomain(const Aws::String &value)
TerminateWorkflowExecutionRequest & WithRunId(const char *value)
TerminateWorkflowExecutionRequest & WithChildPolicy(ChildPolicy &&value)
TerminateWorkflowExecutionRequest & WithReason(const Aws::String &value)
TerminateWorkflowExecutionRequest & WithReason(const char *value)
TerminateWorkflowExecutionRequest & WithWorkflowId(const char *value)
TerminateWorkflowExecutionRequest & WithRunId(Aws::String &&value)
TerminateWorkflowExecutionRequest & WithDomain(Aws::String &&value)
TerminateWorkflowExecutionRequest & WithDomain(const char *value)
TerminateWorkflowExecutionRequest & WithDetails(Aws::String &&value)
TerminateWorkflowExecutionRequest & WithWorkflowId(Aws::String &&value)
TerminateWorkflowExecutionRequest & WithWorkflowId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String