AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename JobQueueT = Aws::String>
50 void SetJobQueue(JobQueueT&& value) { m_jobQueueHasBeenSet = true; m_jobQueue = std::forward<JobQueueT>(value); }
51 template<typename JobQueueT = Aws::String>
52 ListJobsRequest& WithJobQueue(JobQueueT&& value) { SetJobQueue(std::forward<JobQueueT>(value)); return *this;}
54
56
60 inline const Aws::String& GetArrayJobId() const { return m_arrayJobId; }
61 inline bool ArrayJobIdHasBeenSet() const { return m_arrayJobIdHasBeenSet; }
62 template<typename ArrayJobIdT = Aws::String>
63 void SetArrayJobId(ArrayJobIdT&& value) { m_arrayJobIdHasBeenSet = true; m_arrayJobId = std::forward<ArrayJobIdT>(value); }
64 template<typename ArrayJobIdT = Aws::String>
65 ListJobsRequest& WithArrayJobId(ArrayJobIdT&& value) { SetArrayJobId(std::forward<ArrayJobIdT>(value)); return *this;}
67
69
74 inline const Aws::String& GetMultiNodeJobId() const { return m_multiNodeJobId; }
75 inline bool MultiNodeJobIdHasBeenSet() const { return m_multiNodeJobIdHasBeenSet; }
76 template<typename MultiNodeJobIdT = Aws::String>
77 void SetMultiNodeJobId(MultiNodeJobIdT&& value) { m_multiNodeJobIdHasBeenSet = true; m_multiNodeJobId = std::forward<MultiNodeJobIdT>(value); }
78 template<typename MultiNodeJobIdT = Aws::String>
79 ListJobsRequest& WithMultiNodeJobId(MultiNodeJobIdT&& value) { SetMultiNodeJobId(std::forward<MultiNodeJobIdT>(value)); return *this;}
81
83
89 inline JobStatus GetJobStatus() const { return m_jobStatus; }
90 inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; }
91 inline void SetJobStatus(JobStatus value) { m_jobStatusHasBeenSet = true; m_jobStatus = value; }
92 inline ListJobsRequest& WithJobStatus(JobStatus value) { SetJobStatus(value); return *this;}
94
96
110 inline int GetMaxResults() const { return m_maxResults; }
111 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
112 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
113 inline ListJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
115
117
126 inline const Aws::String& GetNextToken() const { return m_nextToken; }
127 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
128 template<typename NextTokenT = Aws::String>
129 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
130 template<typename NextTokenT = Aws::String>
131 ListJobsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
133
135
170 inline const Aws::Vector<KeyValuesPair>& GetFilters() const { return m_filters; }
171 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
172 template<typename FiltersT = Aws::Vector<KeyValuesPair>>
173 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
174 template<typename FiltersT = Aws::Vector<KeyValuesPair>>
175 ListJobsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
176 template<typename FiltersT = KeyValuesPair>
177 ListJobsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
179 private:
180
181 Aws::String m_jobQueue;
182 bool m_jobQueueHasBeenSet = false;
183
184 Aws::String m_arrayJobId;
185 bool m_arrayJobIdHasBeenSet = false;
186
187 Aws::String m_multiNodeJobId;
188 bool m_multiNodeJobIdHasBeenSet = false;
189
190 JobStatus m_jobStatus{JobStatus::NOT_SET};
191 bool m_jobStatusHasBeenSet = false;
192
193 int m_maxResults{0};
194 bool m_maxResultsHasBeenSet = false;
195
196 Aws::String m_nextToken;
197 bool m_nextTokenHasBeenSet = false;
198
200 bool m_filtersHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace Batch
205} // namespace Aws
ListJobsRequest & WithMaxResults(int value)
ListJobsRequest & WithArrayJobId(ArrayJobIdT &&value)
ListJobsRequest & AddFilters(FiltersT &&value)
const Aws::String & GetJobQueue() const
ListJobsRequest & WithNextToken(NextTokenT &&value)
const Aws::String & GetArrayJobId() const
AWS_BATCH_API Aws::String SerializePayload() const override
const Aws::String & GetNextToken() const
const Aws::Vector< KeyValuesPair > & GetFilters() const
void SetJobQueue(JobQueueT &&value)
ListJobsRequest & WithJobStatus(JobStatus value)
void SetNextToken(NextTokenT &&value)
void SetArrayJobId(ArrayJobIdT &&value)
ListJobsRequest & WithJobQueue(JobQueueT &&value)
void SetMultiNodeJobId(MultiNodeJobIdT &&value)
const Aws::String & GetMultiNodeJobId() const
AWS_BATCH_API ListJobsRequest()=default
ListJobsRequest & WithFilters(FiltersT &&value)
ListJobsRequest & WithMultiNodeJobId(MultiNodeJobIdT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector