AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListJobsRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/model/JobStatus.h>
10#include <aws/iot/model/TargetSelection.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace IoT
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_IOT_API ListJobsRequest();
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_IOT_API Aws::String SerializePayload() const override;
39
40 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
48 inline const JobStatus& GetStatus() const{ return m_status; }
49 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
50 inline void SetStatus(const JobStatus& value) { m_statusHasBeenSet = true; m_status = value; }
51 inline void SetStatus(JobStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
52 inline ListJobsRequest& WithStatus(const JobStatus& value) { SetStatus(value); return *this;}
53 inline ListJobsRequest& WithStatus(JobStatus&& value) { SetStatus(std::move(value)); return *this;}
55
57
68 inline const TargetSelection& GetTargetSelection() const{ return m_targetSelection; }
69 inline bool TargetSelectionHasBeenSet() const { return m_targetSelectionHasBeenSet; }
70 inline void SetTargetSelection(const TargetSelection& value) { m_targetSelectionHasBeenSet = true; m_targetSelection = value; }
71 inline void SetTargetSelection(TargetSelection&& value) { m_targetSelectionHasBeenSet = true; m_targetSelection = std::move(value); }
72 inline ListJobsRequest& WithTargetSelection(const TargetSelection& value) { SetTargetSelection(value); return *this;}
73 inline ListJobsRequest& WithTargetSelection(TargetSelection&& value) { SetTargetSelection(std::move(value)); return *this;}
75
77
80 inline int GetMaxResults() const{ return m_maxResults; }
81 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
82 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
83 inline ListJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
85
87
90 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
91 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
92 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
93 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
94 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
95 inline ListJobsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
96 inline ListJobsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
97 inline ListJobsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
99
101
104 inline const Aws::String& GetThingGroupName() const{ return m_thingGroupName; }
105 inline bool ThingGroupNameHasBeenSet() const { return m_thingGroupNameHasBeenSet; }
106 inline void SetThingGroupName(const Aws::String& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = value; }
107 inline void SetThingGroupName(Aws::String&& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = std::move(value); }
108 inline void SetThingGroupName(const char* value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName.assign(value); }
109 inline ListJobsRequest& WithThingGroupName(const Aws::String& value) { SetThingGroupName(value); return *this;}
110 inline ListJobsRequest& WithThingGroupName(Aws::String&& value) { SetThingGroupName(std::move(value)); return *this;}
111 inline ListJobsRequest& WithThingGroupName(const char* value) { SetThingGroupName(value); return *this;}
113
115
118 inline const Aws::String& GetThingGroupId() const{ return m_thingGroupId; }
119 inline bool ThingGroupIdHasBeenSet() const { return m_thingGroupIdHasBeenSet; }
120 inline void SetThingGroupId(const Aws::String& value) { m_thingGroupIdHasBeenSet = true; m_thingGroupId = value; }
121 inline void SetThingGroupId(Aws::String&& value) { m_thingGroupIdHasBeenSet = true; m_thingGroupId = std::move(value); }
122 inline void SetThingGroupId(const char* value) { m_thingGroupIdHasBeenSet = true; m_thingGroupId.assign(value); }
123 inline ListJobsRequest& WithThingGroupId(const Aws::String& value) { SetThingGroupId(value); return *this;}
124 inline ListJobsRequest& WithThingGroupId(Aws::String&& value) { SetThingGroupId(std::move(value)); return *this;}
125 inline ListJobsRequest& WithThingGroupId(const char* value) { SetThingGroupId(value); return *this;}
127
129
140 inline const Aws::String& GetNamespaceId() const{ return m_namespaceId; }
141 inline bool NamespaceIdHasBeenSet() const { return m_namespaceIdHasBeenSet; }
142 inline void SetNamespaceId(const Aws::String& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = value; }
143 inline void SetNamespaceId(Aws::String&& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = std::move(value); }
144 inline void SetNamespaceId(const char* value) { m_namespaceIdHasBeenSet = true; m_namespaceId.assign(value); }
145 inline ListJobsRequest& WithNamespaceId(const Aws::String& value) { SetNamespaceId(value); return *this;}
146 inline ListJobsRequest& WithNamespaceId(Aws::String&& value) { SetNamespaceId(std::move(value)); return *this;}
147 inline ListJobsRequest& WithNamespaceId(const char* value) { SetNamespaceId(value); return *this;}
149 private:
150
151 JobStatus m_status;
152 bool m_statusHasBeenSet = false;
153
154 TargetSelection m_targetSelection;
155 bool m_targetSelectionHasBeenSet = false;
156
157 int m_maxResults;
158 bool m_maxResultsHasBeenSet = false;
159
160 Aws::String m_nextToken;
161 bool m_nextTokenHasBeenSet = false;
162
163 Aws::String m_thingGroupName;
164 bool m_thingGroupNameHasBeenSet = false;
165
166 Aws::String m_thingGroupId;
167 bool m_thingGroupIdHasBeenSet = false;
168
169 Aws::String m_namespaceId;
170 bool m_namespaceIdHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace IoT
175} // namespace Aws
void SetThingGroupId(const Aws::String &value)
ListJobsRequest & WithNamespaceId(Aws::String &&value)
ListJobsRequest & WithTargetSelection(const TargetSelection &value)
const JobStatus & GetStatus() const
void SetStatus(const JobStatus &value)
void SetThingGroupName(Aws::String &&value)
void SetNextToken(Aws::String &&value)
void SetThingGroupId(Aws::String &&value)
const Aws::String & GetThingGroupId() const
ListJobsRequest & WithThingGroupName(Aws::String &&value)
ListJobsRequest & WithNamespaceId(const char *value)
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetTargetSelection(const TargetSelection &value)
void SetNamespaceId(Aws::String &&value)
void SetNamespaceId(const Aws::String &value)
ListJobsRequest & WithThingGroupId(Aws::String &&value)
const Aws::String & GetNextToken() const
ListJobsRequest & WithStatus(const JobStatus &value)
ListJobsRequest & WithNextToken(Aws::String &&value)
AWS_IOT_API Aws::String SerializePayload() const override
ListJobsRequest & WithMaxResults(int value)
const Aws::String & GetThingGroupName() const
ListJobsRequest & WithNextToken(const Aws::String &value)
void SetTargetSelection(TargetSelection &&value)
ListJobsRequest & WithThingGroupName(const Aws::String &value)
ListJobsRequest & WithNamespaceId(const Aws::String &value)
void SetNamespaceId(const char *value)
ListJobsRequest & WithThingGroupId(const Aws::String &value)
ListJobsRequest & WithStatus(JobStatus &&value)
void SetStatus(JobStatus &&value)
void SetThingGroupName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetNextToken(const char *value)
const Aws::String & GetNamespaceId() const
ListJobsRequest & WithThingGroupId(const char *value)
void SetThingGroupId(const char *value)
ListJobsRequest & WithNextToken(const char *value)
const TargetSelection & GetTargetSelection() const
void SetThingGroupName(const char *value)
ListJobsRequest & WithTargetSelection(TargetSelection &&value)
void SetNextToken(const Aws::String &value)
ListJobsRequest & WithThingGroupName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String