AWS SDK for C++  1.9.104
AWS SDK for C++
ListJobExecutionsForThingRequest.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>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace IoT
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "ListJobExecutionsForThing"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41 
45  inline const Aws::String& GetThingName() const{ return m_thingName; }
46 
50  inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
51 
55  inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
56 
60  inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
61 
65  inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
66 
70  inline ListJobExecutionsForThingRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
71 
75  inline ListJobExecutionsForThingRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
76 
80  inline ListJobExecutionsForThingRequest& WithThingName(const char* value) { SetThingName(value); return *this;}
81 
82 
87  inline const JobExecutionStatus& GetStatus() const{ return m_status; }
88 
93  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
94 
99  inline void SetStatus(const JobExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
100 
105  inline void SetStatus(JobExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
106 
111  inline ListJobExecutionsForThingRequest& WithStatus(const JobExecutionStatus& value) { SetStatus(value); return *this;}
112 
117  inline ListJobExecutionsForThingRequest& WithStatus(JobExecutionStatus&& value) { SetStatus(std::move(value)); return *this;}
118 
119 
129  inline const Aws::String& GetNamespaceId() const{ return m_namespaceId; }
130 
140  inline bool NamespaceIdHasBeenSet() const { return m_namespaceIdHasBeenSet; }
141 
151  inline void SetNamespaceId(const Aws::String& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = value; }
152 
162  inline void SetNamespaceId(Aws::String&& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = std::move(value); }
163 
173  inline void SetNamespaceId(const char* value) { m_namespaceIdHasBeenSet = true; m_namespaceId.assign(value); }
174 
184  inline ListJobExecutionsForThingRequest& WithNamespaceId(const Aws::String& value) { SetNamespaceId(value); return *this;}
185 
195  inline ListJobExecutionsForThingRequest& WithNamespaceId(Aws::String&& value) { SetNamespaceId(std::move(value)); return *this;}
196 
206  inline ListJobExecutionsForThingRequest& WithNamespaceId(const char* value) { SetNamespaceId(value); return *this;}
207 
208 
212  inline int GetMaxResults() const{ return m_maxResults; }
213 
217  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
218 
222  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
223 
227  inline ListJobExecutionsForThingRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
228 
229 
233  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
234 
238  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
239 
243  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
244 
248  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
249 
253  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
254 
258  inline ListJobExecutionsForThingRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
259 
263  inline ListJobExecutionsForThingRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
264 
268  inline ListJobExecutionsForThingRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
269 
270  private:
271 
272  Aws::String m_thingName;
273  bool m_thingNameHasBeenSet;
274 
275  JobExecutionStatus m_status;
276  bool m_statusHasBeenSet;
277 
278  Aws::String m_namespaceId;
279  bool m_namespaceIdHasBeenSet;
280 
281  int m_maxResults;
282  bool m_maxResultsHasBeenSet;
283 
284  Aws::String m_nextToken;
285  bool m_nextTokenHasBeenSet;
286  };
287 
288 } // namespace Model
289 } // namespace IoT
290 } // namespace Aws
Aws::IoT::Model::ListJobExecutionsForThingRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListJobExecutionsForThingRequest.h:238
Aws::IoT::Model::ListJobExecutionsForThingRequest::GetMaxResults
int GetMaxResults() const
Definition: ListJobExecutionsForThingRequest.h:212
Aws::IoT::Model::ListJobExecutionsForThingRequest::GetStatus
const JobExecutionStatus & GetStatus() const
Definition: ListJobExecutionsForThingRequest.h:87
Aws::IoT::Model::ListJobExecutionsForThingRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListJobExecutionsForThingRequest.h:243
Aws::IoT::Model::ListJobExecutionsForThingRequest::WithNamespaceId
ListJobExecutionsForThingRequest & WithNamespaceId(Aws::String &&value)
Definition: ListJobExecutionsForThingRequest.h:195
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::ListJobExecutionsForThingRequest::SetNamespaceId
void SetNamespaceId(const Aws::String &value)
Definition: ListJobExecutionsForThingRequest.h:151
Aws::IoT::Model::ListJobExecutionsForThingRequest
Definition: ListJobExecutionsForThingRequest.h:27
Aws::IoT::Model::ListJobExecutionsForThingRequest::GetThingName
const Aws::String & GetThingName() const
Definition: ListJobExecutionsForThingRequest.h:45
Aws::IoT::Model::ListJobExecutionsForThingRequest::ThingNameHasBeenSet
bool ThingNameHasBeenSet() const
Definition: ListJobExecutionsForThingRequest.h:50
Aws::IoT::Model::ListJobExecutionsForThingRequest::SetNamespaceId
void SetNamespaceId(const char *value)
Definition: ListJobExecutionsForThingRequest.h:173
Aws::IoT::Model::ListJobExecutionsForThingRequest::SetThingName
void SetThingName(const char *value)
Definition: ListJobExecutionsForThingRequest.h:65
Aws::IoT::Model::ListJobExecutionsForThingRequest::WithThingName
ListJobExecutionsForThingRequest & WithThingName(const Aws::String &value)
Definition: ListJobExecutionsForThingRequest.h:70
Aws::IoT::Model::ListJobExecutionsForThingRequest::WithStatus
ListJobExecutionsForThingRequest & WithStatus(const JobExecutionStatus &value)
Definition: ListJobExecutionsForThingRequest.h:111
Aws::IoT::Model::ListJobExecutionsForThingRequest::GetNamespaceId
const Aws::String & GetNamespaceId() const
Definition: ListJobExecutionsForThingRequest.h:129
Aws::IoT::Model::ListJobExecutionsForThingRequest::WithNamespaceId
ListJobExecutionsForThingRequest & WithNamespaceId(const char *value)
Definition: ListJobExecutionsForThingRequest.h:206
Aws::IoT::Model::ListJobExecutionsForThingRequest::WithStatus
ListJobExecutionsForThingRequest & WithStatus(JobExecutionStatus &&value)
Definition: ListJobExecutionsForThingRequest.h:117
Aws::IoT::Model::ListJobExecutionsForThingRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListJobExecutionsForThingRequest.h:217
Aws::IoT::Model::ListJobExecutionsForThingRequest::WithNextToken
ListJobExecutionsForThingRequest & WithNextToken(const Aws::String &value)
Definition: ListJobExecutionsForThingRequest.h:258
Aws::IoT::Model::ListJobExecutionsForThingRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListJobExecutionsForThingRequest.h:222
Aws::IoT::Model::ListJobExecutionsForThingRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListJobExecutionsForThingRequest.h:248
Aws::IoT::Model::ListJobExecutionsForThingRequest::SetThingName
void SetThingName(const Aws::String &value)
Definition: ListJobExecutionsForThingRequest.h:55
Aws::IoT::Model::ListJobExecutionsForThingRequest::SetThingName
void SetThingName(Aws::String &&value)
Definition: ListJobExecutionsForThingRequest.h:60
Aws::IoT::Model::ListJobExecutionsForThingRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListJobExecutionsForThingRequest.h:253
JobExecutionStatus.h
Aws::IoT::Model::ListJobExecutionsForThingRequest::SetStatus
void SetStatus(JobExecutionStatus &&value)
Definition: ListJobExecutionsForThingRequest.h:105
Aws::IoT::Model::ListJobExecutionsForThingRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListJobExecutionsForThingRequest.h:233
Aws::IoT::Model::ListJobExecutionsForThingRequest::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: ListJobExecutionsForThingRequest.h:93
Aws::IoT::Model::ListJobExecutionsForThingRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::ListJobExecutionsForThingRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListJobExecutionsForThingRequest.h:35
Aws::IoT::Model::ListJobExecutionsForThingRequest::SetStatus
void SetStatus(const JobExecutionStatus &value)
Definition: ListJobExecutionsForThingRequest.h:99
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::ListJobExecutionsForThingRequest::WithThingName
ListJobExecutionsForThingRequest & WithThingName(Aws::String &&value)
Definition: ListJobExecutionsForThingRequest.h:75
Aws::IoT::Model::ListJobExecutionsForThingRequest::WithNextToken
ListJobExecutionsForThingRequest & WithNextToken(const char *value)
Definition: ListJobExecutionsForThingRequest.h:268
Aws::IoT::Model::ListJobExecutionsForThingRequest::WithNamespaceId
ListJobExecutionsForThingRequest & WithNamespaceId(const Aws::String &value)
Definition: ListJobExecutionsForThingRequest.h:184
Aws::IoT::Model::ListJobExecutionsForThingRequest::WithMaxResults
ListJobExecutionsForThingRequest & WithMaxResults(int value)
Definition: ListJobExecutionsForThingRequest.h:227
Aws::IoT::Model::JobExecutionStatus
JobExecutionStatus
Definition: JobExecutionStatus.h:17
Aws::IoT::Model::ListJobExecutionsForThingRequest::ListJobExecutionsForThingRequest
ListJobExecutionsForThingRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ListJobExecutionsForThingRequest::WithNextToken
ListJobExecutionsForThingRequest & WithNextToken(Aws::String &&value)
Definition: ListJobExecutionsForThingRequest.h:263
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::ListJobExecutionsForThingRequest::NamespaceIdHasBeenSet
bool NamespaceIdHasBeenSet() const
Definition: ListJobExecutionsForThingRequest.h:140
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::ListJobExecutionsForThingRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
IoTRequest.h
Aws::IoT::Model::ListJobExecutionsForThingRequest::SetNamespaceId
void SetNamespaceId(Aws::String &&value)
Definition: ListJobExecutionsForThingRequest.h:162
Aws::IoT::Model::ListJobExecutionsForThingRequest::WithThingName
ListJobExecutionsForThingRequest & WithThingName(const char *value)
Definition: ListJobExecutionsForThingRequest.h:80
IoT_EXPORTS.h