AWS SDK for C++  1.8.71
AWS SDK for C++
ListJobsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Http
17 {
18  class URI;
19 } //namespace Http
20 namespace S3Control
21 {
22 namespace Model
23 {
24 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "ListJobs"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41 
42  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
43 
44 
48  inline const Aws::String& GetAccountId() const{ return m_accountId; }
49 
53  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
54 
58  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
59 
63  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
64 
68  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
69 
73  inline ListJobsRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
74 
78  inline ListJobsRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
79 
83  inline ListJobsRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
84 
85 
90  inline const Aws::Vector<JobStatus>& GetJobStatuses() const{ return m_jobStatuses; }
91 
96  inline bool JobStatusesHasBeenSet() const { return m_jobStatusesHasBeenSet; }
97 
102  inline void SetJobStatuses(const Aws::Vector<JobStatus>& value) { m_jobStatusesHasBeenSet = true; m_jobStatuses = value; }
103 
108  inline void SetJobStatuses(Aws::Vector<JobStatus>&& value) { m_jobStatusesHasBeenSet = true; m_jobStatuses = std::move(value); }
109 
114  inline ListJobsRequest& WithJobStatuses(const Aws::Vector<JobStatus>& value) { SetJobStatuses(value); return *this;}
115 
120  inline ListJobsRequest& WithJobStatuses(Aws::Vector<JobStatus>&& value) { SetJobStatuses(std::move(value)); return *this;}
121 
126  inline ListJobsRequest& AddJobStatuses(const JobStatus& value) { m_jobStatusesHasBeenSet = true; m_jobStatuses.push_back(value); return *this; }
127 
132  inline ListJobsRequest& AddJobStatuses(JobStatus&& value) { m_jobStatusesHasBeenSet = true; m_jobStatuses.push_back(std::move(value)); return *this; }
133 
134 
141  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
142 
149  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
150 
157  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
158 
165  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
166 
173  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
174 
181  inline ListJobsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
182 
189  inline ListJobsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
190 
197  inline ListJobsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
198 
199 
206  inline int GetMaxResults() const{ return m_maxResults; }
207 
214  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
215 
222  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
223 
230  inline ListJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
231 
232  private:
233 
234  Aws::String m_accountId;
235  bool m_accountIdHasBeenSet;
236 
237  Aws::Vector<JobStatus> m_jobStatuses;
238  bool m_jobStatusesHasBeenSet;
239 
240  Aws::String m_nextToken;
241  bool m_nextTokenHasBeenSet;
242 
243  int m_maxResults;
244  bool m_maxResultsHasBeenSet;
245  };
246 
247 } // namespace Model
248 } // namespace S3Control
249 } // namespace Aws
ListJobsRequest & AddJobStatuses(const JobStatus &value)
void SetNextToken(const Aws::String &value)
ListJobsRequest & WithNextToken(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
void SetJobStatuses(const Aws::Vector< JobStatus > &value)
const Aws::String & GetAccountId() const
#define AWS_S3CONTROL_API
ListJobsRequest & WithJobStatuses(Aws::Vector< JobStatus > &&value)
void SetJobStatuses(Aws::Vector< JobStatus > &&value)
virtual const char * GetServiceRequestName() const override
ListJobsRequest & AddJobStatuses(JobStatus &&value)
void SetNextToken(Aws::String &&value)
void SetAccountId(Aws::String &&value)
ListJobsRequest & WithNextToken(Aws::String &&value)
const Aws::Vector< JobStatus > & GetJobStatuses() const
ListJobsRequest & WithAccountId(const Aws::String &value)
void SetAccountId(const Aws::String &value)
ListJobsRequest & WithJobStatuses(const Aws::Vector< JobStatus > &value)
ListJobsRequest & WithMaxResults(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListJobsRequest & WithAccountId(Aws::String &&value)
ListJobsRequest & WithAccountId(const char *value)
ListJobsRequest & WithNextToken(const char *value)
const Aws::String & GetNextToken() const
void SetAccountId(const char *value)