AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateWorkloadRequest.h
1
6#pragma once
7#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
8#include <aws/wellarchitected/WellArchitectedRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/wellarchitected/model/WorkloadEnvironment.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/wellarchitected/model/WorkloadDiscoveryConfig.h>
14#include <aws/wellarchitected/model/WorkloadJiraConfigurationInput.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace WellArchitected
21{
22namespace Model
23{
24
31 {
32 public:
33 AWS_WELLARCHITECTED_API CreateWorkloadRequest() = default;
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "CreateWorkload"; }
40
41 AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override;
42
43
45
46 inline const Aws::String& GetWorkloadName() const { return m_workloadName; }
47 inline bool WorkloadNameHasBeenSet() const { return m_workloadNameHasBeenSet; }
48 template<typename WorkloadNameT = Aws::String>
49 void SetWorkloadName(WorkloadNameT&& value) { m_workloadNameHasBeenSet = true; m_workloadName = std::forward<WorkloadNameT>(value); }
50 template<typename WorkloadNameT = Aws::String>
51 CreateWorkloadRequest& WithWorkloadName(WorkloadNameT&& value) { SetWorkloadName(std::forward<WorkloadNameT>(value)); return *this;}
53
55
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template<typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
60 template<typename DescriptionT = Aws::String>
61 CreateWorkloadRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
63
65
66 inline WorkloadEnvironment GetEnvironment() const { return m_environment; }
67 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
68 inline void SetEnvironment(WorkloadEnvironment value) { m_environmentHasBeenSet = true; m_environment = value; }
71
73
74 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
75 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
76 template<typename AccountIdsT = Aws::Vector<Aws::String>>
77 void SetAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::forward<AccountIdsT>(value); }
78 template<typename AccountIdsT = Aws::Vector<Aws::String>>
79 CreateWorkloadRequest& WithAccountIds(AccountIdsT&& value) { SetAccountIds(std::forward<AccountIdsT>(value)); return *this;}
80 template<typename AccountIdsT = Aws::String>
81 CreateWorkloadRequest& AddAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds.emplace_back(std::forward<AccountIdsT>(value)); return *this; }
83
85
86 inline const Aws::Vector<Aws::String>& GetAwsRegions() const { return m_awsRegions; }
87 inline bool AwsRegionsHasBeenSet() const { return m_awsRegionsHasBeenSet; }
88 template<typename AwsRegionsT = Aws::Vector<Aws::String>>
89 void SetAwsRegions(AwsRegionsT&& value) { m_awsRegionsHasBeenSet = true; m_awsRegions = std::forward<AwsRegionsT>(value); }
90 template<typename AwsRegionsT = Aws::Vector<Aws::String>>
91 CreateWorkloadRequest& WithAwsRegions(AwsRegionsT&& value) { SetAwsRegions(std::forward<AwsRegionsT>(value)); return *this;}
92 template<typename AwsRegionsT = Aws::String>
93 CreateWorkloadRequest& AddAwsRegions(AwsRegionsT&& value) { m_awsRegionsHasBeenSet = true; m_awsRegions.emplace_back(std::forward<AwsRegionsT>(value)); return *this; }
95
97
98 inline const Aws::Vector<Aws::String>& GetNonAwsRegions() const { return m_nonAwsRegions; }
99 inline bool NonAwsRegionsHasBeenSet() const { return m_nonAwsRegionsHasBeenSet; }
100 template<typename NonAwsRegionsT = Aws::Vector<Aws::String>>
101 void SetNonAwsRegions(NonAwsRegionsT&& value) { m_nonAwsRegionsHasBeenSet = true; m_nonAwsRegions = std::forward<NonAwsRegionsT>(value); }
102 template<typename NonAwsRegionsT = Aws::Vector<Aws::String>>
103 CreateWorkloadRequest& WithNonAwsRegions(NonAwsRegionsT&& value) { SetNonAwsRegions(std::forward<NonAwsRegionsT>(value)); return *this;}
104 template<typename NonAwsRegionsT = Aws::String>
105 CreateWorkloadRequest& AddNonAwsRegions(NonAwsRegionsT&& value) { m_nonAwsRegionsHasBeenSet = true; m_nonAwsRegions.emplace_back(std::forward<NonAwsRegionsT>(value)); return *this; }
107
109
110 inline const Aws::Vector<Aws::String>& GetPillarPriorities() const { return m_pillarPriorities; }
111 inline bool PillarPrioritiesHasBeenSet() const { return m_pillarPrioritiesHasBeenSet; }
112 template<typename PillarPrioritiesT = Aws::Vector<Aws::String>>
113 void SetPillarPriorities(PillarPrioritiesT&& value) { m_pillarPrioritiesHasBeenSet = true; m_pillarPriorities = std::forward<PillarPrioritiesT>(value); }
114 template<typename PillarPrioritiesT = Aws::Vector<Aws::String>>
115 CreateWorkloadRequest& WithPillarPriorities(PillarPrioritiesT&& value) { SetPillarPriorities(std::forward<PillarPrioritiesT>(value)); return *this;}
116 template<typename PillarPrioritiesT = Aws::String>
117 CreateWorkloadRequest& AddPillarPriorities(PillarPrioritiesT&& value) { m_pillarPrioritiesHasBeenSet = true; m_pillarPriorities.emplace_back(std::forward<PillarPrioritiesT>(value)); return *this; }
119
121
122 inline const Aws::String& GetArchitecturalDesign() const { return m_architecturalDesign; }
123 inline bool ArchitecturalDesignHasBeenSet() const { return m_architecturalDesignHasBeenSet; }
124 template<typename ArchitecturalDesignT = Aws::String>
125 void SetArchitecturalDesign(ArchitecturalDesignT&& value) { m_architecturalDesignHasBeenSet = true; m_architecturalDesign = std::forward<ArchitecturalDesignT>(value); }
126 template<typename ArchitecturalDesignT = Aws::String>
127 CreateWorkloadRequest& WithArchitecturalDesign(ArchitecturalDesignT&& value) { SetArchitecturalDesign(std::forward<ArchitecturalDesignT>(value)); return *this;}
129
131
132 inline const Aws::String& GetReviewOwner() const { return m_reviewOwner; }
133 inline bool ReviewOwnerHasBeenSet() const { return m_reviewOwnerHasBeenSet; }
134 template<typename ReviewOwnerT = Aws::String>
135 void SetReviewOwner(ReviewOwnerT&& value) { m_reviewOwnerHasBeenSet = true; m_reviewOwner = std::forward<ReviewOwnerT>(value); }
136 template<typename ReviewOwnerT = Aws::String>
137 CreateWorkloadRequest& WithReviewOwner(ReviewOwnerT&& value) { SetReviewOwner(std::forward<ReviewOwnerT>(value)); return *this;}
139
141
142 inline const Aws::String& GetIndustryType() const { return m_industryType; }
143 inline bool IndustryTypeHasBeenSet() const { return m_industryTypeHasBeenSet; }
144 template<typename IndustryTypeT = Aws::String>
145 void SetIndustryType(IndustryTypeT&& value) { m_industryTypeHasBeenSet = true; m_industryType = std::forward<IndustryTypeT>(value); }
146 template<typename IndustryTypeT = Aws::String>
147 CreateWorkloadRequest& WithIndustryType(IndustryTypeT&& value) { SetIndustryType(std::forward<IndustryTypeT>(value)); return *this;}
149
151
152 inline const Aws::String& GetIndustry() const { return m_industry; }
153 inline bool IndustryHasBeenSet() const { return m_industryHasBeenSet; }
154 template<typename IndustryT = Aws::String>
155 void SetIndustry(IndustryT&& value) { m_industryHasBeenSet = true; m_industry = std::forward<IndustryT>(value); }
156 template<typename IndustryT = Aws::String>
157 CreateWorkloadRequest& WithIndustry(IndustryT&& value) { SetIndustry(std::forward<IndustryT>(value)); return *this;}
159
161
162 inline const Aws::Vector<Aws::String>& GetLenses() const { return m_lenses; }
163 inline bool LensesHasBeenSet() const { return m_lensesHasBeenSet; }
164 template<typename LensesT = Aws::Vector<Aws::String>>
165 void SetLenses(LensesT&& value) { m_lensesHasBeenSet = true; m_lenses = std::forward<LensesT>(value); }
166 template<typename LensesT = Aws::Vector<Aws::String>>
167 CreateWorkloadRequest& WithLenses(LensesT&& value) { SetLenses(std::forward<LensesT>(value)); return *this;}
168 template<typename LensesT = Aws::String>
169 CreateWorkloadRequest& AddLenses(LensesT&& value) { m_lensesHasBeenSet = true; m_lenses.emplace_back(std::forward<LensesT>(value)); return *this; }
171
173
174 inline const Aws::String& GetNotes() const { return m_notes; }
175 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
176 template<typename NotesT = Aws::String>
177 void SetNotes(NotesT&& value) { m_notesHasBeenSet = true; m_notes = std::forward<NotesT>(value); }
178 template<typename NotesT = Aws::String>
179 CreateWorkloadRequest& WithNotes(NotesT&& value) { SetNotes(std::forward<NotesT>(value)); return *this;}
181
183
184 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
185 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
186 template<typename ClientRequestTokenT = Aws::String>
187 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
188 template<typename ClientRequestTokenT = Aws::String>
189 CreateWorkloadRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
191
193
196 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
197 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
198 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
199 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
200 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
201 CreateWorkloadRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
202 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
203 CreateWorkloadRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
204 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
205 }
207
209
213 inline const WorkloadDiscoveryConfig& GetDiscoveryConfig() const { return m_discoveryConfig; }
214 inline bool DiscoveryConfigHasBeenSet() const { return m_discoveryConfigHasBeenSet; }
215 template<typename DiscoveryConfigT = WorkloadDiscoveryConfig>
216 void SetDiscoveryConfig(DiscoveryConfigT&& value) { m_discoveryConfigHasBeenSet = true; m_discoveryConfig = std::forward<DiscoveryConfigT>(value); }
217 template<typename DiscoveryConfigT = WorkloadDiscoveryConfig>
218 CreateWorkloadRequest& WithDiscoveryConfig(DiscoveryConfigT&& value) { SetDiscoveryConfig(std::forward<DiscoveryConfigT>(value)); return *this;}
220
222
225 inline const Aws::Vector<Aws::String>& GetApplications() const { return m_applications; }
226 inline bool ApplicationsHasBeenSet() const { return m_applicationsHasBeenSet; }
227 template<typename ApplicationsT = Aws::Vector<Aws::String>>
228 void SetApplications(ApplicationsT&& value) { m_applicationsHasBeenSet = true; m_applications = std::forward<ApplicationsT>(value); }
229 template<typename ApplicationsT = Aws::Vector<Aws::String>>
230 CreateWorkloadRequest& WithApplications(ApplicationsT&& value) { SetApplications(std::forward<ApplicationsT>(value)); return *this;}
231 template<typename ApplicationsT = Aws::String>
232 CreateWorkloadRequest& AddApplications(ApplicationsT&& value) { m_applicationsHasBeenSet = true; m_applications.emplace_back(std::forward<ApplicationsT>(value)); return *this; }
234
236
239 inline const Aws::Vector<Aws::String>& GetProfileArns() const { return m_profileArns; }
240 inline bool ProfileArnsHasBeenSet() const { return m_profileArnsHasBeenSet; }
241 template<typename ProfileArnsT = Aws::Vector<Aws::String>>
242 void SetProfileArns(ProfileArnsT&& value) { m_profileArnsHasBeenSet = true; m_profileArns = std::forward<ProfileArnsT>(value); }
243 template<typename ProfileArnsT = Aws::Vector<Aws::String>>
244 CreateWorkloadRequest& WithProfileArns(ProfileArnsT&& value) { SetProfileArns(std::forward<ProfileArnsT>(value)); return *this;}
245 template<typename ProfileArnsT = Aws::String>
246 CreateWorkloadRequest& AddProfileArns(ProfileArnsT&& value) { m_profileArnsHasBeenSet = true; m_profileArns.emplace_back(std::forward<ProfileArnsT>(value)); return *this; }
248
250
253 inline const Aws::Vector<Aws::String>& GetReviewTemplateArns() const { return m_reviewTemplateArns; }
254 inline bool ReviewTemplateArnsHasBeenSet() const { return m_reviewTemplateArnsHasBeenSet; }
255 template<typename ReviewTemplateArnsT = Aws::Vector<Aws::String>>
256 void SetReviewTemplateArns(ReviewTemplateArnsT&& value) { m_reviewTemplateArnsHasBeenSet = true; m_reviewTemplateArns = std::forward<ReviewTemplateArnsT>(value); }
257 template<typename ReviewTemplateArnsT = Aws::Vector<Aws::String>>
258 CreateWorkloadRequest& WithReviewTemplateArns(ReviewTemplateArnsT&& value) { SetReviewTemplateArns(std::forward<ReviewTemplateArnsT>(value)); return *this;}
259 template<typename ReviewTemplateArnsT = Aws::String>
260 CreateWorkloadRequest& AddReviewTemplateArns(ReviewTemplateArnsT&& value) { m_reviewTemplateArnsHasBeenSet = true; m_reviewTemplateArns.emplace_back(std::forward<ReviewTemplateArnsT>(value)); return *this; }
262
264
267 inline const WorkloadJiraConfigurationInput& GetJiraConfiguration() const { return m_jiraConfiguration; }
268 inline bool JiraConfigurationHasBeenSet() const { return m_jiraConfigurationHasBeenSet; }
269 template<typename JiraConfigurationT = WorkloadJiraConfigurationInput>
270 void SetJiraConfiguration(JiraConfigurationT&& value) { m_jiraConfigurationHasBeenSet = true; m_jiraConfiguration = std::forward<JiraConfigurationT>(value); }
271 template<typename JiraConfigurationT = WorkloadJiraConfigurationInput>
272 CreateWorkloadRequest& WithJiraConfiguration(JiraConfigurationT&& value) { SetJiraConfiguration(std::forward<JiraConfigurationT>(value)); return *this;}
274 private:
275
276 Aws::String m_workloadName;
277 bool m_workloadNameHasBeenSet = false;
278
279 Aws::String m_description;
280 bool m_descriptionHasBeenSet = false;
281
283 bool m_environmentHasBeenSet = false;
284
285 Aws::Vector<Aws::String> m_accountIds;
286 bool m_accountIdsHasBeenSet = false;
287
288 Aws::Vector<Aws::String> m_awsRegions;
289 bool m_awsRegionsHasBeenSet = false;
290
291 Aws::Vector<Aws::String> m_nonAwsRegions;
292 bool m_nonAwsRegionsHasBeenSet = false;
293
294 Aws::Vector<Aws::String> m_pillarPriorities;
295 bool m_pillarPrioritiesHasBeenSet = false;
296
297 Aws::String m_architecturalDesign;
298 bool m_architecturalDesignHasBeenSet = false;
299
300 Aws::String m_reviewOwner;
301 bool m_reviewOwnerHasBeenSet = false;
302
303 Aws::String m_industryType;
304 bool m_industryTypeHasBeenSet = false;
305
306 Aws::String m_industry;
307 bool m_industryHasBeenSet = false;
308
310 bool m_lensesHasBeenSet = false;
311
312 Aws::String m_notes;
313 bool m_notesHasBeenSet = false;
314
315 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
316 bool m_clientRequestTokenHasBeenSet = true;
317
319 bool m_tagsHasBeenSet = false;
320
321 WorkloadDiscoveryConfig m_discoveryConfig;
322 bool m_discoveryConfigHasBeenSet = false;
323
324 Aws::Vector<Aws::String> m_applications;
325 bool m_applicationsHasBeenSet = false;
326
327 Aws::Vector<Aws::String> m_profileArns;
328 bool m_profileArnsHasBeenSet = false;
329
330 Aws::Vector<Aws::String> m_reviewTemplateArns;
331 bool m_reviewTemplateArnsHasBeenSet = false;
332
333 WorkloadJiraConfigurationInput m_jiraConfiguration;
334 bool m_jiraConfigurationHasBeenSet = false;
335 };
336
337} // namespace Model
338} // namespace WellArchitected
339} // 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