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/batch/Batch_EXPORTS.h>
8#include <aws/batch/BatchRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/batch/model/JobStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/batch/model/KeyValuesPair.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Batch
18{
19namespace Model
20{
21
29 {
30 public:
31 AWS_BATCH_API ListJobsRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "ListJobs"; }
38
39 AWS_BATCH_API Aws::String SerializePayload() const override;
40
41
43
47 inline const Aws::String& GetJobQueue() const{ return m_jobQueue; }
48 inline bool JobQueueHasBeenSet() const { return m_jobQueueHasBeenSet; }
49 inline void SetJobQueue(const Aws::String& value) { m_jobQueueHasBeenSet = true; m_jobQueue = value; }
50 inline void SetJobQueue(Aws::String&& value) { m_jobQueueHasBeenSet = true; m_jobQueue = std::move(value); }
51 inline void SetJobQueue(const char* value) { m_jobQueueHasBeenSet = true; m_jobQueue.assign(value); }
52 inline ListJobsRequest& WithJobQueue(const Aws::String& value) { SetJobQueue(value); return *this;}
53 inline ListJobsRequest& WithJobQueue(Aws::String&& value) { SetJobQueue(std::move(value)); return *this;}
54 inline ListJobsRequest& WithJobQueue(const char* value) { SetJobQueue(value); return *this;}
56
58
62 inline const Aws::String& GetArrayJobId() const{ return m_arrayJobId; }
63 inline bool ArrayJobIdHasBeenSet() const { return m_arrayJobIdHasBeenSet; }
64 inline void SetArrayJobId(const Aws::String& value) { m_arrayJobIdHasBeenSet = true; m_arrayJobId = value; }
65 inline void SetArrayJobId(Aws::String&& value) { m_arrayJobIdHasBeenSet = true; m_arrayJobId = std::move(value); }
66 inline void SetArrayJobId(const char* value) { m_arrayJobIdHasBeenSet = true; m_arrayJobId.assign(value); }
67 inline ListJobsRequest& WithArrayJobId(const Aws::String& value) { SetArrayJobId(value); return *this;}
68 inline ListJobsRequest& WithArrayJobId(Aws::String&& value) { SetArrayJobId(std::move(value)); return *this;}
69 inline ListJobsRequest& WithArrayJobId(const char* value) { SetArrayJobId(value); return *this;}
71
73
78 inline const Aws::String& GetMultiNodeJobId() const{ return m_multiNodeJobId; }
79 inline bool MultiNodeJobIdHasBeenSet() const { return m_multiNodeJobIdHasBeenSet; }
80 inline void SetMultiNodeJobId(const Aws::String& value) { m_multiNodeJobIdHasBeenSet = true; m_multiNodeJobId = value; }
81 inline void SetMultiNodeJobId(Aws::String&& value) { m_multiNodeJobIdHasBeenSet = true; m_multiNodeJobId = std::move(value); }
82 inline void SetMultiNodeJobId(const char* value) { m_multiNodeJobIdHasBeenSet = true; m_multiNodeJobId.assign(value); }
83 inline ListJobsRequest& WithMultiNodeJobId(const Aws::String& value) { SetMultiNodeJobId(value); return *this;}
84 inline ListJobsRequest& WithMultiNodeJobId(Aws::String&& value) { SetMultiNodeJobId(std::move(value)); return *this;}
85 inline ListJobsRequest& WithMultiNodeJobId(const char* value) { SetMultiNodeJobId(value); return *this;}
87
89
95 inline const JobStatus& GetJobStatus() const{ return m_jobStatus; }
96 inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; }
97 inline void SetJobStatus(const JobStatus& value) { m_jobStatusHasBeenSet = true; m_jobStatus = value; }
98 inline void SetJobStatus(JobStatus&& value) { m_jobStatusHasBeenSet = true; m_jobStatus = std::move(value); }
99 inline ListJobsRequest& WithJobStatus(const JobStatus& value) { SetJobStatus(value); return *this;}
100 inline ListJobsRequest& WithJobStatus(JobStatus&& value) { SetJobStatus(std::move(value)); return *this;}
102
104
118 inline int GetMaxResults() const{ return m_maxResults; }
119 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
120 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
121 inline ListJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
123
125
134 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
135 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
136 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
137 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
138 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
139 inline ListJobsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
140 inline ListJobsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
141 inline ListJobsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
143
145
180 inline const Aws::Vector<KeyValuesPair>& GetFilters() const{ return m_filters; }
181 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
182 inline void SetFilters(const Aws::Vector<KeyValuesPair>& value) { m_filtersHasBeenSet = true; m_filters = value; }
183 inline void SetFilters(Aws::Vector<KeyValuesPair>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
184 inline ListJobsRequest& WithFilters(const Aws::Vector<KeyValuesPair>& value) { SetFilters(value); return *this;}
185 inline ListJobsRequest& WithFilters(Aws::Vector<KeyValuesPair>&& value) { SetFilters(std::move(value)); return *this;}
186 inline ListJobsRequest& AddFilters(const KeyValuesPair& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
187 inline ListJobsRequest& AddFilters(KeyValuesPair&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
189 private:
190
191 Aws::String m_jobQueue;
192 bool m_jobQueueHasBeenSet = false;
193
194 Aws::String m_arrayJobId;
195 bool m_arrayJobIdHasBeenSet = false;
196
197 Aws::String m_multiNodeJobId;
198 bool m_multiNodeJobIdHasBeenSet = false;
199
200 JobStatus m_jobStatus;
201 bool m_jobStatusHasBeenSet = false;
202
203 int m_maxResults;
204 bool m_maxResultsHasBeenSet = false;
205
206 Aws::String m_nextToken;
207 bool m_nextTokenHasBeenSet = false;
208
210 bool m_filtersHasBeenSet = false;
211 };
212
213} // namespace Model
214} // namespace Batch
215} // namespace Aws
ListJobsRequest & AddFilters(const KeyValuesPair &value)
ListJobsRequest & WithFilters(Aws::Vector< KeyValuesPair > &&value)
ListJobsRequest & WithMaxResults(int value)
ListJobsRequest & WithJobQueue(const char *value)
ListJobsRequest & WithArrayJobId(const char *value)
void SetJobStatus(const JobStatus &value)
ListJobsRequest & WithJobQueue(const Aws::String &value)
void SetJobQueue(Aws::String &&value)
void SetArrayJobId(Aws::String &&value)
const Aws::String & GetJobQueue() const
ListJobsRequest & WithNextToken(const Aws::String &value)
const Aws::String & GetArrayJobId() const
AWS_BATCH_API Aws::String SerializePayload() const override
void SetArrayJobId(const Aws::String &value)
const Aws::String & GetNextToken() const
ListJobsRequest & WithJobStatus(JobStatus &&value)
ListJobsRequest & WithJobStatus(const JobStatus &value)
void SetArrayJobId(const char *value)
ListJobsRequest & WithMultiNodeJobId(const char *value)
const Aws::Vector< KeyValuesPair > & GetFilters() const
void SetFilters(Aws::Vector< KeyValuesPair > &&value)
void SetNextToken(const Aws::String &value)
ListJobsRequest & WithJobQueue(Aws::String &&value)
void SetJobStatus(JobStatus &&value)
ListJobsRequest & WithArrayJobId(const Aws::String &value)
ListJobsRequest & WithArrayJobId(Aws::String &&value)
void SetNextToken(Aws::String &&value)
void SetJobQueue(const char *value)
ListJobsRequest & AddFilters(KeyValuesPair &&value)
ListJobsRequest & WithFilters(const Aws::Vector< KeyValuesPair > &value)
void SetJobQueue(const Aws::String &value)
const Aws::String & GetMultiNodeJobId() const
ListJobsRequest & WithMultiNodeJobId(const Aws::String &value)
void SetMultiNodeJobId(const char *value)
const JobStatus & GetJobStatus() const
void SetNextToken(const char *value)
void SetMultiNodeJobId(const Aws::String &value)
ListJobsRequest & WithNextToken(const char *value)
virtual const char * GetServiceRequestName() const override
ListJobsRequest & WithNextToken(Aws::String &&value)
void SetFilters(const Aws::Vector< KeyValuesPair > &value)
ListJobsRequest & WithMultiNodeJobId(Aws::String &&value)
void SetMultiNodeJobId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector