AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
ListJobsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/IoT_EXPORTS.h>
10#include <aws/iot/model/JobStatus.h>
11#include <aws/iot/model/TargetSelection.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace IoT {
20namespace Model {
21
25 public:
26 AWS_IOT_API ListJobsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListJobs"; }
33
34 AWS_IOT_API Aws::String SerializePayload() const override;
35
36 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
43 inline JobStatus GetStatus() const { return m_status; }
44 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
45 inline void SetStatus(JobStatus value) {
46 m_statusHasBeenSet = true;
47 m_status = value;
48 }
50 SetStatus(value);
51 return *this;
52 }
54
56
67 inline TargetSelection GetTargetSelection() const { return m_targetSelection; }
68 inline bool TargetSelectionHasBeenSet() const { return m_targetSelectionHasBeenSet; }
70 m_targetSelectionHasBeenSet = true;
71 m_targetSelection = value;
72 }
74 SetTargetSelection(value);
75 return *this;
76 }
78
80
83 inline int GetMaxResults() const { return m_maxResults; }
84 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
85 inline void SetMaxResults(int value) {
86 m_maxResultsHasBeenSet = true;
87 m_maxResults = value;
88 }
89 inline ListJobsRequest& WithMaxResults(int value) {
90 SetMaxResults(value);
91 return *this;
92 }
94
96
99 inline const Aws::String& GetNextToken() const { return m_nextToken; }
100 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
101 template <typename NextTokenT = Aws::String>
102 void SetNextToken(NextTokenT&& value) {
103 m_nextTokenHasBeenSet = true;
104 m_nextToken = std::forward<NextTokenT>(value);
105 }
106 template <typename NextTokenT = Aws::String>
107 ListJobsRequest& WithNextToken(NextTokenT&& value) {
108 SetNextToken(std::forward<NextTokenT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetThingGroupName() const { return m_thingGroupName; }
118 inline bool ThingGroupNameHasBeenSet() const { return m_thingGroupNameHasBeenSet; }
119 template <typename ThingGroupNameT = Aws::String>
120 void SetThingGroupName(ThingGroupNameT&& value) {
121 m_thingGroupNameHasBeenSet = true;
122 m_thingGroupName = std::forward<ThingGroupNameT>(value);
123 }
124 template <typename ThingGroupNameT = Aws::String>
125 ListJobsRequest& WithThingGroupName(ThingGroupNameT&& value) {
126 SetThingGroupName(std::forward<ThingGroupNameT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetThingGroupId() const { return m_thingGroupId; }
136 inline bool ThingGroupIdHasBeenSet() const { return m_thingGroupIdHasBeenSet; }
137 template <typename ThingGroupIdT = Aws::String>
138 void SetThingGroupId(ThingGroupIdT&& value) {
139 m_thingGroupIdHasBeenSet = true;
140 m_thingGroupId = std::forward<ThingGroupIdT>(value);
141 }
142 template <typename ThingGroupIdT = Aws::String>
143 ListJobsRequest& WithThingGroupId(ThingGroupIdT&& value) {
144 SetThingGroupId(std::forward<ThingGroupIdT>(value));
145 return *this;
146 }
148
150
161 inline const Aws::String& GetNamespaceId() const { return m_namespaceId; }
162 inline bool NamespaceIdHasBeenSet() const { return m_namespaceIdHasBeenSet; }
163 template <typename NamespaceIdT = Aws::String>
164 void SetNamespaceId(NamespaceIdT&& value) {
165 m_namespaceIdHasBeenSet = true;
166 m_namespaceId = std::forward<NamespaceIdT>(value);
167 }
168 template <typename NamespaceIdT = Aws::String>
169 ListJobsRequest& WithNamespaceId(NamespaceIdT&& value) {
170 SetNamespaceId(std::forward<NamespaceIdT>(value));
171 return *this;
172 }
174 private:
176
177 TargetSelection m_targetSelection{TargetSelection::NOT_SET};
178
179 int m_maxResults{0};
180
181 Aws::String m_nextToken;
182
183 Aws::String m_thingGroupName;
184
185 Aws::String m_thingGroupId;
186
187 Aws::String m_namespaceId;
188 bool m_statusHasBeenSet = false;
189 bool m_targetSelectionHasBeenSet = false;
190 bool m_maxResultsHasBeenSet = false;
191 bool m_nextTokenHasBeenSet = false;
192 bool m_thingGroupNameHasBeenSet = false;
193 bool m_thingGroupIdHasBeenSet = false;
194 bool m_namespaceIdHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace IoT
199} // namespace Aws
void SetNamespaceId(NamespaceIdT &&value)
AWS_IOT_API ListJobsRequest()=default
void SetNextToken(NextTokenT &&value)
void SetThingGroupName(ThingGroupNameT &&value)
ListJobsRequest & WithNamespaceId(NamespaceIdT &&value)
const Aws::String & GetThingGroupId() const
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetTargetSelection(TargetSelection value)
ListJobsRequest & WithTargetSelection(TargetSelection value)
ListJobsRequest & WithStatus(JobStatus value)
ListJobsRequest & WithThingGroupId(ThingGroupIdT &&value)
const Aws::String & GetNextToken() const
AWS_IOT_API Aws::String SerializePayload() const override
ListJobsRequest & WithMaxResults(int value)
const Aws::String & GetThingGroupName() const
ListJobsRequest & WithThingGroupName(ThingGroupNameT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetNamespaceId() const
void SetThingGroupId(ThingGroupIdT &&value)
TargetSelection GetTargetSelection() const
ListJobsRequest & WithNextToken(NextTokenT &&value)
void SetStatus(JobStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String