AWS SDK for C++  1.9.130
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 
43 
44 
49  inline const Aws::String& GetAccountId() const{ return m_accountId; }
50 
55  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
56 
61  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
62 
67  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
68 
73  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
74 
79  inline ListJobsRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
80 
85  inline ListJobsRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
86 
91  inline ListJobsRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
92 
93 
98  inline const Aws::Vector<JobStatus>& GetJobStatuses() const{ return m_jobStatuses; }
99 
104  inline bool JobStatusesHasBeenSet() const { return m_jobStatusesHasBeenSet; }
105 
110  inline void SetJobStatuses(const Aws::Vector<JobStatus>& value) { m_jobStatusesHasBeenSet = true; m_jobStatuses = value; }
111 
116  inline void SetJobStatuses(Aws::Vector<JobStatus>&& value) { m_jobStatusesHasBeenSet = true; m_jobStatuses = std::move(value); }
117 
122  inline ListJobsRequest& WithJobStatuses(const Aws::Vector<JobStatus>& value) { SetJobStatuses(value); return *this;}
123 
128  inline ListJobsRequest& WithJobStatuses(Aws::Vector<JobStatus>&& value) { SetJobStatuses(std::move(value)); return *this;}
129 
134  inline ListJobsRequest& AddJobStatuses(const JobStatus& value) { m_jobStatusesHasBeenSet = true; m_jobStatuses.push_back(value); return *this; }
135 
140  inline ListJobsRequest& AddJobStatuses(JobStatus&& value) { m_jobStatusesHasBeenSet = true; m_jobStatuses.push_back(std::move(value)); return *this; }
141 
142 
149  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
150 
157  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
158 
165  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
166 
173  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
174 
181  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
182 
189  inline ListJobsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
190 
197  inline ListJobsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
198 
205  inline ListJobsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
206 
207 
214  inline int GetMaxResults() const{ return m_maxResults; }
215 
222  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
223 
230  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
231 
238  inline ListJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
239 
240  private:
241 
242  Aws::String m_accountId;
243  bool m_accountIdHasBeenSet;
244 
245  Aws::Vector<JobStatus> m_jobStatuses;
246  bool m_jobStatusesHasBeenSet;
247 
248  Aws::String m_nextToken;
249  bool m_nextTokenHasBeenSet;
250 
251  int m_maxResults;
252  bool m_maxResultsHasBeenSet;
253  };
254 
255 } // namespace Model
256 } // namespace S3Control
257 } // namespace Aws
Aws::S3Control::Model::ListJobsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Http::URI
Definition: URI.h:32
Aws::S3Control::S3ControlRequest
Definition: S3ControlRequest.h:17
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::S3Control::Model::ListJobsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::S3Control::Model::ListJobsRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: ListJobsRequest.h:55
Aws::S3Control::Model::ListJobsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListJobsRequest.h:157
Aws::S3Control::Model::ListJobsRequest::WithNextToken
ListJobsRequest & WithNextToken(Aws::String &&value)
Definition: ListJobsRequest.h:197
Aws::S3Control::Model::ListJobsRequest::ListJobsRequest
ListJobsRequest()
Aws::S3Control::Model::ListJobsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListJobsRequest.h:222
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::S3Control::Model::ListJobsRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: ListJobsRequest.h:49
Aws::S3Control::Model::ListJobsRequest
Definition: ListJobsRequest.h:28
Aws::S3Control::Model::JobStatus
JobStatus
Definition: JobStatus.h:17
AWSVector.h
Aws::S3Control::Model::ListJobsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
S3Control_EXPORTS.h
Aws::S3Control::Model::ListJobsRequest::SetJobStatuses
void SetJobStatuses(const Aws::Vector< JobStatus > &value)
Definition: ListJobsRequest.h:110
Aws::S3Control::Model::ListJobsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListJobsRequest.h:165
Aws::S3Control::Model::ListJobsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListJobsRequest.h:173
Aws::S3Control::Model::ListJobsRequest::WithNextToken
ListJobsRequest & WithNextToken(const Aws::String &value)
Definition: ListJobsRequest.h:189
Aws::S3Control::Model::ListJobsRequest::WithAccountId
ListJobsRequest & WithAccountId(const Aws::String &value)
Definition: ListJobsRequest.h:79
Aws::S3Control::Model::ListJobsRequest::SetAccountId
void SetAccountId(const char *value)
Definition: ListJobsRequest.h:73
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::ListJobsRequest::AddJobStatuses
ListJobsRequest & AddJobStatuses(const JobStatus &value)
Definition: ListJobsRequest.h:134
Aws::S3Control::Model::ListJobsRequest::WithMaxResults
ListJobsRequest & WithMaxResults(int value)
Definition: ListJobsRequest.h:238
Aws::S3Control::Model::ListJobsRequest::SetJobStatuses
void SetJobStatuses(Aws::Vector< JobStatus > &&value)
Definition: ListJobsRequest.h:116
Aws::S3Control::Model::ListJobsRequest::WithNextToken
ListJobsRequest & WithNextToken(const char *value)
Definition: ListJobsRequest.h:205
Aws::S3Control::Model::ListJobsRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: ListJobsRequest.h:67
AWSString.h
Aws::S3Control::Model::ListJobsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListJobsRequest.h:181
Aws::S3Control::Model::ListJobsRequest::GetJobStatuses
const Aws::Vector< JobStatus > & GetJobStatuses() const
Definition: ListJobsRequest.h:98
Aws::S3Control::Model::ListJobsRequest::WithJobStatuses
ListJobsRequest & WithJobStatuses(Aws::Vector< JobStatus > &&value)
Definition: ListJobsRequest.h:128
Aws::S3Control::Model::ListJobsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListJobsRequest.h:149
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::ListJobsRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: ListJobsRequest.h:61
Aws::S3Control::Model::ListJobsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListJobsRequest.h:230
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::S3Control::Model::ListJobsRequest::WithAccountId
ListJobsRequest & WithAccountId(const char *value)
Definition: ListJobsRequest.h:91
S3ControlRequest.h
JobStatus.h
Aws::S3Control::Model::ListJobsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListJobsRequest.h:214
Aws::S3Control::Model::ListJobsRequest::JobStatusesHasBeenSet
bool JobStatusesHasBeenSet() const
Definition: ListJobsRequest.h:104
Aws::S3Control::Model::ListJobsRequest::AddJobStatuses
ListJobsRequest & AddJobStatuses(JobStatus &&value)
Definition: ListJobsRequest.h:140
Aws::S3Control::Model::ListJobsRequest::WithAccountId
ListJobsRequest & WithAccountId(Aws::String &&value)
Definition: ListJobsRequest.h:85
Aws::S3Control::Model::ListJobsRequest::WithJobStatuses
ListJobsRequest & WithJobStatuses(const Aws::Vector< JobStatus > &value)
Definition: ListJobsRequest.h:122
Aws::S3Control::Model::ListJobsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListJobsRequest.h:36