AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RespondDecisionTaskCompletedRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/swf/model/TaskList.h>
12#include <aws/swf/model/Decision.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SWF
18{
19namespace Model
20{
21
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "RespondDecisionTaskCompleted"; }
38
39 AWS_SWF_API Aws::String SerializePayload() const override;
40
42
43
45
52 inline const Aws::String& GetTaskToken() const{ return m_taskToken; }
53 inline bool TaskTokenHasBeenSet() const { return m_taskTokenHasBeenSet; }
54 inline void SetTaskToken(const Aws::String& value) { m_taskTokenHasBeenSet = true; m_taskToken = value; }
55 inline void SetTaskToken(Aws::String&& value) { m_taskTokenHasBeenSet = true; m_taskToken = std::move(value); }
56 inline void SetTaskToken(const char* value) { m_taskTokenHasBeenSet = true; m_taskToken.assign(value); }
57 inline RespondDecisionTaskCompletedRequest& WithTaskToken(const Aws::String& value) { SetTaskToken(value); return *this;}
58 inline RespondDecisionTaskCompletedRequest& WithTaskToken(Aws::String&& value) { SetTaskToken(std::move(value)); return *this;}
59 inline RespondDecisionTaskCompletedRequest& WithTaskToken(const char* value) { SetTaskToken(value); return *this;}
61
63
68 inline const Aws::Vector<Decision>& GetDecisions() const{ return m_decisions; }
69 inline bool DecisionsHasBeenSet() const { return m_decisionsHasBeenSet; }
70 inline void SetDecisions(const Aws::Vector<Decision>& value) { m_decisionsHasBeenSet = true; m_decisions = value; }
71 inline void SetDecisions(Aws::Vector<Decision>&& value) { m_decisionsHasBeenSet = true; m_decisions = std::move(value); }
73 inline RespondDecisionTaskCompletedRequest& WithDecisions(Aws::Vector<Decision>&& value) { SetDecisions(std::move(value)); return *this;}
74 inline RespondDecisionTaskCompletedRequest& AddDecisions(const Decision& value) { m_decisionsHasBeenSet = true; m_decisions.push_back(value); return *this; }
75 inline RespondDecisionTaskCompletedRequest& AddDecisions(Decision&& value) { m_decisionsHasBeenSet = true; m_decisions.push_back(std::move(value)); return *this; }
77
79
82 inline const Aws::String& GetExecutionContext() const{ return m_executionContext; }
83 inline bool ExecutionContextHasBeenSet() const { return m_executionContextHasBeenSet; }
84 inline void SetExecutionContext(const Aws::String& value) { m_executionContextHasBeenSet = true; m_executionContext = value; }
85 inline void SetExecutionContext(Aws::String&& value) { m_executionContextHasBeenSet = true; m_executionContext = std::move(value); }
86 inline void SetExecutionContext(const char* value) { m_executionContextHasBeenSet = true; m_executionContext.assign(value); }
89 inline RespondDecisionTaskCompletedRequest& WithExecutionContext(const char* value) { SetExecutionContext(value); return *this;}
91
93
98 inline const TaskList& GetTaskList() const{ return m_taskList; }
99 inline bool TaskListHasBeenSet() const { return m_taskListHasBeenSet; }
100 inline void SetTaskList(const TaskList& value) { m_taskListHasBeenSet = true; m_taskList = value; }
101 inline void SetTaskList(TaskList&& value) { m_taskListHasBeenSet = true; m_taskList = std::move(value); }
102 inline RespondDecisionTaskCompletedRequest& WithTaskList(const TaskList& value) { SetTaskList(value); return *this;}
103 inline RespondDecisionTaskCompletedRequest& WithTaskList(TaskList&& value) { SetTaskList(std::move(value)); return *this;}
105
107
118 inline const Aws::String& GetTaskListScheduleToStartTimeout() const{ return m_taskListScheduleToStartTimeout; }
119 inline bool TaskListScheduleToStartTimeoutHasBeenSet() const { return m_taskListScheduleToStartTimeoutHasBeenSet; }
120 inline void SetTaskListScheduleToStartTimeout(const Aws::String& value) { m_taskListScheduleToStartTimeoutHasBeenSet = true; m_taskListScheduleToStartTimeout = value; }
121 inline void SetTaskListScheduleToStartTimeout(Aws::String&& value) { m_taskListScheduleToStartTimeoutHasBeenSet = true; m_taskListScheduleToStartTimeout = std::move(value); }
122 inline void SetTaskListScheduleToStartTimeout(const char* value) { m_taskListScheduleToStartTimeoutHasBeenSet = true; m_taskListScheduleToStartTimeout.assign(value); }
127 private:
128
129 Aws::String m_taskToken;
130 bool m_taskTokenHasBeenSet = false;
131
132 Aws::Vector<Decision> m_decisions;
133 bool m_decisionsHasBeenSet = false;
134
135 Aws::String m_executionContext;
136 bool m_executionContextHasBeenSet = false;
137
138 TaskList m_taskList;
139 bool m_taskListHasBeenSet = false;
140
141 Aws::String m_taskListScheduleToStartTimeout;
142 bool m_taskListScheduleToStartTimeoutHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace SWF
147} // namespace Aws
RespondDecisionTaskCompletedRequest & WithTaskList(TaskList &&value)
RespondDecisionTaskCompletedRequest & WithExecutionContext(Aws::String &&value)
RespondDecisionTaskCompletedRequest & WithTaskListScheduleToStartTimeout(const Aws::String &value)
RespondDecisionTaskCompletedRequest & WithDecisions(Aws::Vector< Decision > &&value)
RespondDecisionTaskCompletedRequest & WithExecutionContext(const char *value)
RespondDecisionTaskCompletedRequest & WithDecisions(const Aws::Vector< Decision > &value)
RespondDecisionTaskCompletedRequest & AddDecisions(const Decision &value)
RespondDecisionTaskCompletedRequest & WithExecutionContext(const Aws::String &value)
AWS_SWF_API Aws::String SerializePayload() const override
RespondDecisionTaskCompletedRequest & AddDecisions(Decision &&value)
RespondDecisionTaskCompletedRequest & WithTaskToken(const Aws::String &value)
RespondDecisionTaskCompletedRequest & WithTaskToken(const char *value)
RespondDecisionTaskCompletedRequest & WithTaskListScheduleToStartTimeout(const char *value)
RespondDecisionTaskCompletedRequest & WithTaskListScheduleToStartTimeout(Aws::String &&value)
AWS_SWF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RespondDecisionTaskCompletedRequest & WithTaskList(const TaskList &value)
RespondDecisionTaskCompletedRequest & WithTaskToken(Aws::String &&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