AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateJobRequest.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/s3control/S3ControlRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3control/model/JobOperation.h>
11#include <aws/s3control/model/JobReport.h>
12#include <aws/s3control/model/JobManifest.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/s3control/model/JobManifestGenerator.h>
15#include <aws/s3control/model/S3Tag.h>
16#include <utility>
17#include <aws/core/utils/UUID.h>
18
19namespace Aws
20{
21namespace S3Control
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_S3CONTROL_API CreateJobRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateJob"; }
38
39 AWS_S3CONTROL_API Aws::String SerializePayload() const override;
40
42
46 AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override;
47
49
52 inline const Aws::String& GetAccountId() const{ return m_accountId; }
53 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
54 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
55 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
56 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
57 inline CreateJobRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
58 inline CreateJobRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
59 inline CreateJobRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
61
63
68 inline bool GetConfirmationRequired() const{ return m_confirmationRequired; }
69 inline bool ConfirmationRequiredHasBeenSet() const { return m_confirmationRequiredHasBeenSet; }
70 inline void SetConfirmationRequired(bool value) { m_confirmationRequiredHasBeenSet = true; m_confirmationRequired = value; }
71 inline CreateJobRequest& WithConfirmationRequired(bool value) { SetConfirmationRequired(value); return *this;}
73
75
81 inline const JobOperation& GetOperation() const{ return m_operation; }
82 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
83 inline void SetOperation(const JobOperation& value) { m_operationHasBeenSet = true; m_operation = value; }
84 inline void SetOperation(JobOperation&& value) { m_operationHasBeenSet = true; m_operation = std::move(value); }
85 inline CreateJobRequest& WithOperation(const JobOperation& value) { SetOperation(value); return *this;}
86 inline CreateJobRequest& WithOperation(JobOperation&& value) { SetOperation(std::move(value)); return *this;}
88
90
93 inline const JobReport& GetReport() const{ return m_report; }
94 inline bool ReportHasBeenSet() const { return m_reportHasBeenSet; }
95 inline void SetReport(const JobReport& value) { m_reportHasBeenSet = true; m_report = value; }
96 inline void SetReport(JobReport&& value) { m_reportHasBeenSet = true; m_report = std::move(value); }
97 inline CreateJobRequest& WithReport(const JobReport& value) { SetReport(value); return *this;}
98 inline CreateJobRequest& WithReport(JobReport&& value) { SetReport(std::move(value)); return *this;}
100
102
106 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
107 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
108 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
109 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
110 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
111 inline CreateJobRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
112 inline CreateJobRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
113 inline CreateJobRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
115
117
120 inline const JobManifest& GetManifest() const{ return m_manifest; }
121 inline bool ManifestHasBeenSet() const { return m_manifestHasBeenSet; }
122 inline void SetManifest(const JobManifest& value) { m_manifestHasBeenSet = true; m_manifest = value; }
123 inline void SetManifest(JobManifest&& value) { m_manifestHasBeenSet = true; m_manifest = std::move(value); }
124 inline CreateJobRequest& WithManifest(const JobManifest& value) { SetManifest(value); return *this;}
125 inline CreateJobRequest& WithManifest(JobManifest&& value) { SetManifest(std::move(value)); return *this;}
127
129
134 inline const Aws::String& GetDescription() const{ return m_description; }
135 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
136 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
137 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
138 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
139 inline CreateJobRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
140 inline CreateJobRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
141 inline CreateJobRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
143
145
149 inline int GetPriority() const{ return m_priority; }
150 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
151 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
152 inline CreateJobRequest& WithPriority(int value) { SetPriority(value); return *this;}
154
156
161 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
162 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
163 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
164 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
165 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
166 inline CreateJobRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
167 inline CreateJobRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
168 inline CreateJobRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
170
172
176 inline const Aws::Vector<S3Tag>& GetTags() const{ return m_tags; }
177 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
178 inline void SetTags(const Aws::Vector<S3Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
179 inline void SetTags(Aws::Vector<S3Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
180 inline CreateJobRequest& WithTags(const Aws::Vector<S3Tag>& value) { SetTags(value); return *this;}
181 inline CreateJobRequest& WithTags(Aws::Vector<S3Tag>&& value) { SetTags(std::move(value)); return *this;}
182 inline CreateJobRequest& AddTags(const S3Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
183 inline CreateJobRequest& AddTags(S3Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
185
187
191 inline const JobManifestGenerator& GetManifestGenerator() const{ return m_manifestGenerator; }
192 inline bool ManifestGeneratorHasBeenSet() const { return m_manifestGeneratorHasBeenSet; }
193 inline void SetManifestGenerator(const JobManifestGenerator& value) { m_manifestGeneratorHasBeenSet = true; m_manifestGenerator = value; }
194 inline void SetManifestGenerator(JobManifestGenerator&& value) { m_manifestGeneratorHasBeenSet = true; m_manifestGenerator = std::move(value); }
196 inline CreateJobRequest& WithManifestGenerator(JobManifestGenerator&& value) { SetManifestGenerator(std::move(value)); return *this;}
198 private:
199
200 Aws::String m_accountId;
201 bool m_accountIdHasBeenSet = false;
202
203 bool m_confirmationRequired;
204 bool m_confirmationRequiredHasBeenSet = false;
205
206 JobOperation m_operation;
207 bool m_operationHasBeenSet = false;
208
209 JobReport m_report;
210 bool m_reportHasBeenSet = false;
211
212 Aws::String m_clientRequestToken;
213 bool m_clientRequestTokenHasBeenSet = false;
214
215 JobManifest m_manifest;
216 bool m_manifestHasBeenSet = false;
217
218 Aws::String m_description;
219 bool m_descriptionHasBeenSet = false;
220
221 int m_priority;
222 bool m_priorityHasBeenSet = false;
223
224 Aws::String m_roleArn;
225 bool m_roleArnHasBeenSet = false;
226
227 Aws::Vector<S3Tag> m_tags;
228 bool m_tagsHasBeenSet = false;
229
230 JobManifestGenerator m_manifestGenerator;
231 bool m_manifestGeneratorHasBeenSet = false;
232 };
233
234} // namespace Model
235} // namespace S3Control
236} // namespace Aws
void SetDescription(const Aws::String &value)
CreateJobRequest & WithAccountId(const Aws::String &value)
void SetTags(Aws::Vector< S3Tag > &&value)
CreateJobRequest & WithManifestGenerator(JobManifestGenerator &&value)
CreateJobRequest & WithDescription(const char *value)
void SetClientRequestToken(const Aws::String &value)
CreateJobRequest & WithPriority(int value)
const Aws::String & GetRoleArn() const
CreateJobRequest & WithClientRequestToken(const Aws::String &value)
CreateJobRequest & WithReport(JobReport &&value)
void SetAccountId(const Aws::String &value)
CreateJobRequest & WithConfirmationRequired(bool value)
void SetClientRequestToken(const char *value)
CreateJobRequest & WithOperation(JobOperation &&value)
void SetOperation(JobOperation &&value)
CreateJobRequest & WithDescription(const Aws::String &value)
CreateJobRequest & WithRoleArn(const char *value)
const JobManifestGenerator & GetManifestGenerator() const
CreateJobRequest & WithReport(const JobReport &value)
CreateJobRequest & WithRoleArn(Aws::String &&value)
CreateJobRequest & WithTags(const Aws::Vector< S3Tag > &value)
void SetRoleArn(const Aws::String &value)
const Aws::String & GetDescription() const
CreateJobRequest & WithOperation(const JobOperation &value)
void SetOperation(const JobOperation &value)
void SetClientRequestToken(Aws::String &&value)
const JobOperation & GetOperation() const
void SetManifest(const JobManifest &value)
void SetManifestGenerator(const JobManifestGenerator &value)
CreateJobRequest & AddTags(const S3Tag &value)
const JobManifest & GetManifest() const
CreateJobRequest & WithManifestGenerator(const JobManifestGenerator &value)
AWS_S3CONTROL_API Aws::String SerializePayload() const override
CreateJobRequest & WithManifest(JobManifest &&value)
CreateJobRequest & AddTags(S3Tag &&value)
const Aws::Vector< S3Tag > & GetTags() const
CreateJobRequest & WithClientRequestToken(const char *value)
const Aws::String & GetClientRequestToken() const
CreateJobRequest & WithDescription(Aws::String &&value)
const Aws::String & GetAccountId() const
virtual const char * GetServiceRequestName() const override
CreateJobRequest & WithTags(Aws::Vector< S3Tag > &&value)
void SetManifestGenerator(JobManifestGenerator &&value)
CreateJobRequest & WithAccountId(Aws::String &&value)
void SetReport(const JobReport &value)
CreateJobRequest & WithClientRequestToken(Aws::String &&value)
CreateJobRequest & WithManifest(const JobManifest &value)
CreateJobRequest & WithRoleArn(const Aws::String &value)
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
CreateJobRequest & WithAccountId(const char *value)
void SetTags(const Aws::Vector< S3Tag > &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