AWS SDK for C++  1.8.182
AWS SDK for C++
CreateJobRequest.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 #include <aws/core/utils/UUID.h>
17 
18 namespace Aws
19 {
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 "CreateJob"; }
37 
38  Aws::String SerializePayload() const override;
39 
41 
42 
46  inline const Aws::String& GetAccountId() const{ return m_accountId; }
47 
51  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
52 
56  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
57 
61  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
62 
66  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
67 
71  inline CreateJobRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
72 
76  inline CreateJobRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
77 
81  inline CreateJobRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
82 
83 
89  inline bool GetConfirmationRequired() const{ return m_confirmationRequired; }
90 
96  inline bool ConfirmationRequiredHasBeenSet() const { return m_confirmationRequiredHasBeenSet; }
97 
103  inline void SetConfirmationRequired(bool value) { m_confirmationRequiredHasBeenSet = true; m_confirmationRequired = value; }
104 
110  inline CreateJobRequest& WithConfirmationRequired(bool value) { SetConfirmationRequired(value); return *this;}
111 
112 
119  inline const JobOperation& GetOperation() const{ return m_operation; }
120 
127  inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
128 
135  inline void SetOperation(const JobOperation& value) { m_operationHasBeenSet = true; m_operation = value; }
136 
143  inline void SetOperation(JobOperation&& value) { m_operationHasBeenSet = true; m_operation = std::move(value); }
144 
151  inline CreateJobRequest& WithOperation(const JobOperation& value) { SetOperation(value); return *this;}
152 
159  inline CreateJobRequest& WithOperation(JobOperation&& value) { SetOperation(std::move(value)); return *this;}
160 
161 
165  inline const JobReport& GetReport() const{ return m_report; }
166 
170  inline bool ReportHasBeenSet() const { return m_reportHasBeenSet; }
171 
175  inline void SetReport(const JobReport& value) { m_reportHasBeenSet = true; m_report = value; }
176 
180  inline void SetReport(JobReport&& value) { m_reportHasBeenSet = true; m_report = std::move(value); }
181 
185  inline CreateJobRequest& WithReport(const JobReport& value) { SetReport(value); return *this;}
186 
190  inline CreateJobRequest& WithReport(JobReport&& value) { SetReport(std::move(value)); return *this;}
191 
192 
197  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
198 
203  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
204 
209  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
210 
215  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
216 
221  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
222 
227  inline CreateJobRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
228 
233  inline CreateJobRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
234 
239  inline CreateJobRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
240 
241 
245  inline const JobManifest& GetManifest() const{ return m_manifest; }
246 
250  inline bool ManifestHasBeenSet() const { return m_manifestHasBeenSet; }
251 
255  inline void SetManifest(const JobManifest& value) { m_manifestHasBeenSet = true; m_manifest = value; }
256 
260  inline void SetManifest(JobManifest&& value) { m_manifestHasBeenSet = true; m_manifest = std::move(value); }
261 
265  inline CreateJobRequest& WithManifest(const JobManifest& value) { SetManifest(value); return *this;}
266 
270  inline CreateJobRequest& WithManifest(JobManifest&& value) { SetManifest(std::move(value)); return *this;}
271 
272 
278  inline const Aws::String& GetDescription() const{ return m_description; }
279 
285  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
286 
292  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
293 
299  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
300 
306  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
307 
313  inline CreateJobRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
314 
320  inline CreateJobRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
321 
327  inline CreateJobRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
328 
329 
334  inline int GetPriority() const{ return m_priority; }
335 
340  inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
341 
346  inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
347 
352  inline CreateJobRequest& WithPriority(int value) { SetPriority(value); return *this;}
353 
354 
360  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
361 
367  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
368 
374  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
375 
381  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
382 
388  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
389 
395  inline CreateJobRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
396 
402  inline CreateJobRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
403 
409  inline CreateJobRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
410 
411 
416  inline const Aws::Vector<S3Tag>& GetTags() const{ return m_tags; }
417 
422  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
423 
428  inline void SetTags(const Aws::Vector<S3Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
429 
434  inline void SetTags(Aws::Vector<S3Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
435 
440  inline CreateJobRequest& WithTags(const Aws::Vector<S3Tag>& value) { SetTags(value); return *this;}
441 
446  inline CreateJobRequest& WithTags(Aws::Vector<S3Tag>&& value) { SetTags(std::move(value)); return *this;}
447 
452  inline CreateJobRequest& AddTags(const S3Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
453 
458  inline CreateJobRequest& AddTags(S3Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
459 
460  private:
461 
462  Aws::String m_accountId;
463  bool m_accountIdHasBeenSet;
464 
465  bool m_confirmationRequired;
466  bool m_confirmationRequiredHasBeenSet;
467 
468  JobOperation m_operation;
469  bool m_operationHasBeenSet;
470 
471  JobReport m_report;
472  bool m_reportHasBeenSet;
473 
474  Aws::String m_clientRequestToken;
475  bool m_clientRequestTokenHasBeenSet;
476 
477  JobManifest m_manifest;
478  bool m_manifestHasBeenSet;
479 
480  Aws::String m_description;
481  bool m_descriptionHasBeenSet;
482 
483  int m_priority;
484  bool m_priorityHasBeenSet;
485 
486  Aws::String m_roleArn;
487  bool m_roleArnHasBeenSet;
488 
489  Aws::Vector<S3Tag> m_tags;
490  bool m_tagsHasBeenSet;
491  };
492 
493 } // namespace Model
494 } // namespace S3Control
495 } // namespace Aws
Aws::S3Control::Model::CreateJobRequest::GetManifest
const JobManifest & GetManifest() const
Definition: CreateJobRequest.h:245
Aws::S3Control::Model::CreateJobRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateJobRequest.h:278
Aws::S3Control::Model::CreateJobRequest::GetPriority
int GetPriority() const
Definition: CreateJobRequest.h:334
Aws::S3Control::Model::CreateJobRequest::ManifestHasBeenSet
bool ManifestHasBeenSet() const
Definition: CreateJobRequest.h:250
Aws::S3Control::Model::CreateJobRequest
Definition: CreateJobRequest.h:28
Aws::S3Control::Model::CreateJobRequest::SetRoleArn
void SetRoleArn(const char *value)
Definition: CreateJobRequest.h:388
Aws::S3Control::S3ControlRequest
Definition: S3ControlRequest.h:17
Aws::S3Control::Model::CreateJobRequest::OperationHasBeenSet
bool OperationHasBeenSet() const
Definition: CreateJobRequest.h:127
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::S3Control::Model::CreateJobRequest::SetTags
void SetTags(Aws::Vector< S3Tag > &&value)
Definition: CreateJobRequest.h:434
Aws::S3Control::Model::CreateJobRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: CreateJobRequest.h:46
Aws::S3Control::Model::CreateJobRequest::WithAccountId
CreateJobRequest & WithAccountId(const char *value)
Definition: CreateJobRequest.h:81
JobOperation.h
Aws::S3Control::Model::CreateJobRequest::WithDescription
CreateJobRequest & WithDescription(const char *value)
Definition: CreateJobRequest.h:327
Aws::S3Control::Model::CreateJobRequest::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: CreateJobRequest.h:374
Aws::S3Control::Model::CreateJobRequest::WithRoleArn
CreateJobRequest & WithRoleArn(const char *value)
Definition: CreateJobRequest.h:409
Aws::S3Control::Model::CreateJobRequest::WithReport
CreateJobRequest & WithReport(JobReport &&value)
Definition: CreateJobRequest.h:190
Aws::S3Control::Model::CreateJobRequest::ReportHasBeenSet
bool ReportHasBeenSet() const
Definition: CreateJobRequest.h:170
Aws::S3Control::Model::CreateJobRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: CreateJobRequest.h:203
Aws::S3Control::Model::CreateJobRequest::SetReport
void SetReport(const JobReport &value)
Definition: CreateJobRequest.h:175
Aws::S3Control::Model::CreateJobRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::S3Control::Model::CreateJobRequest::WithConfirmationRequired
CreateJobRequest & WithConfirmationRequired(bool value)
Definition: CreateJobRequest.h:110
Aws::S3Control::Model::CreateJobRequest::WithOperation
CreateJobRequest & WithOperation(JobOperation &&value)
Definition: CreateJobRequest.h:159
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::S3Control::Model::CreateJobRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: CreateJobRequest.h:197
Aws::S3Control::Model::CreateJobRequest::SetOperation
void SetOperation(const JobOperation &value)
Definition: CreateJobRequest.h:135
Aws::S3Control::Model::CreateJobRequest::WithRoleArn
CreateJobRequest & WithRoleArn(const Aws::String &value)
Definition: CreateJobRequest.h:395
Aws::S3Control::Model::CreateJobRequest::AddTags
CreateJobRequest & AddTags(const S3Tag &value)
Definition: CreateJobRequest.h:452
AWSVector.h
Aws::S3Control::Model::CreateJobRequest::GetTags
const Aws::Vector< S3Tag > & GetTags() const
Definition: CreateJobRequest.h:416
Aws::S3Control::Model::CreateJobRequest::ConfirmationRequiredHasBeenSet
bool ConfirmationRequiredHasBeenSet() const
Definition: CreateJobRequest.h:96
Aws::S3Control::Model::CreateJobRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateJobRequest.h:306
Aws::S3Control::Model::JobOperation
Definition: JobOperation.h:42
Aws::S3Control::Model::CreateJobRequest::SetOperation
void SetOperation(JobOperation &&value)
Definition: CreateJobRequest.h:143
S3Control_EXPORTS.h
Aws::S3Control::Model::JobReport
Definition: JobReport.h:34
Aws::S3Control::Model::CreateJobRequest::CreateJobRequest
CreateJobRequest()
S3Tag.h
Aws::S3Control::Model::CreateJobRequest::SetAccountId
void SetAccountId(const char *value)
Definition: CreateJobRequest.h:66
Aws::S3Control::Model::CreateJobRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateJobRequest.h:422
Aws::S3Control::Model::CreateJobRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateJobRequest.h:285
Aws::S3Control::Model::CreateJobRequest::SetManifest
void SetManifest(JobManifest &&value)
Definition: CreateJobRequest.h:260
Aws::S3Control::Model::CreateJobRequest::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: CreateJobRequest.h:367
Aws::S3Control::Model::CreateJobRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: CreateJobRequest.h:215
Aws::S3Control::Model::CreateJobRequest::AddTags
CreateJobRequest & AddTags(S3Tag &&value)
Definition: CreateJobRequest.h:458
Aws::S3Control::Model::CreateJobRequest::WithRoleArn
CreateJobRequest & WithRoleArn(Aws::String &&value)
Definition: CreateJobRequest.h:402
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::CreateJobRequest::WithPriority
CreateJobRequest & WithPriority(int value)
Definition: CreateJobRequest.h:352
Aws::S3Control::Model::CreateJobRequest::WithReport
CreateJobRequest & WithReport(const JobReport &value)
Definition: CreateJobRequest.h:185
Aws::S3Control::Model::CreateJobRequest::WithClientRequestToken
CreateJobRequest & WithClientRequestToken(Aws::String &&value)
Definition: CreateJobRequest.h:233
Aws::S3Control::Model::CreateJobRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateJobRequest.h:36
Aws::S3Control::Model::CreateJobRequest::WithDescription
CreateJobRequest & WithDescription(const Aws::String &value)
Definition: CreateJobRequest.h:313
Aws::S3Control::Model::CreateJobRequest::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: CreateJobRequest.h:381
Aws::S3Control::Model::CreateJobRequest::SetTags
void SetTags(const Aws::Vector< S3Tag > &value)
Definition: CreateJobRequest.h:428
AWSString.h
Aws::S3Control::Model::CreateJobRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateJobRequest.h:292
Aws::S3Control::Model::S3Tag
Definition: S3Tag.h:31
Aws::S3Control::Model::CreateJobRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::S3Control::Model::CreateJobRequest::WithClientRequestToken
CreateJobRequest & WithClientRequestToken(const char *value)
Definition: CreateJobRequest.h:239
Aws::S3Control::Model::CreateJobRequest::WithDescription
CreateJobRequest & WithDescription(Aws::String &&value)
Definition: CreateJobRequest.h:320
Aws::S3Control::Model::CreateJobRequest::SetConfirmationRequired
void SetConfirmationRequired(bool value)
Definition: CreateJobRequest.h:103
Aws::S3Control::Model::CreateJobRequest::WithManifest
CreateJobRequest & WithManifest(JobManifest &&value)
Definition: CreateJobRequest.h:270
Aws::S3Control::Model::CreateJobRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: CreateJobRequest.h:209
Aws::S3Control::Model::CreateJobRequest::GetOperation
const JobOperation & GetOperation() const
Definition: CreateJobRequest.h:119
Aws::S3Control::Model::CreateJobRequest::WithManifest
CreateJobRequest & WithManifest(const JobManifest &value)
Definition: CreateJobRequest.h:265
Aws::S3Control::Model::CreateJobRequest::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: CreateJobRequest.h:360
Aws::S3Control::Model::CreateJobRequest::PriorityHasBeenSet
bool PriorityHasBeenSet() const
Definition: CreateJobRequest.h:340
Aws::S3Control::Model::CreateJobRequest::WithTags
CreateJobRequest & WithTags(const Aws::Vector< S3Tag > &value)
Definition: CreateJobRequest.h:440
Aws::S3Control::Model::CreateJobRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateJobRequest.h:299
Aws::S3Control::Model::CreateJobRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: CreateJobRequest.h:56
Aws::S3Control::Model::CreateJobRequest::WithClientRequestToken
CreateJobRequest & WithClientRequestToken(const Aws::String &value)
Definition: CreateJobRequest.h:227
Aws::S3Control::Model::CreateJobRequest::WithOperation
CreateJobRequest & WithOperation(const JobOperation &value)
Definition: CreateJobRequest.h:151
JobManifest.h
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::CreateJobRequest::SetPriority
void SetPriority(int value)
Definition: CreateJobRequest.h:346
Aws::S3Control::Model::CreateJobRequest::SetManifest
void SetManifest(const JobManifest &value)
Definition: CreateJobRequest.h:255
Aws::S3Control::Model::CreateJobRequest::GetConfirmationRequired
bool GetConfirmationRequired() const
Definition: CreateJobRequest.h:89
Aws::S3Control::Model::CreateJobRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: CreateJobRequest.h:51
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
S3ControlRequest.h
Aws::S3Control::Model::CreateJobRequest::WithTags
CreateJobRequest & WithTags(Aws::Vector< S3Tag > &&value)
Definition: CreateJobRequest.h:446
Aws::S3Control::Model::CreateJobRequest::SetReport
void SetReport(JobReport &&value)
Definition: CreateJobRequest.h:180
Aws::S3Control::Model::CreateJobRequest::WithAccountId
CreateJobRequest & WithAccountId(const Aws::String &value)
Definition: CreateJobRequest.h:71
Aws::S3Control::Model::CreateJobRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: CreateJobRequest.h:221
Aws::S3Control::Model::CreateJobRequest::WithAccountId
CreateJobRequest & WithAccountId(Aws::String &&value)
Definition: CreateJobRequest.h:76
UUID.h
Aws::S3Control::Model::CreateJobRequest::GetReport
const JobReport & GetReport() const
Definition: CreateJobRequest.h:165
Aws::S3Control::Model::JobManifest
Definition: JobManifest.h:33
JobReport.h
Aws::S3Control::Model::CreateJobRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: CreateJobRequest.h:61