AWS SDK for C++  1.8.71
AWS SDK for C++
ListJobsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Http
17 {
18  class URI;
19 } //namespace Http
20 namespace IoT
21 {
22 namespace Model
23 {
24 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "ListJobs"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41 
42 
47  inline const JobStatus& GetStatus() const{ return m_status; }
48 
53  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
54 
59  inline void SetStatus(const JobStatus& value) { m_statusHasBeenSet = true; m_status = value; }
60 
65  inline void SetStatus(JobStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
66 
71  inline ListJobsRequest& WithStatus(const JobStatus& value) { SetStatus(value); return *this;}
72 
77  inline ListJobsRequest& WithStatus(JobStatus&& value) { SetStatus(std::move(value)); return *this;}
78 
79 
88  inline const TargetSelection& GetTargetSelection() const{ return m_targetSelection; }
89 
98  inline bool TargetSelectionHasBeenSet() const { return m_targetSelectionHasBeenSet; }
99 
108  inline void SetTargetSelection(const TargetSelection& value) { m_targetSelectionHasBeenSet = true; m_targetSelection = value; }
109 
118  inline void SetTargetSelection(TargetSelection&& value) { m_targetSelectionHasBeenSet = true; m_targetSelection = std::move(value); }
119 
128  inline ListJobsRequest& WithTargetSelection(const TargetSelection& value) { SetTargetSelection(value); return *this;}
129 
138  inline ListJobsRequest& WithTargetSelection(TargetSelection&& value) { SetTargetSelection(std::move(value)); return *this;}
139 
140 
144  inline int GetMaxResults() const{ return m_maxResults; }
145 
149  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
150 
154  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
155 
159  inline ListJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
160 
161 
165  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
166 
170  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
171 
175  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
176 
180  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
181 
185  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
186 
190  inline ListJobsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
191 
195  inline ListJobsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
196 
200  inline ListJobsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
201 
202 
206  inline const Aws::String& GetThingGroupName() const{ return m_thingGroupName; }
207 
211  inline bool ThingGroupNameHasBeenSet() const { return m_thingGroupNameHasBeenSet; }
212 
216  inline void SetThingGroupName(const Aws::String& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = value; }
217 
221  inline void SetThingGroupName(Aws::String&& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = std::move(value); }
222 
226  inline void SetThingGroupName(const char* value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName.assign(value); }
227 
231  inline ListJobsRequest& WithThingGroupName(const Aws::String& value) { SetThingGroupName(value); return *this;}
232 
236  inline ListJobsRequest& WithThingGroupName(Aws::String&& value) { SetThingGroupName(std::move(value)); return *this;}
237 
241  inline ListJobsRequest& WithThingGroupName(const char* value) { SetThingGroupName(value); return *this;}
242 
243 
247  inline const Aws::String& GetThingGroupId() const{ return m_thingGroupId; }
248 
252  inline bool ThingGroupIdHasBeenSet() const { return m_thingGroupIdHasBeenSet; }
253 
257  inline void SetThingGroupId(const Aws::String& value) { m_thingGroupIdHasBeenSet = true; m_thingGroupId = value; }
258 
262  inline void SetThingGroupId(Aws::String&& value) { m_thingGroupIdHasBeenSet = true; m_thingGroupId = std::move(value); }
263 
267  inline void SetThingGroupId(const char* value) { m_thingGroupIdHasBeenSet = true; m_thingGroupId.assign(value); }
268 
272  inline ListJobsRequest& WithThingGroupId(const Aws::String& value) { SetThingGroupId(value); return *this;}
273 
277  inline ListJobsRequest& WithThingGroupId(Aws::String&& value) { SetThingGroupId(std::move(value)); return *this;}
278 
282  inline ListJobsRequest& WithThingGroupId(const char* value) { SetThingGroupId(value); return *this;}
283 
284  private:
285 
286  JobStatus m_status;
287  bool m_statusHasBeenSet;
288 
289  TargetSelection m_targetSelection;
290  bool m_targetSelectionHasBeenSet;
291 
292  int m_maxResults;
293  bool m_maxResultsHasBeenSet;
294 
295  Aws::String m_nextToken;
296  bool m_nextTokenHasBeenSet;
297 
298  Aws::String m_thingGroupName;
299  bool m_thingGroupNameHasBeenSet;
300 
301  Aws::String m_thingGroupId;
302  bool m_thingGroupIdHasBeenSet;
303  };
304 
305 } // namespace Model
306 } // namespace IoT
307 } // namespace Aws
ListJobsRequest & WithMaxResults(int value)
const Aws::String & GetNextToken() const
void SetTargetSelection(const TargetSelection &value)
const Aws::String & GetThingGroupName() const
const TargetSelection & GetTargetSelection() const
ListJobsRequest & WithThingGroupId(const char *value)
void SetStatus(const JobStatus &value)
ListJobsRequest & WithNextToken(const char *value)
void SetNextToken(const char *value)
ListJobsRequest & WithTargetSelection(TargetSelection &&value)
ListJobsRequest & WithThingGroupId(Aws::String &&value)
void SetThingGroupId(const char *value)
ListJobsRequest & WithStatus(const JobStatus &value)
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
void SetStatus(JobStatus &&value)
ListJobsRequest & WithNextToken(Aws::String &&value)
void SetThingGroupName(const Aws::String &value)
const Aws::String & GetThingGroupId() const
const JobStatus & GetStatus() const
ListJobsRequest & WithNextToken(const Aws::String &value)
ListJobsRequest & WithTargetSelection(const TargetSelection &value)
virtual const char * GetServiceRequestName() const override
void SetThingGroupId(Aws::String &&value)
void SetNextToken(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetThingGroupId(const Aws::String &value)
ListJobsRequest & WithThingGroupName(const Aws::String &value)
ListJobsRequest & WithThingGroupId(const Aws::String &value)
void SetThingGroupName(const char *value)
ListJobsRequest & WithThingGroupName(Aws::String &&value)
void SetTargetSelection(TargetSelection &&value)
ListJobsRequest & WithThingGroupName(const char *value)
void SetNextToken(Aws::String &&value)
ListJobsRequest & WithStatus(JobStatus &&value)
void SetThingGroupName(Aws::String &&value)