AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateWorkloadRequest.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/wellarchitected/model/WorkloadImprovementStatus.h>
13#include <aws/wellarchitected/model/WorkloadDiscoveryConfig.h>
14#include <aws/wellarchitected/model/WorkloadJiraConfigurationInput.h>
15#include <utility>
16
17namespace Aws
18{
19namespace WellArchitected
20{
21namespace Model
22{
23
30 {
31 public:
32 AWS_WELLARCHITECTED_API UpdateWorkloadRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "UpdateWorkload"; }
39
40 AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override;
41
42
44
45 inline const Aws::String& GetWorkloadId() const { return m_workloadId; }
46 inline bool WorkloadIdHasBeenSet() const { return m_workloadIdHasBeenSet; }
47 template<typename WorkloadIdT = Aws::String>
48 void SetWorkloadId(WorkloadIdT&& value) { m_workloadIdHasBeenSet = true; m_workloadId = std::forward<WorkloadIdT>(value); }
49 template<typename WorkloadIdT = Aws::String>
50 UpdateWorkloadRequest& WithWorkloadId(WorkloadIdT&& value) { SetWorkloadId(std::forward<WorkloadIdT>(value)); return *this;}
52
54
55 inline const Aws::String& GetWorkloadName() const { return m_workloadName; }
56 inline bool WorkloadNameHasBeenSet() const { return m_workloadNameHasBeenSet; }
57 template<typename WorkloadNameT = Aws::String>
58 void SetWorkloadName(WorkloadNameT&& value) { m_workloadNameHasBeenSet = true; m_workloadName = std::forward<WorkloadNameT>(value); }
59 template<typename WorkloadNameT = Aws::String>
60 UpdateWorkloadRequest& WithWorkloadName(WorkloadNameT&& value) { SetWorkloadName(std::forward<WorkloadNameT>(value)); return *this;}
62
64
65 inline const Aws::String& GetDescription() const { return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 template<typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
69 template<typename DescriptionT = Aws::String>
70 UpdateWorkloadRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
72
74
75 inline WorkloadEnvironment GetEnvironment() const { return m_environment; }
76 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
77 inline void SetEnvironment(WorkloadEnvironment value) { m_environmentHasBeenSet = true; m_environment = value; }
80
82
83 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
84 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
85 template<typename AccountIdsT = Aws::Vector<Aws::String>>
86 void SetAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::forward<AccountIdsT>(value); }
87 template<typename AccountIdsT = Aws::Vector<Aws::String>>
88 UpdateWorkloadRequest& WithAccountIds(AccountIdsT&& value) { SetAccountIds(std::forward<AccountIdsT>(value)); return *this;}
89 template<typename AccountIdsT = Aws::String>
90 UpdateWorkloadRequest& AddAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds.emplace_back(std::forward<AccountIdsT>(value)); return *this; }
92
94
95 inline const Aws::Vector<Aws::String>& GetAwsRegions() const { return m_awsRegions; }
96 inline bool AwsRegionsHasBeenSet() const { return m_awsRegionsHasBeenSet; }
97 template<typename AwsRegionsT = Aws::Vector<Aws::String>>
98 void SetAwsRegions(AwsRegionsT&& value) { m_awsRegionsHasBeenSet = true; m_awsRegions = std::forward<AwsRegionsT>(value); }
99 template<typename AwsRegionsT = Aws::Vector<Aws::String>>
100 UpdateWorkloadRequest& WithAwsRegions(AwsRegionsT&& value) { SetAwsRegions(std::forward<AwsRegionsT>(value)); return *this;}
101 template<typename AwsRegionsT = Aws::String>
102 UpdateWorkloadRequest& AddAwsRegions(AwsRegionsT&& value) { m_awsRegionsHasBeenSet = true; m_awsRegions.emplace_back(std::forward<AwsRegionsT>(value)); return *this; }
104
106
107 inline const Aws::Vector<Aws::String>& GetNonAwsRegions() const { return m_nonAwsRegions; }
108 inline bool NonAwsRegionsHasBeenSet() const { return m_nonAwsRegionsHasBeenSet; }
109 template<typename NonAwsRegionsT = Aws::Vector<Aws::String>>
110 void SetNonAwsRegions(NonAwsRegionsT&& value) { m_nonAwsRegionsHasBeenSet = true; m_nonAwsRegions = std::forward<NonAwsRegionsT>(value); }
111 template<typename NonAwsRegionsT = Aws::Vector<Aws::String>>
112 UpdateWorkloadRequest& WithNonAwsRegions(NonAwsRegionsT&& value) { SetNonAwsRegions(std::forward<NonAwsRegionsT>(value)); return *this;}
113 template<typename NonAwsRegionsT = Aws::String>
114 UpdateWorkloadRequest& AddNonAwsRegions(NonAwsRegionsT&& value) { m_nonAwsRegionsHasBeenSet = true; m_nonAwsRegions.emplace_back(std::forward<NonAwsRegionsT>(value)); return *this; }
116
118
119 inline const Aws::Vector<Aws::String>& GetPillarPriorities() const { return m_pillarPriorities; }
120 inline bool PillarPrioritiesHasBeenSet() const { return m_pillarPrioritiesHasBeenSet; }
121 template<typename PillarPrioritiesT = Aws::Vector<Aws::String>>
122 void SetPillarPriorities(PillarPrioritiesT&& value) { m_pillarPrioritiesHasBeenSet = true; m_pillarPriorities = std::forward<PillarPrioritiesT>(value); }
123 template<typename PillarPrioritiesT = Aws::Vector<Aws::String>>
124 UpdateWorkloadRequest& WithPillarPriorities(PillarPrioritiesT&& value) { SetPillarPriorities(std::forward<PillarPrioritiesT>(value)); return *this;}
125 template<typename PillarPrioritiesT = Aws::String>
126 UpdateWorkloadRequest& AddPillarPriorities(PillarPrioritiesT&& value) { m_pillarPrioritiesHasBeenSet = true; m_pillarPriorities.emplace_back(std::forward<PillarPrioritiesT>(value)); return *this; }
128
130
131 inline const Aws::String& GetArchitecturalDesign() const { return m_architecturalDesign; }
132 inline bool ArchitecturalDesignHasBeenSet() const { return m_architecturalDesignHasBeenSet; }
133 template<typename ArchitecturalDesignT = Aws::String>
134 void SetArchitecturalDesign(ArchitecturalDesignT&& value) { m_architecturalDesignHasBeenSet = true; m_architecturalDesign = std::forward<ArchitecturalDesignT>(value); }
135 template<typename ArchitecturalDesignT = Aws::String>
136 UpdateWorkloadRequest& WithArchitecturalDesign(ArchitecturalDesignT&& value) { SetArchitecturalDesign(std::forward<ArchitecturalDesignT>(value)); return *this;}
138
140
141 inline const Aws::String& GetReviewOwner() const { return m_reviewOwner; }
142 inline bool ReviewOwnerHasBeenSet() const { return m_reviewOwnerHasBeenSet; }
143 template<typename ReviewOwnerT = Aws::String>
144 void SetReviewOwner(ReviewOwnerT&& value) { m_reviewOwnerHasBeenSet = true; m_reviewOwner = std::forward<ReviewOwnerT>(value); }
145 template<typename ReviewOwnerT = Aws::String>
146 UpdateWorkloadRequest& WithReviewOwner(ReviewOwnerT&& value) { SetReviewOwner(std::forward<ReviewOwnerT>(value)); return *this;}
148
150
156 inline bool GetIsReviewOwnerUpdateAcknowledged() const { return m_isReviewOwnerUpdateAcknowledged; }
157 inline bool IsReviewOwnerUpdateAcknowledgedHasBeenSet() const { return m_isReviewOwnerUpdateAcknowledgedHasBeenSet; }
158 inline void SetIsReviewOwnerUpdateAcknowledged(bool value) { m_isReviewOwnerUpdateAcknowledgedHasBeenSet = true; m_isReviewOwnerUpdateAcknowledged = value; }
161
163
164 inline const Aws::String& GetIndustryType() const { return m_industryType; }
165 inline bool IndustryTypeHasBeenSet() const { return m_industryTypeHasBeenSet; }
166 template<typename IndustryTypeT = Aws::String>
167 void SetIndustryType(IndustryTypeT&& value) { m_industryTypeHasBeenSet = true; m_industryType = std::forward<IndustryTypeT>(value); }
168 template<typename IndustryTypeT = Aws::String>
169 UpdateWorkloadRequest& WithIndustryType(IndustryTypeT&& value) { SetIndustryType(std::forward<IndustryTypeT>(value)); return *this;}
171
173
174 inline const Aws::String& GetIndustry() const { return m_industry; }
175 inline bool IndustryHasBeenSet() const { return m_industryHasBeenSet; }
176 template<typename IndustryT = Aws::String>
177 void SetIndustry(IndustryT&& value) { m_industryHasBeenSet = true; m_industry = std::forward<IndustryT>(value); }
178 template<typename IndustryT = Aws::String>
179 UpdateWorkloadRequest& WithIndustry(IndustryT&& value) { SetIndustry(std::forward<IndustryT>(value)); return *this;}
181
183
184 inline const Aws::String& GetNotes() const { return m_notes; }
185 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
186 template<typename NotesT = Aws::String>
187 void SetNotes(NotesT&& value) { m_notesHasBeenSet = true; m_notes = std::forward<NotesT>(value); }
188 template<typename NotesT = Aws::String>
189 UpdateWorkloadRequest& WithNotes(NotesT&& value) { SetNotes(std::forward<NotesT>(value)); return *this;}
191
193
194 inline WorkloadImprovementStatus GetImprovementStatus() const { return m_improvementStatus; }
195 inline bool ImprovementStatusHasBeenSet() const { return m_improvementStatusHasBeenSet; }
196 inline void SetImprovementStatus(WorkloadImprovementStatus value) { m_improvementStatusHasBeenSet = true; m_improvementStatus = value; }
199
201
205 inline const WorkloadDiscoveryConfig& GetDiscoveryConfig() const { return m_discoveryConfig; }
206 inline bool DiscoveryConfigHasBeenSet() const { return m_discoveryConfigHasBeenSet; }
207 template<typename DiscoveryConfigT = WorkloadDiscoveryConfig>
208 void SetDiscoveryConfig(DiscoveryConfigT&& value) { m_discoveryConfigHasBeenSet = true; m_discoveryConfig = std::forward<DiscoveryConfigT>(value); }
209 template<typename DiscoveryConfigT = WorkloadDiscoveryConfig>
210 UpdateWorkloadRequest& WithDiscoveryConfig(DiscoveryConfigT&& value) { SetDiscoveryConfig(std::forward<DiscoveryConfigT>(value)); return *this;}
212
214
217 inline const Aws::Vector<Aws::String>& GetApplications() const { return m_applications; }
218 inline bool ApplicationsHasBeenSet() const { return m_applicationsHasBeenSet; }
219 template<typename ApplicationsT = Aws::Vector<Aws::String>>
220 void SetApplications(ApplicationsT&& value) { m_applicationsHasBeenSet = true; m_applications = std::forward<ApplicationsT>(value); }
221 template<typename ApplicationsT = Aws::Vector<Aws::String>>
222 UpdateWorkloadRequest& WithApplications(ApplicationsT&& value) { SetApplications(std::forward<ApplicationsT>(value)); return *this;}
223 template<typename ApplicationsT = Aws::String>
224 UpdateWorkloadRequest& AddApplications(ApplicationsT&& value) { m_applicationsHasBeenSet = true; m_applications.emplace_back(std::forward<ApplicationsT>(value)); return *this; }
226
228
231 inline const WorkloadJiraConfigurationInput& GetJiraConfiguration() const { return m_jiraConfiguration; }
232 inline bool JiraConfigurationHasBeenSet() const { return m_jiraConfigurationHasBeenSet; }
233 template<typename JiraConfigurationT = WorkloadJiraConfigurationInput>
234 void SetJiraConfiguration(JiraConfigurationT&& value) { m_jiraConfigurationHasBeenSet = true; m_jiraConfiguration = std::forward<JiraConfigurationT>(value); }
235 template<typename JiraConfigurationT = WorkloadJiraConfigurationInput>
236 UpdateWorkloadRequest& WithJiraConfiguration(JiraConfigurationT&& value) { SetJiraConfiguration(std::forward<JiraConfigurationT>(value)); return *this;}
238 private:
239
240 Aws::String m_workloadId;
241 bool m_workloadIdHasBeenSet = false;
242
243 Aws::String m_workloadName;
244 bool m_workloadNameHasBeenSet = false;
245
246 Aws::String m_description;
247 bool m_descriptionHasBeenSet = false;
248
250 bool m_environmentHasBeenSet = false;
251
252 Aws::Vector<Aws::String> m_accountIds;
253 bool m_accountIdsHasBeenSet = false;
254
255 Aws::Vector<Aws::String> m_awsRegions;
256 bool m_awsRegionsHasBeenSet = false;
257
258 Aws::Vector<Aws::String> m_nonAwsRegions;
259 bool m_nonAwsRegionsHasBeenSet = false;
260
261 Aws::Vector<Aws::String> m_pillarPriorities;
262 bool m_pillarPrioritiesHasBeenSet = false;
263
264 Aws::String m_architecturalDesign;
265 bool m_architecturalDesignHasBeenSet = false;
266
267 Aws::String m_reviewOwner;
268 bool m_reviewOwnerHasBeenSet = false;
269
270 bool m_isReviewOwnerUpdateAcknowledged{false};
271 bool m_isReviewOwnerUpdateAcknowledgedHasBeenSet = false;
272
273 Aws::String m_industryType;
274 bool m_industryTypeHasBeenSet = false;
275
276 Aws::String m_industry;
277 bool m_industryHasBeenSet = false;
278
279 Aws::String m_notes;
280 bool m_notesHasBeenSet = false;
281
283 bool m_improvementStatusHasBeenSet = false;
284
285 WorkloadDiscoveryConfig m_discoveryConfig;
286 bool m_discoveryConfigHasBeenSet = false;
287
288 Aws::Vector<Aws::String> m_applications;
289 bool m_applicationsHasBeenSet = false;
290
291 WorkloadJiraConfigurationInput m_jiraConfiguration;
292 bool m_jiraConfigurationHasBeenSet = false;
293 };
294
295} // namespace Model
296} // namespace WellArchitected
297} // 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