AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ListJobsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/s3control/S3ControlRequest.h>
10#include <aws/s3control/S3Control_EXPORTS.h>
11#include <aws/s3control/model/JobStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace S3Control {
20namespace Model {
21
25 public:
26 AWS_S3CONTROL_API ListJobsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListJobs"; }
33
34 AWS_S3CONTROL_API Aws::String SerializePayload() const override;
35
36 AWS_S3CONTROL_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
43 AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override;
44
46
50 inline const Aws::String& GetAccountId() const { return m_accountId; }
51 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
52 template <typename AccountIdT = Aws::String>
53 void SetAccountId(AccountIdT&& value) {
54 m_accountIdHasBeenSet = true;
55 m_accountId = std::forward<AccountIdT>(value);
56 }
57 template <typename AccountIdT = Aws::String>
58 ListJobsRequest& WithAccountId(AccountIdT&& value) {
59 SetAccountId(std::forward<AccountIdT>(value));
60 return *this;
61 }
63
65
69 inline const Aws::Vector<JobStatus>& GetJobStatuses() const { return m_jobStatuses; }
70 inline bool JobStatusesHasBeenSet() const { return m_jobStatusesHasBeenSet; }
71 template <typename JobStatusesT = Aws::Vector<JobStatus>>
72 void SetJobStatuses(JobStatusesT&& value) {
73 m_jobStatusesHasBeenSet = true;
74 m_jobStatuses = std::forward<JobStatusesT>(value);
75 }
76 template <typename JobStatusesT = Aws::Vector<JobStatus>>
77 ListJobsRequest& WithJobStatuses(JobStatusesT&& value) {
78 SetJobStatuses(std::forward<JobStatusesT>(value));
79 return *this;
80 }
82 m_jobStatusesHasBeenSet = true;
83 m_jobStatuses.push_back(value);
84 return *this;
85 }
87
89
95 inline const Aws::String& GetNextToken() const { return m_nextToken; }
96 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
97 template <typename NextTokenT = Aws::String>
98 void SetNextToken(NextTokenT&& value) {
99 m_nextTokenHasBeenSet = true;
100 m_nextToken = std::forward<NextTokenT>(value);
101 }
102 template <typename NextTokenT = Aws::String>
103 ListJobsRequest& WithNextToken(NextTokenT&& value) {
104 SetNextToken(std::forward<NextTokenT>(value));
105 return *this;
106 }
108
110
116 inline int GetMaxResults() const { return m_maxResults; }
117 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
118 inline void SetMaxResults(int value) {
119 m_maxResultsHasBeenSet = true;
120 m_maxResults = value;
121 }
122 inline ListJobsRequest& WithMaxResults(int value) {
123 SetMaxResults(value);
124 return *this;
125 }
127 private:
128 Aws::String m_accountId;
129
130 Aws::Vector<JobStatus> m_jobStatuses;
131
132 Aws::String m_nextToken;
133
134 int m_maxResults{0};
135 bool m_accountIdHasBeenSet = false;
136 bool m_jobStatusesHasBeenSet = false;
137 bool m_nextTokenHasBeenSet = false;
138 bool m_maxResultsHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace S3Control
143} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::Vector< JobStatus > & GetJobStatuses() const
void SetJobStatuses(JobStatusesT &&value)
AWS_S3CONTROL_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListJobsRequest & WithAccountId(AccountIdT &&value)
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
ListJobsRequest & WithJobStatuses(JobStatusesT &&value)
AWS_S3CONTROL_API Aws::String SerializePayload() const override
void SetNextToken(NextTokenT &&value)
AWS_S3CONTROL_API ListJobsRequest()=default
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetAccountId(AccountIdT &&value)
ListJobsRequest & WithMaxResults(int value)
const Aws::String & GetNextToken() const
const Aws::String & GetAccountId() const
ListJobsRequest & WithNextToken(NextTokenT &&value)
ListJobsRequest & AddJobStatuses(JobStatus value)
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector