AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateJobRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/s3control/S3ControlRequest.h>
11#include <aws/s3control/S3Control_EXPORTS.h>
12#include <aws/s3control/model/JobManifest.h>
13#include <aws/s3control/model/JobManifestGenerator.h>
14#include <aws/s3control/model/JobOperation.h>
15#include <aws/s3control/model/JobReport.h>
16#include <aws/s3control/model/S3Tag.h>
17
18#include <utility>
19
20namespace Aws {
21namespace S3Control {
22namespace Model {
23
27 public:
28 AWS_S3CONTROL_API CreateJobRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateJob"; }
35
36 AWS_S3CONTROL_API Aws::String SerializePayload() const override;
37
39
43 AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override;
44
46
49 inline const Aws::String& GetAccountId() const { return m_accountId; }
50 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
51 template <typename AccountIdT = Aws::String>
52 void SetAccountId(AccountIdT&& value) {
53 m_accountIdHasBeenSet = true;
54 m_accountId = std::forward<AccountIdT>(value);
55 }
56 template <typename AccountIdT = Aws::String>
57 CreateJobRequest& WithAccountId(AccountIdT&& value) {
58 SetAccountId(std::forward<AccountIdT>(value));
59 return *this;
60 }
62
64
69 inline bool GetConfirmationRequired() const { return m_confirmationRequired; }
70 inline bool ConfirmationRequiredHasBeenSet() const { return m_confirmationRequiredHasBeenSet; }
71 inline void SetConfirmationRequired(bool value) {
72 m_confirmationRequiredHasBeenSet = true;
73 m_confirmationRequired = value;
74 }
77 return *this;
78 }
80
82
88 inline const JobOperation& GetOperation() const { return m_operation; }
89 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
90 template <typename OperationT = JobOperation>
91 void SetOperation(OperationT&& value) {
92 m_operationHasBeenSet = true;
93 m_operation = std::forward<OperationT>(value);
94 }
95 template <typename OperationT = JobOperation>
96 CreateJobRequest& WithOperation(OperationT&& value) {
97 SetOperation(std::forward<OperationT>(value));
98 return *this;
99 }
101
103
106 inline const JobReport& GetReport() const { return m_report; }
107 inline bool ReportHasBeenSet() const { return m_reportHasBeenSet; }
108 template <typename ReportT = JobReport>
109 void SetReport(ReportT&& value) {
110 m_reportHasBeenSet = true;
111 m_report = std::forward<ReportT>(value);
112 }
113 template <typename ReportT = JobReport>
114 CreateJobRequest& WithReport(ReportT&& value) {
115 SetReport(std::forward<ReportT>(value));
116 return *this;
117 }
119
121
125 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
126 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
127 template <typename ClientRequestTokenT = Aws::String>
128 void SetClientRequestToken(ClientRequestTokenT&& value) {
129 m_clientRequestTokenHasBeenSet = true;
130 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
131 }
132 template <typename ClientRequestTokenT = Aws::String>
133 CreateJobRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
134 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
135 return *this;
136 }
138
140
143 inline const JobManifest& GetManifest() const { return m_manifest; }
144 inline bool ManifestHasBeenSet() const { return m_manifestHasBeenSet; }
145 template <typename ManifestT = JobManifest>
146 void SetManifest(ManifestT&& value) {
147 m_manifestHasBeenSet = true;
148 m_manifest = std::forward<ManifestT>(value);
149 }
150 template <typename ManifestT = JobManifest>
151 CreateJobRequest& WithManifest(ManifestT&& value) {
152 SetManifest(std::forward<ManifestT>(value));
153 return *this;
154 }
156
158
163 inline const Aws::String& GetDescription() const { return m_description; }
164 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
165 template <typename DescriptionT = Aws::String>
166 void SetDescription(DescriptionT&& value) {
167 m_descriptionHasBeenSet = true;
168 m_description = std::forward<DescriptionT>(value);
169 }
170 template <typename DescriptionT = Aws::String>
171 CreateJobRequest& WithDescription(DescriptionT&& value) {
172 SetDescription(std::forward<DescriptionT>(value));
173 return *this;
174 }
176
178
182 inline int GetPriority() const { return m_priority; }
183 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
184 inline void SetPriority(int value) {
185 m_priorityHasBeenSet = true;
186 m_priority = value;
187 }
188 inline CreateJobRequest& WithPriority(int value) {
189 SetPriority(value);
190 return *this;
191 }
193
195
200 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
201 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
202 template <typename RoleArnT = Aws::String>
203 void SetRoleArn(RoleArnT&& value) {
204 m_roleArnHasBeenSet = true;
205 m_roleArn = std::forward<RoleArnT>(value);
206 }
207 template <typename RoleArnT = Aws::String>
208 CreateJobRequest& WithRoleArn(RoleArnT&& value) {
209 SetRoleArn(std::forward<RoleArnT>(value));
210 return *this;
211 }
213
215
219 inline const Aws::Vector<S3Tag>& GetTags() const { return m_tags; }
220 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
221 template <typename TagsT = Aws::Vector<S3Tag>>
222 void SetTags(TagsT&& value) {
223 m_tagsHasBeenSet = true;
224 m_tags = std::forward<TagsT>(value);
225 }
226 template <typename TagsT = Aws::Vector<S3Tag>>
227 CreateJobRequest& WithTags(TagsT&& value) {
228 SetTags(std::forward<TagsT>(value));
229 return *this;
230 }
231 template <typename TagsT = S3Tag>
232 CreateJobRequest& AddTags(TagsT&& value) {
233 m_tagsHasBeenSet = true;
234 m_tags.emplace_back(std::forward<TagsT>(value));
235 return *this;
236 }
238
240
244 inline const JobManifestGenerator& GetManifestGenerator() const { return m_manifestGenerator; }
245 inline bool ManifestGeneratorHasBeenSet() const { return m_manifestGeneratorHasBeenSet; }
246 template <typename ManifestGeneratorT = JobManifestGenerator>
247 void SetManifestGenerator(ManifestGeneratorT&& value) {
248 m_manifestGeneratorHasBeenSet = true;
249 m_manifestGenerator = std::forward<ManifestGeneratorT>(value);
250 }
251 template <typename ManifestGeneratorT = JobManifestGenerator>
252 CreateJobRequest& WithManifestGenerator(ManifestGeneratorT&& value) {
253 SetManifestGenerator(std::forward<ManifestGeneratorT>(value));
254 return *this;
255 }
257 private:
258 Aws::String m_accountId;
259
260 bool m_confirmationRequired{false};
261
262 JobOperation m_operation;
263
264 JobReport m_report;
265
266 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
267
268 JobManifest m_manifest;
269
270 Aws::String m_description;
271
272 int m_priority{0};
273
274 Aws::String m_roleArn;
275
276 Aws::Vector<S3Tag> m_tags;
277
278 JobManifestGenerator m_manifestGenerator;
279 bool m_accountIdHasBeenSet = false;
280 bool m_confirmationRequiredHasBeenSet = false;
281 bool m_operationHasBeenSet = false;
282 bool m_reportHasBeenSet = false;
283 bool m_clientRequestTokenHasBeenSet = true;
284 bool m_manifestHasBeenSet = false;
285 bool m_descriptionHasBeenSet = false;
286 bool m_priorityHasBeenSet = false;
287 bool m_roleArnHasBeenSet = false;
288 bool m_tagsHasBeenSet = false;
289 bool m_manifestGeneratorHasBeenSet = false;
290};
291
292} // namespace Model
293} // namespace S3Control
294} // namespace Aws
CreateJobRequest & WithRoleArn(RoleArnT &&value)
CreateJobRequest & WithReport(ReportT &&value)
void SetClientRequestToken(ClientRequestTokenT &&value)
void SetDescription(DescriptionT &&value)
CreateJobRequest & WithPriority(int value)
const Aws::String & GetRoleArn() const
CreateJobRequest & WithDescription(DescriptionT &&value)
CreateJobRequest & WithConfirmationRequired(bool value)
CreateJobRequest & AddTags(TagsT &&value)
CreateJobRequest & WithAccountId(AccountIdT &&value)
CreateJobRequest & WithManifest(ManifestT &&value)
const JobManifestGenerator & GetManifestGenerator() const
void SetManifestGenerator(ManifestGeneratorT &&value)
CreateJobRequest & WithManifestGenerator(ManifestGeneratorT &&value)
const Aws::String & GetDescription() const
const JobOperation & GetOperation() const
AWS_S3CONTROL_API CreateJobRequest()=default
const JobManifest & GetManifest() const
AWS_S3CONTROL_API Aws::String SerializePayload() const override
const Aws::Vector< S3Tag > & GetTags() const
const Aws::String & GetClientRequestToken() const
const Aws::String & GetAccountId() const
virtual const char * GetServiceRequestName() const override
CreateJobRequest & WithOperation(OperationT &&value)
CreateJobRequest & WithTags(TagsT &&value)
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
CreateJobRequest & WithClientRequestToken(ClientRequestTokenT &&value)
Aws::Endpoint::EndpointParameters EndpointParameters
static Aws::Utils::UUID PseudoRandomUUID()
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