AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
CreateWorkloadRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/wellarchitected/WellArchitectedRequest.h>
12#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
13#include <aws/wellarchitected/model/WorkloadDiscoveryConfig.h>
14#include <aws/wellarchitected/model/WorkloadEnvironment.h>
15#include <aws/wellarchitected/model/WorkloadJiraConfigurationInput.h>
16
17#include <utility>
18
19namespace Aws {
20namespace WellArchitected {
21namespace Model {
22
29 public:
30 AWS_WELLARCHITECTED_API CreateWorkloadRequest() = default;
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 "CreateWorkload"; }
37
38 AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override;
39
41
42 inline const Aws::String& GetWorkloadName() const { return m_workloadName; }
43 inline bool WorkloadNameHasBeenSet() const { return m_workloadNameHasBeenSet; }
44 template <typename WorkloadNameT = Aws::String>
45 void SetWorkloadName(WorkloadNameT&& value) {
46 m_workloadNameHasBeenSet = true;
47 m_workloadName = std::forward<WorkloadNameT>(value);
48 }
49 template <typename WorkloadNameT = Aws::String>
50 CreateWorkloadRequest& WithWorkloadName(WorkloadNameT&& value) {
51 SetWorkloadName(std::forward<WorkloadNameT>(value));
52 return *this;
53 }
55
57
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
66 CreateWorkloadRequest& WithDescription(DescriptionT&& value) {
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
74 inline WorkloadEnvironment GetEnvironment() const { return m_environment; }
75 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
77 m_environmentHasBeenSet = true;
78 m_environment = value;
79 }
81 SetEnvironment(value);
82 return *this;
83 }
85
87
88 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
89 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
90 template <typename AccountIdsT = Aws::Vector<Aws::String>>
91 void SetAccountIds(AccountIdsT&& value) {
92 m_accountIdsHasBeenSet = true;
93 m_accountIds = std::forward<AccountIdsT>(value);
94 }
95 template <typename AccountIdsT = Aws::Vector<Aws::String>>
96 CreateWorkloadRequest& WithAccountIds(AccountIdsT&& value) {
97 SetAccountIds(std::forward<AccountIdsT>(value));
98 return *this;
99 }
100 template <typename AccountIdsT = Aws::String>
101 CreateWorkloadRequest& AddAccountIds(AccountIdsT&& value) {
102 m_accountIdsHasBeenSet = true;
103 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
104 return *this;
105 }
107
109
110 inline const Aws::Vector<Aws::String>& GetAwsRegions() const { return m_awsRegions; }
111 inline bool AwsRegionsHasBeenSet() const { return m_awsRegionsHasBeenSet; }
112 template <typename AwsRegionsT = Aws::Vector<Aws::String>>
113 void SetAwsRegions(AwsRegionsT&& value) {
114 m_awsRegionsHasBeenSet = true;
115 m_awsRegions = std::forward<AwsRegionsT>(value);
116 }
117 template <typename AwsRegionsT = Aws::Vector<Aws::String>>
118 CreateWorkloadRequest& WithAwsRegions(AwsRegionsT&& value) {
119 SetAwsRegions(std::forward<AwsRegionsT>(value));
120 return *this;
121 }
122 template <typename AwsRegionsT = Aws::String>
123 CreateWorkloadRequest& AddAwsRegions(AwsRegionsT&& value) {
124 m_awsRegionsHasBeenSet = true;
125 m_awsRegions.emplace_back(std::forward<AwsRegionsT>(value));
126 return *this;
127 }
129
131
132 inline const Aws::Vector<Aws::String>& GetNonAwsRegions() const { return m_nonAwsRegions; }
133 inline bool NonAwsRegionsHasBeenSet() const { return m_nonAwsRegionsHasBeenSet; }
134 template <typename NonAwsRegionsT = Aws::Vector<Aws::String>>
135 void SetNonAwsRegions(NonAwsRegionsT&& value) {
136 m_nonAwsRegionsHasBeenSet = true;
137 m_nonAwsRegions = std::forward<NonAwsRegionsT>(value);
138 }
139 template <typename NonAwsRegionsT = Aws::Vector<Aws::String>>
140 CreateWorkloadRequest& WithNonAwsRegions(NonAwsRegionsT&& value) {
141 SetNonAwsRegions(std::forward<NonAwsRegionsT>(value));
142 return *this;
143 }
144 template <typename NonAwsRegionsT = Aws::String>
145 CreateWorkloadRequest& AddNonAwsRegions(NonAwsRegionsT&& value) {
146 m_nonAwsRegionsHasBeenSet = true;
147 m_nonAwsRegions.emplace_back(std::forward<NonAwsRegionsT>(value));
148 return *this;
149 }
151
153
154 inline const Aws::Vector<Aws::String>& GetPillarPriorities() const { return m_pillarPriorities; }
155 inline bool PillarPrioritiesHasBeenSet() const { return m_pillarPrioritiesHasBeenSet; }
156 template <typename PillarPrioritiesT = Aws::Vector<Aws::String>>
157 void SetPillarPriorities(PillarPrioritiesT&& value) {
158 m_pillarPrioritiesHasBeenSet = true;
159 m_pillarPriorities = std::forward<PillarPrioritiesT>(value);
160 }
161 template <typename PillarPrioritiesT = Aws::Vector<Aws::String>>
162 CreateWorkloadRequest& WithPillarPriorities(PillarPrioritiesT&& value) {
163 SetPillarPriorities(std::forward<PillarPrioritiesT>(value));
164 return *this;
165 }
166 template <typename PillarPrioritiesT = Aws::String>
167 CreateWorkloadRequest& AddPillarPriorities(PillarPrioritiesT&& value) {
168 m_pillarPrioritiesHasBeenSet = true;
169 m_pillarPriorities.emplace_back(std::forward<PillarPrioritiesT>(value));
170 return *this;
171 }
173
175
176 inline const Aws::String& GetArchitecturalDesign() const { return m_architecturalDesign; }
177 inline bool ArchitecturalDesignHasBeenSet() const { return m_architecturalDesignHasBeenSet; }
178 template <typename ArchitecturalDesignT = Aws::String>
179 void SetArchitecturalDesign(ArchitecturalDesignT&& value) {
180 m_architecturalDesignHasBeenSet = true;
181 m_architecturalDesign = std::forward<ArchitecturalDesignT>(value);
182 }
183 template <typename ArchitecturalDesignT = Aws::String>
184 CreateWorkloadRequest& WithArchitecturalDesign(ArchitecturalDesignT&& value) {
185 SetArchitecturalDesign(std::forward<ArchitecturalDesignT>(value));
186 return *this;
187 }
189
191
192 inline const Aws::String& GetReviewOwner() const { return m_reviewOwner; }
193 inline bool ReviewOwnerHasBeenSet() const { return m_reviewOwnerHasBeenSet; }
194 template <typename ReviewOwnerT = Aws::String>
195 void SetReviewOwner(ReviewOwnerT&& value) {
196 m_reviewOwnerHasBeenSet = true;
197 m_reviewOwner = std::forward<ReviewOwnerT>(value);
198 }
199 template <typename ReviewOwnerT = Aws::String>
200 CreateWorkloadRequest& WithReviewOwner(ReviewOwnerT&& value) {
201 SetReviewOwner(std::forward<ReviewOwnerT>(value));
202 return *this;
203 }
205
207
208 inline const Aws::String& GetIndustryType() const { return m_industryType; }
209 inline bool IndustryTypeHasBeenSet() const { return m_industryTypeHasBeenSet; }
210 template <typename IndustryTypeT = Aws::String>
211 void SetIndustryType(IndustryTypeT&& value) {
212 m_industryTypeHasBeenSet = true;
213 m_industryType = std::forward<IndustryTypeT>(value);
214 }
215 template <typename IndustryTypeT = Aws::String>
216 CreateWorkloadRequest& WithIndustryType(IndustryTypeT&& value) {
217 SetIndustryType(std::forward<IndustryTypeT>(value));
218 return *this;
219 }
221
223
224 inline const Aws::String& GetIndustry() const { return m_industry; }
225 inline bool IndustryHasBeenSet() const { return m_industryHasBeenSet; }
226 template <typename IndustryT = Aws::String>
227 void SetIndustry(IndustryT&& value) {
228 m_industryHasBeenSet = true;
229 m_industry = std::forward<IndustryT>(value);
230 }
231 template <typename IndustryT = Aws::String>
233 SetIndustry(std::forward<IndustryT>(value));
234 return *this;
235 }
237
239
240 inline const Aws::Vector<Aws::String>& GetLenses() const { return m_lenses; }
241 inline bool LensesHasBeenSet() const { return m_lensesHasBeenSet; }
242 template <typename LensesT = Aws::Vector<Aws::String>>
243 void SetLenses(LensesT&& value) {
244 m_lensesHasBeenSet = true;
245 m_lenses = std::forward<LensesT>(value);
246 }
247 template <typename LensesT = Aws::Vector<Aws::String>>
249 SetLenses(std::forward<LensesT>(value));
250 return *this;
251 }
252 template <typename LensesT = Aws::String>
254 m_lensesHasBeenSet = true;
255 m_lenses.emplace_back(std::forward<LensesT>(value));
256 return *this;
257 }
259
261
262 inline const Aws::String& GetNotes() const { return m_notes; }
263 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
264 template <typename NotesT = Aws::String>
265 void SetNotes(NotesT&& value) {
266 m_notesHasBeenSet = true;
267 m_notes = std::forward<NotesT>(value);
268 }
269 template <typename NotesT = Aws::String>
271 SetNotes(std::forward<NotesT>(value));
272 return *this;
273 }
275
277
278 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
279 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
280 template <typename ClientRequestTokenT = Aws::String>
281 void SetClientRequestToken(ClientRequestTokenT&& value) {
282 m_clientRequestTokenHasBeenSet = true;
283 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
284 }
285 template <typename ClientRequestTokenT = Aws::String>
286 CreateWorkloadRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
287 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
288 return *this;
289 }
291
293
296 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
297 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
298 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
299 void SetTags(TagsT&& value) {
300 m_tagsHasBeenSet = true;
301 m_tags = std::forward<TagsT>(value);
302 }
303 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
305 SetTags(std::forward<TagsT>(value));
306 return *this;
307 }
308 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
309 CreateWorkloadRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
310 m_tagsHasBeenSet = true;
311 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
312 return *this;
313 }
315
317
321 inline const WorkloadDiscoveryConfig& GetDiscoveryConfig() const { return m_discoveryConfig; }
322 inline bool DiscoveryConfigHasBeenSet() const { return m_discoveryConfigHasBeenSet; }
323 template <typename DiscoveryConfigT = WorkloadDiscoveryConfig>
324 void SetDiscoveryConfig(DiscoveryConfigT&& value) {
325 m_discoveryConfigHasBeenSet = true;
326 m_discoveryConfig = std::forward<DiscoveryConfigT>(value);
327 }
328 template <typename DiscoveryConfigT = WorkloadDiscoveryConfig>
329 CreateWorkloadRequest& WithDiscoveryConfig(DiscoveryConfigT&& value) {
330 SetDiscoveryConfig(std::forward<DiscoveryConfigT>(value));
331 return *this;
332 }
334
336
339 inline const Aws::Vector<Aws::String>& GetApplications() const { return m_applications; }
340 inline bool ApplicationsHasBeenSet() const { return m_applicationsHasBeenSet; }
341 template <typename ApplicationsT = Aws::Vector<Aws::String>>
342 void SetApplications(ApplicationsT&& value) {
343 m_applicationsHasBeenSet = true;
344 m_applications = std::forward<ApplicationsT>(value);
345 }
346 template <typename ApplicationsT = Aws::Vector<Aws::String>>
347 CreateWorkloadRequest& WithApplications(ApplicationsT&& value) {
348 SetApplications(std::forward<ApplicationsT>(value));
349 return *this;
350 }
351 template <typename ApplicationsT = Aws::String>
352 CreateWorkloadRequest& AddApplications(ApplicationsT&& value) {
353 m_applicationsHasBeenSet = true;
354 m_applications.emplace_back(std::forward<ApplicationsT>(value));
355 return *this;
356 }
358
360
363 inline const Aws::Vector<Aws::String>& GetProfileArns() const { return m_profileArns; }
364 inline bool ProfileArnsHasBeenSet() const { return m_profileArnsHasBeenSet; }
365 template <typename ProfileArnsT = Aws::Vector<Aws::String>>
366 void SetProfileArns(ProfileArnsT&& value) {
367 m_profileArnsHasBeenSet = true;
368 m_profileArns = std::forward<ProfileArnsT>(value);
369 }
370 template <typename ProfileArnsT = Aws::Vector<Aws::String>>
371 CreateWorkloadRequest& WithProfileArns(ProfileArnsT&& value) {
372 SetProfileArns(std::forward<ProfileArnsT>(value));
373 return *this;
374 }
375 template <typename ProfileArnsT = Aws::String>
376 CreateWorkloadRequest& AddProfileArns(ProfileArnsT&& value) {
377 m_profileArnsHasBeenSet = true;
378 m_profileArns.emplace_back(std::forward<ProfileArnsT>(value));
379 return *this;
380 }
382
384
387 inline const Aws::Vector<Aws::String>& GetReviewTemplateArns() const { return m_reviewTemplateArns; }
388 inline bool ReviewTemplateArnsHasBeenSet() const { return m_reviewTemplateArnsHasBeenSet; }
389 template <typename ReviewTemplateArnsT = Aws::Vector<Aws::String>>
390 void SetReviewTemplateArns(ReviewTemplateArnsT&& value) {
391 m_reviewTemplateArnsHasBeenSet = true;
392 m_reviewTemplateArns = std::forward<ReviewTemplateArnsT>(value);
393 }
394 template <typename ReviewTemplateArnsT = Aws::Vector<Aws::String>>
395 CreateWorkloadRequest& WithReviewTemplateArns(ReviewTemplateArnsT&& value) {
396 SetReviewTemplateArns(std::forward<ReviewTemplateArnsT>(value));
397 return *this;
398 }
399 template <typename ReviewTemplateArnsT = Aws::String>
400 CreateWorkloadRequest& AddReviewTemplateArns(ReviewTemplateArnsT&& value) {
401 m_reviewTemplateArnsHasBeenSet = true;
402 m_reviewTemplateArns.emplace_back(std::forward<ReviewTemplateArnsT>(value));
403 return *this;
404 }
406
408
411 inline const WorkloadJiraConfigurationInput& GetJiraConfiguration() const { return m_jiraConfiguration; }
412 inline bool JiraConfigurationHasBeenSet() const { return m_jiraConfigurationHasBeenSet; }
413 template <typename JiraConfigurationT = WorkloadJiraConfigurationInput>
414 void SetJiraConfiguration(JiraConfigurationT&& value) {
415 m_jiraConfigurationHasBeenSet = true;
416 m_jiraConfiguration = std::forward<JiraConfigurationT>(value);
417 }
418 template <typename JiraConfigurationT = WorkloadJiraConfigurationInput>
419 CreateWorkloadRequest& WithJiraConfiguration(JiraConfigurationT&& value) {
420 SetJiraConfiguration(std::forward<JiraConfigurationT>(value));
421 return *this;
422 }
424 private:
425 Aws::String m_workloadName;
426
427 Aws::String m_description;
428
430
431 Aws::Vector<Aws::String> m_accountIds;
432
433 Aws::Vector<Aws::String> m_awsRegions;
434
435 Aws::Vector<Aws::String> m_nonAwsRegions;
436
437 Aws::Vector<Aws::String> m_pillarPriorities;
438
439 Aws::String m_architecturalDesign;
440
441 Aws::String m_reviewOwner;
442
443 Aws::String m_industryType;
444
445 Aws::String m_industry;
446
448
449 Aws::String m_notes;
450
451 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
452
454
455 WorkloadDiscoveryConfig m_discoveryConfig;
456
457 Aws::Vector<Aws::String> m_applications;
458
459 Aws::Vector<Aws::String> m_profileArns;
460
461 Aws::Vector<Aws::String> m_reviewTemplateArns;
462
463 WorkloadJiraConfigurationInput m_jiraConfiguration;
464 bool m_workloadNameHasBeenSet = false;
465 bool m_descriptionHasBeenSet = false;
466 bool m_environmentHasBeenSet = false;
467 bool m_accountIdsHasBeenSet = false;
468 bool m_awsRegionsHasBeenSet = false;
469 bool m_nonAwsRegionsHasBeenSet = false;
470 bool m_pillarPrioritiesHasBeenSet = false;
471 bool m_architecturalDesignHasBeenSet = false;
472 bool m_reviewOwnerHasBeenSet = false;
473 bool m_industryTypeHasBeenSet = false;
474 bool m_industryHasBeenSet = false;
475 bool m_lensesHasBeenSet = false;
476 bool m_notesHasBeenSet = false;
477 bool m_clientRequestTokenHasBeenSet = true;
478 bool m_tagsHasBeenSet = false;
479 bool m_discoveryConfigHasBeenSet = false;
480 bool m_applicationsHasBeenSet = false;
481 bool m_profileArnsHasBeenSet = false;
482 bool m_reviewTemplateArnsHasBeenSet = false;
483 bool m_jiraConfigurationHasBeenSet = false;
484};
485
486} // namespace Model
487} // namespace WellArchitected
488} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateWorkloadRequest & AddProfileArns(ProfileArnsT &&value)
CreateWorkloadRequest & WithLenses(LensesT &&value)
virtual const char * GetServiceRequestName() const override
CreateWorkloadRequest & AddApplications(ApplicationsT &&value)
const WorkloadDiscoveryConfig & GetDiscoveryConfig() const
CreateWorkloadRequest & AddNonAwsRegions(NonAwsRegionsT &&value)
const Aws::Vector< Aws::String > & GetPillarPriorities() const
CreateWorkloadRequest & WithReviewOwner(ReviewOwnerT &&value)
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetAwsRegions() const
void SetArchitecturalDesign(ArchitecturalDesignT &&value)
CreateWorkloadRequest & WithEnvironment(WorkloadEnvironment value)
CreateWorkloadRequest & WithClientRequestToken(ClientRequestTokenT &&value)
CreateWorkloadRequest & WithDiscoveryConfig(DiscoveryConfigT &&value)
CreateWorkloadRequest & WithJiraConfiguration(JiraConfigurationT &&value)
CreateWorkloadRequest & AddReviewTemplateArns(ReviewTemplateArnsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateWorkloadRequest & AddPillarPriorities(PillarPrioritiesT &&value)
CreateWorkloadRequest & WithIndustry(IndustryT &&value)
CreateWorkloadRequest & AddLenses(LensesT &&value)
CreateWorkloadRequest & WithWorkloadName(WorkloadNameT &&value)
const WorkloadJiraConfigurationInput & GetJiraConfiguration() const
CreateWorkloadRequest & WithTags(TagsT &&value)
CreateWorkloadRequest & WithAwsRegions(AwsRegionsT &&value)
CreateWorkloadRequest & WithAccountIds(AccountIdsT &&value)
CreateWorkloadRequest & WithPillarPriorities(PillarPrioritiesT &&value)
const Aws::Vector< Aws::String > & GetAccountIds() const
AWS_WELLARCHITECTED_API CreateWorkloadRequest()=default
CreateWorkloadRequest & WithProfileArns(ProfileArnsT &&value)
CreateWorkloadRequest & WithNonAwsRegions(NonAwsRegionsT &&value)
CreateWorkloadRequest & WithNotes(NotesT &&value)
const Aws::Vector< Aws::String > & GetNonAwsRegions() const
const Aws::Vector< Aws::String > & GetReviewTemplateArns() const
CreateWorkloadRequest & WithIndustryType(IndustryTypeT &&value)
CreateWorkloadRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateWorkloadRequest & AddAccountIds(AccountIdsT &&value)
const Aws::Vector< Aws::String > & GetApplications() const
CreateWorkloadRequest & WithArchitecturalDesign(ArchitecturalDesignT &&value)
CreateWorkloadRequest & AddAwsRegions(AwsRegionsT &&value)
CreateWorkloadRequest & WithApplications(ApplicationsT &&value)
const Aws::Vector< Aws::String > & GetLenses() const
const Aws::Vector< Aws::String > & GetProfileArns() const
CreateWorkloadRequest & WithReviewTemplateArns(ReviewTemplateArnsT &&value)
CreateWorkloadRequest & WithDescription(DescriptionT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector