AWS SDK for C++  1.8.71
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 
123  inline int GetMaxResults() const{ return m_maxResults; }
124 
128  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
129 
133  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
134 
138  inline ListJobExecutionsForThingRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
139 
140 
144  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
145 
149  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
150 
154  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
155 
159  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
160 
164  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
165 
169  inline ListJobExecutionsForThingRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
170 
174  inline ListJobExecutionsForThingRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
175 
179  inline ListJobExecutionsForThingRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
180 
181  private:
182 
183  Aws::String m_thingName;
184  bool m_thingNameHasBeenSet;
185 
186  JobExecutionStatus m_status;
187  bool m_statusHasBeenSet;
188 
189  int m_maxResults;
190  bool m_maxResultsHasBeenSet;
191 
192  Aws::String m_nextToken;
193  bool m_nextTokenHasBeenSet;
194  };
195 
196 } // namespace Model
197 } // namespace IoT
198 } // namespace Aws
ListJobExecutionsForThingRequest & WithStatus(const JobExecutionStatus &value)
ListJobExecutionsForThingRequest & WithStatus(JobExecutionStatus &&value)
ListJobExecutionsForThingRequest & WithThingName(const Aws::String &value)
ListJobExecutionsForThingRequest & WithNextToken(const Aws::String &value)
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
ListJobExecutionsForThingRequest & WithThingName(Aws::String &&value)
ListJobExecutionsForThingRequest & WithNextToken(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListJobExecutionsForThingRequest & WithMaxResults(int value)
ListJobExecutionsForThingRequest & WithNextToken(Aws::String &&value)
ListJobExecutionsForThingRequest & WithThingName(const char *value)