AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
UpdateWorkloadRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wellarchitected/WellArchitectedRequest.h>
10#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
11#include <aws/wellarchitected/model/WorkloadDiscoveryConfig.h>
12#include <aws/wellarchitected/model/WorkloadEnvironment.h>
13#include <aws/wellarchitected/model/WorkloadImprovementStatus.h>
14#include <aws/wellarchitected/model/WorkloadJiraConfigurationInput.h>
15
16#include <utility>
17
18namespace Aws {
19namespace WellArchitected {
20namespace Model {
21
28 public:
29 AWS_WELLARCHITECTED_API UpdateWorkloadRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateWorkload"; }
36
37 AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override;
38
40
41 inline const Aws::String& GetWorkloadId() const { return m_workloadId; }
42 inline bool WorkloadIdHasBeenSet() const { return m_workloadIdHasBeenSet; }
43 template <typename WorkloadIdT = Aws::String>
44 void SetWorkloadId(WorkloadIdT&& value) {
45 m_workloadIdHasBeenSet = true;
46 m_workloadId = std::forward<WorkloadIdT>(value);
47 }
48 template <typename WorkloadIdT = Aws::String>
49 UpdateWorkloadRequest& WithWorkloadId(WorkloadIdT&& value) {
50 SetWorkloadId(std::forward<WorkloadIdT>(value));
51 return *this;
52 }
54
56
57 inline const Aws::String& GetWorkloadName() const { return m_workloadName; }
58 inline bool WorkloadNameHasBeenSet() const { return m_workloadNameHasBeenSet; }
59 template <typename WorkloadNameT = Aws::String>
60 void SetWorkloadName(WorkloadNameT&& value) {
61 m_workloadNameHasBeenSet = true;
62 m_workloadName = std::forward<WorkloadNameT>(value);
63 }
64 template <typename WorkloadNameT = Aws::String>
65 UpdateWorkloadRequest& WithWorkloadName(WorkloadNameT&& value) {
66 SetWorkloadName(std::forward<WorkloadNameT>(value));
67 return *this;
68 }
70
72
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template <typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) {
77 m_descriptionHasBeenSet = true;
78 m_description = std::forward<DescriptionT>(value);
79 }
80 template <typename DescriptionT = Aws::String>
81 UpdateWorkloadRequest& WithDescription(DescriptionT&& value) {
82 SetDescription(std::forward<DescriptionT>(value));
83 return *this;
84 }
86
88
89 inline WorkloadEnvironment GetEnvironment() const { return m_environment; }
90 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
92 m_environmentHasBeenSet = true;
93 m_environment = value;
94 }
96 SetEnvironment(value);
97 return *this;
98 }
100
102
103 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
104 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
105 template <typename AccountIdsT = Aws::Vector<Aws::String>>
106 void SetAccountIds(AccountIdsT&& value) {
107 m_accountIdsHasBeenSet = true;
108 m_accountIds = std::forward<AccountIdsT>(value);
109 }
110 template <typename AccountIdsT = Aws::Vector<Aws::String>>
111 UpdateWorkloadRequest& WithAccountIds(AccountIdsT&& value) {
112 SetAccountIds(std::forward<AccountIdsT>(value));
113 return *this;
114 }
115 template <typename AccountIdsT = Aws::String>
116 UpdateWorkloadRequest& AddAccountIds(AccountIdsT&& value) {
117 m_accountIdsHasBeenSet = true;
118 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
119 return *this;
120 }
122
124
125 inline const Aws::Vector<Aws::String>& GetAwsRegions() const { return m_awsRegions; }
126 inline bool AwsRegionsHasBeenSet() const { return m_awsRegionsHasBeenSet; }
127 template <typename AwsRegionsT = Aws::Vector<Aws::String>>
128 void SetAwsRegions(AwsRegionsT&& value) {
129 m_awsRegionsHasBeenSet = true;
130 m_awsRegions = std::forward<AwsRegionsT>(value);
131 }
132 template <typename AwsRegionsT = Aws::Vector<Aws::String>>
133 UpdateWorkloadRequest& WithAwsRegions(AwsRegionsT&& value) {
134 SetAwsRegions(std::forward<AwsRegionsT>(value));
135 return *this;
136 }
137 template <typename AwsRegionsT = Aws::String>
138 UpdateWorkloadRequest& AddAwsRegions(AwsRegionsT&& value) {
139 m_awsRegionsHasBeenSet = true;
140 m_awsRegions.emplace_back(std::forward<AwsRegionsT>(value));
141 return *this;
142 }
144
146
147 inline const Aws::Vector<Aws::String>& GetNonAwsRegions() const { return m_nonAwsRegions; }
148 inline bool NonAwsRegionsHasBeenSet() const { return m_nonAwsRegionsHasBeenSet; }
149 template <typename NonAwsRegionsT = Aws::Vector<Aws::String>>
150 void SetNonAwsRegions(NonAwsRegionsT&& value) {
151 m_nonAwsRegionsHasBeenSet = true;
152 m_nonAwsRegions = std::forward<NonAwsRegionsT>(value);
153 }
154 template <typename NonAwsRegionsT = Aws::Vector<Aws::String>>
155 UpdateWorkloadRequest& WithNonAwsRegions(NonAwsRegionsT&& value) {
156 SetNonAwsRegions(std::forward<NonAwsRegionsT>(value));
157 return *this;
158 }
159 template <typename NonAwsRegionsT = Aws::String>
160 UpdateWorkloadRequest& AddNonAwsRegions(NonAwsRegionsT&& value) {
161 m_nonAwsRegionsHasBeenSet = true;
162 m_nonAwsRegions.emplace_back(std::forward<NonAwsRegionsT>(value));
163 return *this;
164 }
166
168
169 inline const Aws::Vector<Aws::String>& GetPillarPriorities() const { return m_pillarPriorities; }
170 inline bool PillarPrioritiesHasBeenSet() const { return m_pillarPrioritiesHasBeenSet; }
171 template <typename PillarPrioritiesT = Aws::Vector<Aws::String>>
172 void SetPillarPriorities(PillarPrioritiesT&& value) {
173 m_pillarPrioritiesHasBeenSet = true;
174 m_pillarPriorities = std::forward<PillarPrioritiesT>(value);
175 }
176 template <typename PillarPrioritiesT = Aws::Vector<Aws::String>>
177 UpdateWorkloadRequest& WithPillarPriorities(PillarPrioritiesT&& value) {
178 SetPillarPriorities(std::forward<PillarPrioritiesT>(value));
179 return *this;
180 }
181 template <typename PillarPrioritiesT = Aws::String>
182 UpdateWorkloadRequest& AddPillarPriorities(PillarPrioritiesT&& value) {
183 m_pillarPrioritiesHasBeenSet = true;
184 m_pillarPriorities.emplace_back(std::forward<PillarPrioritiesT>(value));
185 return *this;
186 }
188
190
191 inline const Aws::String& GetArchitecturalDesign() const { return m_architecturalDesign; }
192 inline bool ArchitecturalDesignHasBeenSet() const { return m_architecturalDesignHasBeenSet; }
193 template <typename ArchitecturalDesignT = Aws::String>
194 void SetArchitecturalDesign(ArchitecturalDesignT&& value) {
195 m_architecturalDesignHasBeenSet = true;
196 m_architecturalDesign = std::forward<ArchitecturalDesignT>(value);
197 }
198 template <typename ArchitecturalDesignT = Aws::String>
199 UpdateWorkloadRequest& WithArchitecturalDesign(ArchitecturalDesignT&& value) {
200 SetArchitecturalDesign(std::forward<ArchitecturalDesignT>(value));
201 return *this;
202 }
204
206
207 inline const Aws::String& GetReviewOwner() const { return m_reviewOwner; }
208 inline bool ReviewOwnerHasBeenSet() const { return m_reviewOwnerHasBeenSet; }
209 template <typename ReviewOwnerT = Aws::String>
210 void SetReviewOwner(ReviewOwnerT&& value) {
211 m_reviewOwnerHasBeenSet = true;
212 m_reviewOwner = std::forward<ReviewOwnerT>(value);
213 }
214 template <typename ReviewOwnerT = Aws::String>
215 UpdateWorkloadRequest& WithReviewOwner(ReviewOwnerT&& value) {
216 SetReviewOwner(std::forward<ReviewOwnerT>(value));
217 return *this;
218 }
220
222
228 inline bool GetIsReviewOwnerUpdateAcknowledged() const { return m_isReviewOwnerUpdateAcknowledged; }
229 inline bool IsReviewOwnerUpdateAcknowledgedHasBeenSet() const { return m_isReviewOwnerUpdateAcknowledgedHasBeenSet; }
230 inline void SetIsReviewOwnerUpdateAcknowledged(bool value) {
231 m_isReviewOwnerUpdateAcknowledgedHasBeenSet = true;
232 m_isReviewOwnerUpdateAcknowledged = value;
233 }
236 return *this;
237 }
239
241
242 inline const Aws::String& GetIndustryType() const { return m_industryType; }
243 inline bool IndustryTypeHasBeenSet() const { return m_industryTypeHasBeenSet; }
244 template <typename IndustryTypeT = Aws::String>
245 void SetIndustryType(IndustryTypeT&& value) {
246 m_industryTypeHasBeenSet = true;
247 m_industryType = std::forward<IndustryTypeT>(value);
248 }
249 template <typename IndustryTypeT = Aws::String>
250 UpdateWorkloadRequest& WithIndustryType(IndustryTypeT&& value) {
251 SetIndustryType(std::forward<IndustryTypeT>(value));
252 return *this;
253 }
255
257
258 inline const Aws::String& GetIndustry() const { return m_industry; }
259 inline bool IndustryHasBeenSet() const { return m_industryHasBeenSet; }
260 template <typename IndustryT = Aws::String>
261 void SetIndustry(IndustryT&& value) {
262 m_industryHasBeenSet = true;
263 m_industry = std::forward<IndustryT>(value);
264 }
265 template <typename IndustryT = Aws::String>
267 SetIndustry(std::forward<IndustryT>(value));
268 return *this;
269 }
271
273
274 inline const Aws::String& GetNotes() const { return m_notes; }
275 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
276 template <typename NotesT = Aws::String>
277 void SetNotes(NotesT&& value) {
278 m_notesHasBeenSet = true;
279 m_notes = std::forward<NotesT>(value);
280 }
281 template <typename NotesT = Aws::String>
283 SetNotes(std::forward<NotesT>(value));
284 return *this;
285 }
287
289
290 inline WorkloadImprovementStatus GetImprovementStatus() const { return m_improvementStatus; }
291 inline bool ImprovementStatusHasBeenSet() const { return m_improvementStatusHasBeenSet; }
293 m_improvementStatusHasBeenSet = true;
294 m_improvementStatus = value;
295 }
298 return *this;
299 }
301
303
307 inline const WorkloadDiscoveryConfig& GetDiscoveryConfig() const { return m_discoveryConfig; }
308 inline bool DiscoveryConfigHasBeenSet() const { return m_discoveryConfigHasBeenSet; }
309 template <typename DiscoveryConfigT = WorkloadDiscoveryConfig>
310 void SetDiscoveryConfig(DiscoveryConfigT&& value) {
311 m_discoveryConfigHasBeenSet = true;
312 m_discoveryConfig = std::forward<DiscoveryConfigT>(value);
313 }
314 template <typename DiscoveryConfigT = WorkloadDiscoveryConfig>
315 UpdateWorkloadRequest& WithDiscoveryConfig(DiscoveryConfigT&& value) {
316 SetDiscoveryConfig(std::forward<DiscoveryConfigT>(value));
317 return *this;
318 }
320
322
325 inline const Aws::Vector<Aws::String>& GetApplications() const { return m_applications; }
326 inline bool ApplicationsHasBeenSet() const { return m_applicationsHasBeenSet; }
327 template <typename ApplicationsT = Aws::Vector<Aws::String>>
328 void SetApplications(ApplicationsT&& value) {
329 m_applicationsHasBeenSet = true;
330 m_applications = std::forward<ApplicationsT>(value);
331 }
332 template <typename ApplicationsT = Aws::Vector<Aws::String>>
333 UpdateWorkloadRequest& WithApplications(ApplicationsT&& value) {
334 SetApplications(std::forward<ApplicationsT>(value));
335 return *this;
336 }
337 template <typename ApplicationsT = Aws::String>
338 UpdateWorkloadRequest& AddApplications(ApplicationsT&& value) {
339 m_applicationsHasBeenSet = true;
340 m_applications.emplace_back(std::forward<ApplicationsT>(value));
341 return *this;
342 }
344
346
349 inline const WorkloadJiraConfigurationInput& GetJiraConfiguration() const { return m_jiraConfiguration; }
350 inline bool JiraConfigurationHasBeenSet() const { return m_jiraConfigurationHasBeenSet; }
351 template <typename JiraConfigurationT = WorkloadJiraConfigurationInput>
352 void SetJiraConfiguration(JiraConfigurationT&& value) {
353 m_jiraConfigurationHasBeenSet = true;
354 m_jiraConfiguration = std::forward<JiraConfigurationT>(value);
355 }
356 template <typename JiraConfigurationT = WorkloadJiraConfigurationInput>
357 UpdateWorkloadRequest& WithJiraConfiguration(JiraConfigurationT&& value) {
358 SetJiraConfiguration(std::forward<JiraConfigurationT>(value));
359 return *this;
360 }
362 private:
363 Aws::String m_workloadId;
364 bool m_workloadIdHasBeenSet = false;
365
366 Aws::String m_workloadName;
367 bool m_workloadNameHasBeenSet = false;
368
369 Aws::String m_description;
370 bool m_descriptionHasBeenSet = false;
371
373 bool m_environmentHasBeenSet = false;
374
375 Aws::Vector<Aws::String> m_accountIds;
376 bool m_accountIdsHasBeenSet = false;
377
378 Aws::Vector<Aws::String> m_awsRegions;
379 bool m_awsRegionsHasBeenSet = false;
380
381 Aws::Vector<Aws::String> m_nonAwsRegions;
382 bool m_nonAwsRegionsHasBeenSet = false;
383
384 Aws::Vector<Aws::String> m_pillarPriorities;
385 bool m_pillarPrioritiesHasBeenSet = false;
386
387 Aws::String m_architecturalDesign;
388 bool m_architecturalDesignHasBeenSet = false;
389
390 Aws::String m_reviewOwner;
391 bool m_reviewOwnerHasBeenSet = false;
392
393 bool m_isReviewOwnerUpdateAcknowledged{false};
394 bool m_isReviewOwnerUpdateAcknowledgedHasBeenSet = false;
395
396 Aws::String m_industryType;
397 bool m_industryTypeHasBeenSet = false;
398
399 Aws::String m_industry;
400 bool m_industryHasBeenSet = false;
401
402 Aws::String m_notes;
403 bool m_notesHasBeenSet = false;
404
406 bool m_improvementStatusHasBeenSet = false;
407
408 WorkloadDiscoveryConfig m_discoveryConfig;
409 bool m_discoveryConfigHasBeenSet = false;
410
411 Aws::Vector<Aws::String> m_applications;
412 bool m_applicationsHasBeenSet = false;
413
414 WorkloadJiraConfigurationInput m_jiraConfiguration;
415 bool m_jiraConfigurationHasBeenSet = false;
416};
417
418} // namespace Model
419} // namespace WellArchitected
420} // namespace Aws
UpdateWorkloadRequest & WithNonAwsRegions(NonAwsRegionsT &&value)
UpdateWorkloadRequest & AddAwsRegions(AwsRegionsT &&value)
const WorkloadDiscoveryConfig & GetDiscoveryConfig() const
const Aws::Vector< Aws::String > & GetAwsRegions() const
const WorkloadJiraConfigurationInput & GetJiraConfiguration() const
const Aws::Vector< Aws::String > & GetAccountIds() const
UpdateWorkloadRequest & WithEnvironment(WorkloadEnvironment value)
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
UpdateWorkloadRequest & WithAwsRegions(AwsRegionsT &&value)
UpdateWorkloadRequest & WithDiscoveryConfig(DiscoveryConfigT &&value)
void SetImprovementStatus(WorkloadImprovementStatus value)
virtual const char * GetServiceRequestName() const override
AWS_WELLARCHITECTED_API UpdateWorkloadRequest()=default
UpdateWorkloadRequest & WithPillarPriorities(PillarPrioritiesT &&value)
UpdateWorkloadRequest & WithImprovementStatus(WorkloadImprovementStatus value)
UpdateWorkloadRequest & WithAccountIds(AccountIdsT &&value)
UpdateWorkloadRequest & AddAccountIds(AccountIdsT &&value)
UpdateWorkloadRequest & WithWorkloadName(WorkloadNameT &&value)
UpdateWorkloadRequest & WithIndustryType(IndustryTypeT &&value)
UpdateWorkloadRequest & AddApplications(ApplicationsT &&value)
UpdateWorkloadRequest & WithNotes(NotesT &&value)
const Aws::Vector< Aws::String > & GetApplications() const
const Aws::Vector< Aws::String > & GetPillarPriorities() const
UpdateWorkloadRequest & WithDescription(DescriptionT &&value)
void SetArchitecturalDesign(ArchitecturalDesignT &&value)
UpdateWorkloadRequest & WithReviewOwner(ReviewOwnerT &&value)
UpdateWorkloadRequest & WithApplications(ApplicationsT &&value)
UpdateWorkloadRequest & WithIsReviewOwnerUpdateAcknowledged(bool value)
UpdateWorkloadRequest & WithWorkloadId(WorkloadIdT &&value)
const Aws::Vector< Aws::String > & GetNonAwsRegions() const
UpdateWorkloadRequest & AddPillarPriorities(PillarPrioritiesT &&value)
UpdateWorkloadRequest & WithArchitecturalDesign(ArchitecturalDesignT &&value)
UpdateWorkloadRequest & WithJiraConfiguration(JiraConfigurationT &&value)
UpdateWorkloadRequest & WithIndustry(IndustryT &&value)
UpdateWorkloadRequest & AddNonAwsRegions(NonAwsRegionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector