AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
RespondDecisionTaskCompletedRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/swf/SWFRequest.h>
10#include <aws/swf/SWF_EXPORTS.h>
11#include <aws/swf/model/Decision.h>
12#include <aws/swf/model/TaskList.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SWF {
18namespace Model {
19
27 public:
28 AWS_SWF_API RespondDecisionTaskCompletedRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "RespondDecisionTaskCompleted"; }
35
36 AWS_SWF_API Aws::String SerializePayload() const override;
37
39
41
48 inline const Aws::String& GetTaskToken() const { return m_taskToken; }
49 inline bool TaskTokenHasBeenSet() const { return m_taskTokenHasBeenSet; }
50 template <typename TaskTokenT = Aws::String>
51 void SetTaskToken(TaskTokenT&& value) {
52 m_taskTokenHasBeenSet = true;
53 m_taskToken = std::forward<TaskTokenT>(value);
54 }
55 template <typename TaskTokenT = Aws::String>
57 SetTaskToken(std::forward<TaskTokenT>(value));
58 return *this;
59 }
61
63
68 inline const Aws::Vector<Decision>& GetDecisions() const { return m_decisions; }
69 inline bool DecisionsHasBeenSet() const { return m_decisionsHasBeenSet; }
70 template <typename DecisionsT = Aws::Vector<Decision>>
71 void SetDecisions(DecisionsT&& value) {
72 m_decisionsHasBeenSet = true;
73 m_decisions = std::forward<DecisionsT>(value);
74 }
75 template <typename DecisionsT = Aws::Vector<Decision>>
77 SetDecisions(std::forward<DecisionsT>(value));
78 return *this;
79 }
80 template <typename DecisionsT = Decision>
82 m_decisionsHasBeenSet = true;
83 m_decisions.emplace_back(std::forward<DecisionsT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetExecutionContext() const { return m_executionContext; }
93 inline bool ExecutionContextHasBeenSet() const { return m_executionContextHasBeenSet; }
94 template <typename ExecutionContextT = Aws::String>
95 void SetExecutionContext(ExecutionContextT&& value) {
96 m_executionContextHasBeenSet = true;
97 m_executionContext = std::forward<ExecutionContextT>(value);
98 }
99 template <typename ExecutionContextT = Aws::String>
101 SetExecutionContext(std::forward<ExecutionContextT>(value));
102 return *this;
103 }
105
107
112 inline const TaskList& GetTaskList() const { return m_taskList; }
113 inline bool TaskListHasBeenSet() const { return m_taskListHasBeenSet; }
114 template <typename TaskListT = TaskList>
115 void SetTaskList(TaskListT&& value) {
116 m_taskListHasBeenSet = true;
117 m_taskList = std::forward<TaskListT>(value);
118 }
119 template <typename TaskListT = TaskList>
121 SetTaskList(std::forward<TaskListT>(value));
122 return *this;
123 }
125
127
138 inline const Aws::String& GetTaskListScheduleToStartTimeout() const { return m_taskListScheduleToStartTimeout; }
139 inline bool TaskListScheduleToStartTimeoutHasBeenSet() const { return m_taskListScheduleToStartTimeoutHasBeenSet; }
140 template <typename TaskListScheduleToStartTimeoutT = Aws::String>
141 void SetTaskListScheduleToStartTimeout(TaskListScheduleToStartTimeoutT&& value) {
142 m_taskListScheduleToStartTimeoutHasBeenSet = true;
143 m_taskListScheduleToStartTimeout = std::forward<TaskListScheduleToStartTimeoutT>(value);
144 }
145 template <typename TaskListScheduleToStartTimeoutT = Aws::String>
147 SetTaskListScheduleToStartTimeout(std::forward<TaskListScheduleToStartTimeoutT>(value));
148 return *this;
149 }
151 private:
152 Aws::String m_taskToken;
153
154 Aws::Vector<Decision> m_decisions;
155
156 Aws::String m_executionContext;
157
158 TaskList m_taskList;
159
160 Aws::String m_taskListScheduleToStartTimeout;
161 bool m_taskTokenHasBeenSet = false;
162 bool m_decisionsHasBeenSet = false;
163 bool m_executionContextHasBeenSet = false;
164 bool m_taskListHasBeenSet = false;
165 bool m_taskListScheduleToStartTimeoutHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace SWF
170} // namespace Aws
RespondDecisionTaskCompletedRequest & WithTaskListScheduleToStartTimeout(TaskListScheduleToStartTimeoutT &&value)
RespondDecisionTaskCompletedRequest & WithExecutionContext(ExecutionContextT &&value)
RespondDecisionTaskCompletedRequest & AddDecisions(DecisionsT &&value)
RespondDecisionTaskCompletedRequest & WithDecisions(DecisionsT &&value)
AWS_SWF_API Aws::String SerializePayload() const override
void SetTaskListScheduleToStartTimeout(TaskListScheduleToStartTimeoutT &&value)
RespondDecisionTaskCompletedRequest & WithTaskToken(TaskTokenT &&value)
AWS_SWF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RespondDecisionTaskCompletedRequest & WithTaskList(TaskListT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector