AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
25 AWS_SWF_API TerminateWorkflowExecutionRequest() = default;
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 template<typename DomainT = Aws::String>
45 void SetDomain(DomainT&& value) { m_domainHasBeenSet = true; m_domain = std::forward<DomainT>(value); }
46 template<typename DomainT = Aws::String>
47 TerminateWorkflowExecutionRequest& WithDomain(DomainT&& value) { SetDomain(std::forward<DomainT>(value)); return *this;}
49
51
54 inline const Aws::String& GetWorkflowId() const { return m_workflowId; }
55 inline bool WorkflowIdHasBeenSet() const { return m_workflowIdHasBeenSet; }
56 template<typename WorkflowIdT = Aws::String>
57 void SetWorkflowId(WorkflowIdT&& value) { m_workflowIdHasBeenSet = true; m_workflowId = std::forward<WorkflowIdT>(value); }
58 template<typename WorkflowIdT = Aws::String>
59 TerminateWorkflowExecutionRequest& WithWorkflowId(WorkflowIdT&& value) { SetWorkflowId(std::forward<WorkflowIdT>(value)); return *this;}
61
63
66 inline const Aws::String& GetRunId() const { return m_runId; }
67 inline bool RunIdHasBeenSet() const { return m_runIdHasBeenSet; }
68 template<typename RunIdT = Aws::String>
69 void SetRunId(RunIdT&& value) { m_runIdHasBeenSet = true; m_runId = std::forward<RunIdT>(value); }
70 template<typename RunIdT = Aws::String>
71 TerminateWorkflowExecutionRequest& WithRunId(RunIdT&& value) { SetRunId(std::forward<RunIdT>(value)); return *this;}
73
75
78 inline const Aws::String& GetReason() const { return m_reason; }
79 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
80 template<typename ReasonT = Aws::String>
81 void SetReason(ReasonT&& value) { m_reasonHasBeenSet = true; m_reason = std::forward<ReasonT>(value); }
82 template<typename ReasonT = Aws::String>
83 TerminateWorkflowExecutionRequest& WithReason(ReasonT&& value) { SetReason(std::forward<ReasonT>(value)); return *this;}
85
87
90 inline const Aws::String& GetDetails() const { return m_details; }
91 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
92 template<typename DetailsT = Aws::String>
93 void SetDetails(DetailsT&& value) { m_detailsHasBeenSet = true; m_details = std::forward<DetailsT>(value); }
94 template<typename DetailsT = Aws::String>
95 TerminateWorkflowExecutionRequest& WithDetails(DetailsT&& value) { SetDetails(std::forward<DetailsT>(value)); return *this;}
97
99
115 inline ChildPolicy GetChildPolicy() const { return m_childPolicy; }
116 inline bool ChildPolicyHasBeenSet() const { return m_childPolicyHasBeenSet; }
117 inline void SetChildPolicy(ChildPolicy value) { m_childPolicyHasBeenSet = true; m_childPolicy = value; }
120 private:
121
122 Aws::String m_domain;
123 bool m_domainHasBeenSet = false;
124
125 Aws::String m_workflowId;
126 bool m_workflowIdHasBeenSet = false;
127
128 Aws::String m_runId;
129 bool m_runIdHasBeenSet = false;
130
131 Aws::String m_reason;
132 bool m_reasonHasBeenSet = false;
133
134 Aws::String m_details;
135 bool m_detailsHasBeenSet = false;
136
137 ChildPolicy m_childPolicy{ChildPolicy::NOT_SET};
138 bool m_childPolicyHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace SWF
143} // 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