AWS SDK for C++  1.9.109
AWS SDK for C++
ListJobExecutionsForJobRequest.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 "ListJobExecutionsForJob"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41 
45  inline const Aws::String& GetJobId() const{ return m_jobId; }
46 
50  inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
51 
55  inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
56 
60  inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
61 
65  inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
66 
70  inline ListJobExecutionsForJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
71 
75  inline ListJobExecutionsForJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
76 
80  inline ListJobExecutionsForJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
81 
82 
86  inline const JobExecutionStatus& GetStatus() const{ return m_status; }
87 
91  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
92 
96  inline void SetStatus(const JobExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
97 
101  inline void SetStatus(JobExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
102 
106  inline ListJobExecutionsForJobRequest& WithStatus(const JobExecutionStatus& value) { SetStatus(value); return *this;}
107 
111  inline ListJobExecutionsForJobRequest& WithStatus(JobExecutionStatus&& value) { SetStatus(std::move(value)); return *this;}
112 
113 
117  inline int GetMaxResults() const{ return m_maxResults; }
118 
122  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
123 
127  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
128 
132  inline ListJobExecutionsForJobRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
133 
134 
138  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
139 
143  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
144 
148  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
149 
153  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
154 
158  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
159 
163  inline ListJobExecutionsForJobRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
164 
168  inline ListJobExecutionsForJobRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
169 
173  inline ListJobExecutionsForJobRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
174 
175  private:
176 
177  Aws::String m_jobId;
178  bool m_jobIdHasBeenSet;
179 
180  JobExecutionStatus m_status;
181  bool m_statusHasBeenSet;
182 
183  int m_maxResults;
184  bool m_maxResultsHasBeenSet;
185 
186  Aws::String m_nextToken;
187  bool m_nextTokenHasBeenSet;
188  };
189 
190 } // namespace Model
191 } // namespace IoT
192 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::ListJobExecutionsForJobRequest::SetJobId
void SetJobId(const Aws::String &value)
Definition: ListJobExecutionsForJobRequest.h:55
Aws::IoT::Model::ListJobExecutionsForJobRequest::GetMaxResults
int GetMaxResults() const
Definition: ListJobExecutionsForJobRequest.h:117
Aws::IoT::Model::ListJobExecutionsForJobRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListJobExecutionsForJobRequest.h:158
Aws::IoT::Model::ListJobExecutionsForJobRequest::GetJobId
const Aws::String & GetJobId() const
Definition: ListJobExecutionsForJobRequest.h:45
Aws::IoT::Model::ListJobExecutionsForJobRequest::WithNextToken
ListJobExecutionsForJobRequest & WithNextToken(const Aws::String &value)
Definition: ListJobExecutionsForJobRequest.h:163
Aws::IoT::Model::ListJobExecutionsForJobRequest::WithStatus
ListJobExecutionsForJobRequest & WithStatus(JobExecutionStatus &&value)
Definition: ListJobExecutionsForJobRequest.h:111
Aws::IoT::Model::ListJobExecutionsForJobRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListJobExecutionsForJobRequest.h:35
Aws::IoT::Model::ListJobExecutionsForJobRequest::WithJobId
ListJobExecutionsForJobRequest & WithJobId(const char *value)
Definition: ListJobExecutionsForJobRequest.h:80
Aws::IoT::Model::ListJobExecutionsForJobRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::ListJobExecutionsForJobRequest::WithStatus
ListJobExecutionsForJobRequest & WithStatus(const JobExecutionStatus &value)
Definition: ListJobExecutionsForJobRequest.h:106
Aws::IoT::Model::ListJobExecutionsForJobRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListJobExecutionsForJobRequest.h:122
Aws::IoT::Model::ListJobExecutionsForJobRequest::WithJobId
ListJobExecutionsForJobRequest & WithJobId(Aws::String &&value)
Definition: ListJobExecutionsForJobRequest.h:75
JobExecutionStatus.h
Aws::IoT::Model::ListJobExecutionsForJobRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListJobExecutionsForJobRequest.h:153
Aws::IoT::Model::ListJobExecutionsForJobRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListJobExecutionsForJobRequest.h:138
Aws::IoT::Model::ListJobExecutionsForJobRequest::SetStatus
void SetStatus(const JobExecutionStatus &value)
Definition: ListJobExecutionsForJobRequest.h:96
Aws::IoT::Model::ListJobExecutionsForJobRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListJobExecutionsForJobRequest.h:143
Aws::IoT::Model::ListJobExecutionsForJobRequest::ListJobExecutionsForJobRequest
ListJobExecutionsForJobRequest()
Aws::IoT::Model::ListJobExecutionsForJobRequest::SetJobId
void SetJobId(Aws::String &&value)
Definition: ListJobExecutionsForJobRequest.h:60
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::ListJobExecutionsForJobRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListJobExecutionsForJobRequest.h:127
Aws::IoT::Model::ListJobExecutionsForJobRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::ListJobExecutionsForJobRequest::SetJobId
void SetJobId(const char *value)
Definition: ListJobExecutionsForJobRequest.h:65
Aws::IoT::Model::JobExecutionStatus
JobExecutionStatus
Definition: JobExecutionStatus.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ListJobExecutionsForJobRequest::JobIdHasBeenSet
bool JobIdHasBeenSet() const
Definition: ListJobExecutionsForJobRequest.h:50
Aws::IoT::Model::ListJobExecutionsForJobRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListJobExecutionsForJobRequest.h:148
Aws::IoT::Model::ListJobExecutionsForJobRequest::WithNextToken
ListJobExecutionsForJobRequest & WithNextToken(const char *value)
Definition: ListJobExecutionsForJobRequest.h:173
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::ListJobExecutionsForJobRequest::WithMaxResults
ListJobExecutionsForJobRequest & WithMaxResults(int value)
Definition: ListJobExecutionsForJobRequest.h:132
Aws::IoT::Model::ListJobExecutionsForJobRequest::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: ListJobExecutionsForJobRequest.h:91
IoTRequest.h
Aws::IoT::Model::ListJobExecutionsForJobRequest
Definition: ListJobExecutionsForJobRequest.h:27
Aws::IoT::Model::ListJobExecutionsForJobRequest::WithNextToken
ListJobExecutionsForJobRequest & WithNextToken(Aws::String &&value)
Definition: ListJobExecutionsForJobRequest.h:168
Aws::IoT::Model::ListJobExecutionsForJobRequest::SetStatus
void SetStatus(JobExecutionStatus &&value)
Definition: ListJobExecutionsForJobRequest.h:101
Aws::IoT::Model::ListJobExecutionsForJobRequest::WithJobId
ListJobExecutionsForJobRequest & WithJobId(const Aws::String &value)
Definition: ListJobExecutionsForJobRequest.h:70
Aws::IoT::Model::ListJobExecutionsForJobRequest::GetStatus
const JobExecutionStatus & GetStatus() const
Definition: ListJobExecutionsForJobRequest.h:86
IoT_EXPORTS.h