AWS SDK for C++  1.8.127
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 
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
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:53
Aws::S3Control::Model::ListJobsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListJobsRequest.h:149
Aws::S3Control::Model::ListJobsRequest::WithNextToken
ListJobsRequest & WithNextToken(Aws::String &&value)
Definition: ListJobsRequest.h:189
Aws::S3Control::Model::ListJobsRequest::ListJobsRequest
ListJobsRequest()
Aws::S3Control::Model::ListJobsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListJobsRequest.h:214
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:48
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:102
Aws::S3Control::Model::ListJobsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListJobsRequest.h:157
Aws::S3Control::Model::ListJobsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListJobsRequest.h:165
Aws::S3Control::Model::ListJobsRequest::WithNextToken
ListJobsRequest & WithNextToken(const Aws::String &value)
Definition: ListJobsRequest.h:181
Aws::S3Control::Model::ListJobsRequest::WithAccountId
ListJobsRequest & WithAccountId(const Aws::String &value)
Definition: ListJobsRequest.h:73
Aws::S3Control::Model::ListJobsRequest::SetAccountId
void SetAccountId(const char *value)
Definition: ListJobsRequest.h:68
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:126
Aws::S3Control::Model::ListJobsRequest::WithMaxResults
ListJobsRequest & WithMaxResults(int value)
Definition: ListJobsRequest.h:230
Aws::S3Control::Model::ListJobsRequest::SetJobStatuses
void SetJobStatuses(Aws::Vector< JobStatus > &&value)
Definition: ListJobsRequest.h:108
Aws::S3Control::Model::ListJobsRequest::WithNextToken
ListJobsRequest & WithNextToken(const char *value)
Definition: ListJobsRequest.h:197
Aws::S3Control::Model::ListJobsRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: ListJobsRequest.h:63
AWSString.h
Aws::S3Control::Model::ListJobsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListJobsRequest.h:173
Aws::S3Control::Model::ListJobsRequest::GetJobStatuses
const Aws::Vector< JobStatus > & GetJobStatuses() const
Definition: ListJobsRequest.h:90
Aws::S3Control::Model::ListJobsRequest::WithJobStatuses
ListJobsRequest & WithJobStatuses(Aws::Vector< JobStatus > &&value)
Definition: ListJobsRequest.h:120
Aws::S3Control::Model::ListJobsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListJobsRequest.h:141
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::ListJobsRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: ListJobsRequest.h:58
Aws::S3Control::Model::ListJobsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListJobsRequest.h:222
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:83
S3ControlRequest.h
JobStatus.h
Aws::S3Control::Model::ListJobsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListJobsRequest.h:206
Aws::S3Control::Model::ListJobsRequest::JobStatusesHasBeenSet
bool JobStatusesHasBeenSet() const
Definition: ListJobsRequest.h:96
Aws::S3Control::Model::ListJobsRequest::AddJobStatuses
ListJobsRequest & AddJobStatuses(JobStatus &&value)
Definition: ListJobsRequest.h:132
Aws::S3Control::Model::ListJobsRequest::WithAccountId
ListJobsRequest & WithAccountId(Aws::String &&value)
Definition: ListJobsRequest.h:78
Aws::S3Control::Model::ListJobsRequest::WithJobStatuses
ListJobsRequest & WithJobStatuses(const Aws::Vector< JobStatus > &value)
Definition: ListJobsRequest.h:114
Aws::S3Control::Model::ListJobsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListJobsRequest.h:36