AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
ListTasksRequest.h
1
6#pragma once
7#include <aws/context/ContextRequest.h>
8#include <aws/context/Context_EXPORTS.h>
9#include <aws/context/model/TaskStatus.h>
10#include <aws/context/model/TaskType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Context {
17namespace Model {
18
22 public:
23 AWS_CONTEXT_API ListTasksRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ListTasks"; }
30
31 AWS_CONTEXT_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetAgentContextId() const { return m_agentContextId; }
40 inline bool AgentContextIdHasBeenSet() const { return m_agentContextIdHasBeenSet; }
41 template <typename AgentContextIdT = Aws::String>
42 void SetAgentContextId(AgentContextIdT&& value) {
43 m_agentContextIdHasBeenSet = true;
44 m_agentContextId = std::forward<AgentContextIdT>(value);
45 }
46 template <typename AgentContextIdT = Aws::String>
47 ListTasksRequest& WithAgentContextId(AgentContextIdT&& value) {
48 SetAgentContextId(std::forward<AgentContextIdT>(value));
49 return *this;
50 }
52
54
57 inline TaskStatus GetStatus() const { return m_status; }
58 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
59 inline void SetStatus(TaskStatus value) {
60 m_statusHasBeenSet = true;
61 m_status = value;
62 }
64 SetStatus(value);
65 return *this;
66 }
68
70
73 inline TaskType GetType() const { return m_type; }
74 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
75 inline void SetType(TaskType value) {
76 m_typeHasBeenSet = true;
77 m_type = value;
78 }
80 SetType(value);
81 return *this;
82 }
84
86
91 inline int GetMaxResults() const { return m_maxResults; }
92 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
93 inline void SetMaxResults(int value) {
94 m_maxResultsHasBeenSet = true;
95 m_maxResults = value;
96 }
97 inline ListTasksRequest& WithMaxResults(int value) {
98 SetMaxResults(value);
99 return *this;
100 }
102
104
109 inline const Aws::String& GetNextToken() const { return m_nextToken; }
110 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
111 template <typename NextTokenT = Aws::String>
112 void SetNextToken(NextTokenT&& value) {
113 m_nextTokenHasBeenSet = true;
114 m_nextToken = std::forward<NextTokenT>(value);
115 }
116 template <typename NextTokenT = Aws::String>
117 ListTasksRequest& WithNextToken(NextTokenT&& value) {
118 SetNextToken(std::forward<NextTokenT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_agentContextId;
124
126
128
129 int m_maxResults{0};
130
131 Aws::String m_nextToken;
132 bool m_agentContextIdHasBeenSet = false;
133 bool m_statusHasBeenSet = false;
134 bool m_typeHasBeenSet = false;
135 bool m_maxResultsHasBeenSet = false;
136 bool m_nextTokenHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace Context
141} // namespace Aws
ListTasksRequest & WithStatus(TaskStatus value)
AWS_CONTEXT_API ListTasksRequest()=default
AWS_CONTEXT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListTasksRequest & WithType(TaskType value)
virtual const char * GetServiceRequestName() const override
ListTasksRequest & WithMaxResults(int value)
AWS_CONTEXT_API Aws::String SerializePayload() const override
const Aws::String & GetAgentContextId() const
ListTasksRequest & WithAgentContextId(AgentContextIdT &&value)
ListTasksRequest & WithNextToken(NextTokenT &&value)
const Aws::String & GetNextToken() const
void SetAgentContextId(AgentContextIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String