AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
StackSet.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/model/AutoDeployment.h>
9#include <aws/cloudformation/model/Capability.h>
10#include <aws/cloudformation/model/ManagedExecution.h>
11#include <aws/cloudformation/model/Parameter.h>
12#include <aws/cloudformation/model/PermissionModels.h>
13#include <aws/cloudformation/model/StackSetDriftDetectionDetails.h>
14#include <aws/cloudformation/model/StackSetStatus.h>
15#include <aws/cloudformation/model/Tag.h>
16#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
17#include <aws/core/utils/memory/stl/AWSString.h>
18#include <aws/core/utils/memory/stl/AWSVector.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Utils {
24namespace Xml {
25class XmlNode;
26} // namespace Xml
27} // namespace Utils
28namespace CloudFormation {
29namespace Model {
30
40class StackSet {
41 public:
42 AWS_CLOUDFORMATION_API StackSet() = default;
43 AWS_CLOUDFORMATION_API StackSet(const Aws::Utils::Xml::XmlNode& xmlNode);
44 AWS_CLOUDFORMATION_API StackSet& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45
46 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
48
50
53 inline const Aws::String& GetStackSetName() const { return m_stackSetName; }
54 inline bool StackSetNameHasBeenSet() const { return m_stackSetNameHasBeenSet; }
55 template <typename StackSetNameT = Aws::String>
56 void SetStackSetName(StackSetNameT&& value) {
57 m_stackSetNameHasBeenSet = true;
58 m_stackSetName = std::forward<StackSetNameT>(value);
59 }
60 template <typename StackSetNameT = Aws::String>
61 StackSet& WithStackSetName(StackSetNameT&& value) {
62 SetStackSetName(std::forward<StackSetNameT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetStackSetId() const { return m_stackSetId; }
72 inline bool StackSetIdHasBeenSet() const { return m_stackSetIdHasBeenSet; }
73 template <typename StackSetIdT = Aws::String>
74 void SetStackSetId(StackSetIdT&& value) {
75 m_stackSetIdHasBeenSet = true;
76 m_stackSetId = std::forward<StackSetIdT>(value);
77 }
78 template <typename StackSetIdT = Aws::String>
79 StackSet& WithStackSetId(StackSetIdT&& value) {
80 SetStackSetId(std::forward<StackSetIdT>(value));
81 return *this;
82 }
84
86
90 inline const Aws::String& GetDescription() const { return m_description; }
91 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
92 template <typename DescriptionT = Aws::String>
93 void SetDescription(DescriptionT&& value) {
94 m_descriptionHasBeenSet = true;
95 m_description = std::forward<DescriptionT>(value);
96 }
97 template <typename DescriptionT = Aws::String>
98 StackSet& WithDescription(DescriptionT&& value) {
99 SetDescription(std::forward<DescriptionT>(value));
100 return *this;
101 }
103
105
108 inline StackSetStatus GetStatus() const { return m_status; }
109 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
110 inline void SetStatus(StackSetStatus value) {
111 m_statusHasBeenSet = true;
112 m_status = value;
113 }
115 SetStatus(value);
116 return *this;
117 }
119
121
125 inline const Aws::String& GetTemplateBody() const { return m_templateBody; }
126 inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
127 template <typename TemplateBodyT = Aws::String>
128 void SetTemplateBody(TemplateBodyT&& value) {
129 m_templateBodyHasBeenSet = true;
130 m_templateBody = std::forward<TemplateBodyT>(value);
131 }
132 template <typename TemplateBodyT = Aws::String>
133 StackSet& WithTemplateBody(TemplateBodyT&& value) {
134 SetTemplateBody(std::forward<TemplateBodyT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::Vector<Parameter>& GetParameters() const { return m_parameters; }
144 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
145 template <typename ParametersT = Aws::Vector<Parameter>>
146 void SetParameters(ParametersT&& value) {
147 m_parametersHasBeenSet = true;
148 m_parameters = std::forward<ParametersT>(value);
149 }
150 template <typename ParametersT = Aws::Vector<Parameter>>
151 StackSet& WithParameters(ParametersT&& value) {
152 SetParameters(std::forward<ParametersT>(value));
153 return *this;
154 }
155 template <typename ParametersT = Parameter>
156 StackSet& AddParameters(ParametersT&& value) {
157 m_parametersHasBeenSet = true;
158 m_parameters.emplace_back(std::forward<ParametersT>(value));
159 return *this;
160 }
162
164
172 inline const Aws::Vector<Capability>& GetCapabilities() const { return m_capabilities; }
173 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
174 template <typename CapabilitiesT = Aws::Vector<Capability>>
175 void SetCapabilities(CapabilitiesT&& value) {
176 m_capabilitiesHasBeenSet = true;
177 m_capabilities = std::forward<CapabilitiesT>(value);
178 }
179 template <typename CapabilitiesT = Aws::Vector<Capability>>
180 StackSet& WithCapabilities(CapabilitiesT&& value) {
181 SetCapabilities(std::forward<CapabilitiesT>(value));
182 return *this;
183 }
185 m_capabilitiesHasBeenSet = true;
186 m_capabilities.push_back(value);
187 return *this;
188 }
190
192
196 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
197 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
198 template <typename TagsT = Aws::Vector<Tag>>
199 void SetTags(TagsT&& value) {
200 m_tagsHasBeenSet = true;
201 m_tags = std::forward<TagsT>(value);
202 }
203 template <typename TagsT = Aws::Vector<Tag>>
204 StackSet& WithTags(TagsT&& value) {
205 SetTags(std::forward<TagsT>(value));
206 return *this;
207 }
208 template <typename TagsT = Tag>
209 StackSet& AddTags(TagsT&& value) {
210 m_tagsHasBeenSet = true;
211 m_tags.emplace_back(std::forward<TagsT>(value));
212 return *this;
213 }
215
217
220 inline const Aws::String& GetStackSetARN() const { return m_stackSetARN; }
221 inline bool StackSetARNHasBeenSet() const { return m_stackSetARNHasBeenSet; }
222 template <typename StackSetARNT = Aws::String>
223 void SetStackSetARN(StackSetARNT&& value) {
224 m_stackSetARNHasBeenSet = true;
225 m_stackSetARN = std::forward<StackSetARNT>(value);
226 }
227 template <typename StackSetARNT = Aws::String>
228 StackSet& WithStackSetARN(StackSetARNT&& value) {
229 SetStackSetARN(std::forward<StackSetARNT>(value));
230 return *this;
231 }
233
235
244 inline const Aws::String& GetAdministrationRoleARN() const { return m_administrationRoleARN; }
245 inline bool AdministrationRoleARNHasBeenSet() const { return m_administrationRoleARNHasBeenSet; }
246 template <typename AdministrationRoleARNT = Aws::String>
247 void SetAdministrationRoleARN(AdministrationRoleARNT&& value) {
248 m_administrationRoleARNHasBeenSet = true;
249 m_administrationRoleARN = std::forward<AdministrationRoleARNT>(value);
250 }
251 template <typename AdministrationRoleARNT = Aws::String>
252 StackSet& WithAdministrationRoleARN(AdministrationRoleARNT&& value) {
253 SetAdministrationRoleARN(std::forward<AdministrationRoleARNT>(value));
254 return *this;
255 }
257
259
264 inline const Aws::String& GetExecutionRoleName() const { return m_executionRoleName; }
265 inline bool ExecutionRoleNameHasBeenSet() const { return m_executionRoleNameHasBeenSet; }
266 template <typename ExecutionRoleNameT = Aws::String>
267 void SetExecutionRoleName(ExecutionRoleNameT&& value) {
268 m_executionRoleNameHasBeenSet = true;
269 m_executionRoleName = std::forward<ExecutionRoleNameT>(value);
270 }
271 template <typename ExecutionRoleNameT = Aws::String>
272 StackSet& WithExecutionRoleName(ExecutionRoleNameT&& value) {
273 SetExecutionRoleName(std::forward<ExecutionRoleNameT>(value));
274 return *this;
275 }
277
279
285 inline const StackSetDriftDetectionDetails& GetStackSetDriftDetectionDetails() const { return m_stackSetDriftDetectionDetails; }
286 inline bool StackSetDriftDetectionDetailsHasBeenSet() const { return m_stackSetDriftDetectionDetailsHasBeenSet; }
287 template <typename StackSetDriftDetectionDetailsT = StackSetDriftDetectionDetails>
288 void SetStackSetDriftDetectionDetails(StackSetDriftDetectionDetailsT&& value) {
289 m_stackSetDriftDetectionDetailsHasBeenSet = true;
290 m_stackSetDriftDetectionDetails = std::forward<StackSetDriftDetectionDetailsT>(value);
291 }
292 template <typename StackSetDriftDetectionDetailsT = StackSetDriftDetectionDetails>
293 StackSet& WithStackSetDriftDetectionDetails(StackSetDriftDetectionDetailsT&& value) {
294 SetStackSetDriftDetectionDetails(std::forward<StackSetDriftDetectionDetailsT>(value));
295 return *this;
296 }
298
300
305 inline const AutoDeployment& GetAutoDeployment() const { return m_autoDeployment; }
306 inline bool AutoDeploymentHasBeenSet() const { return m_autoDeploymentHasBeenSet; }
307 template <typename AutoDeploymentT = AutoDeployment>
308 void SetAutoDeployment(AutoDeploymentT&& value) {
309 m_autoDeploymentHasBeenSet = true;
310 m_autoDeployment = std::forward<AutoDeploymentT>(value);
311 }
312 template <typename AutoDeploymentT = AutoDeployment>
313 StackSet& WithAutoDeployment(AutoDeploymentT&& value) {
314 SetAutoDeployment(std::forward<AutoDeploymentT>(value));
315 return *this;
316 }
318
320
333 inline PermissionModels GetPermissionModel() const { return m_permissionModel; }
334 inline bool PermissionModelHasBeenSet() const { return m_permissionModelHasBeenSet; }
336 m_permissionModelHasBeenSet = true;
337 m_permissionModel = value;
338 }
340 SetPermissionModel(value);
341 return *this;
342 }
344
346
351 inline const Aws::Vector<Aws::String>& GetOrganizationalUnitIds() const { return m_organizationalUnitIds; }
352 inline bool OrganizationalUnitIdsHasBeenSet() const { return m_organizationalUnitIdsHasBeenSet; }
353 template <typename OrganizationalUnitIdsT = Aws::Vector<Aws::String>>
354 void SetOrganizationalUnitIds(OrganizationalUnitIdsT&& value) {
355 m_organizationalUnitIdsHasBeenSet = true;
356 m_organizationalUnitIds = std::forward<OrganizationalUnitIdsT>(value);
357 }
358 template <typename OrganizationalUnitIdsT = Aws::Vector<Aws::String>>
359 StackSet& WithOrganizationalUnitIds(OrganizationalUnitIdsT&& value) {
360 SetOrganizationalUnitIds(std::forward<OrganizationalUnitIdsT>(value));
361 return *this;
362 }
363 template <typename OrganizationalUnitIdsT = Aws::String>
364 StackSet& AddOrganizationalUnitIds(OrganizationalUnitIdsT&& value) {
365 m_organizationalUnitIdsHasBeenSet = true;
366 m_organizationalUnitIds.emplace_back(std::forward<OrganizationalUnitIdsT>(value));
367 return *this;
368 }
370
372
376 inline const ManagedExecution& GetManagedExecution() const { return m_managedExecution; }
377 inline bool ManagedExecutionHasBeenSet() const { return m_managedExecutionHasBeenSet; }
378 template <typename ManagedExecutionT = ManagedExecution>
379 void SetManagedExecution(ManagedExecutionT&& value) {
380 m_managedExecutionHasBeenSet = true;
381 m_managedExecution = std::forward<ManagedExecutionT>(value);
382 }
383 template <typename ManagedExecutionT = ManagedExecution>
384 StackSet& WithManagedExecution(ManagedExecutionT&& value) {
385 SetManagedExecution(std::forward<ManagedExecutionT>(value));
386 return *this;
387 }
389
391
396 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
397 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
398 template <typename RegionsT = Aws::Vector<Aws::String>>
399 void SetRegions(RegionsT&& value) {
400 m_regionsHasBeenSet = true;
401 m_regions = std::forward<RegionsT>(value);
402 }
403 template <typename RegionsT = Aws::Vector<Aws::String>>
404 StackSet& WithRegions(RegionsT&& value) {
405 SetRegions(std::forward<RegionsT>(value));
406 return *this;
407 }
408 template <typename RegionsT = Aws::String>
409 StackSet& AddRegions(RegionsT&& value) {
410 m_regionsHasBeenSet = true;
411 m_regions.emplace_back(std::forward<RegionsT>(value));
412 return *this;
413 }
415
417
422 inline const Aws::String& GetStackSetOutputBucketPath() const { return m_stackSetOutputBucketPath; }
423 inline bool StackSetOutputBucketPathHasBeenSet() const { return m_stackSetOutputBucketPathHasBeenSet; }
424 template <typename StackSetOutputBucketPathT = Aws::String>
425 void SetStackSetOutputBucketPath(StackSetOutputBucketPathT&& value) {
426 m_stackSetOutputBucketPathHasBeenSet = true;
427 m_stackSetOutputBucketPath = std::forward<StackSetOutputBucketPathT>(value);
428 }
429 template <typename StackSetOutputBucketPathT = Aws::String>
430 StackSet& WithStackSetOutputBucketPath(StackSetOutputBucketPathT&& value) {
431 SetStackSetOutputBucketPath(std::forward<StackSetOutputBucketPathT>(value));
432 return *this;
433 }
435 private:
436 Aws::String m_stackSetName;
437
438 Aws::String m_stackSetId;
439
440 Aws::String m_description;
441
443
444 Aws::String m_templateBody;
445
446 Aws::Vector<Parameter> m_parameters;
447
448 Aws::Vector<Capability> m_capabilities;
449
450 Aws::Vector<Tag> m_tags;
451
452 Aws::String m_stackSetARN;
453
454 Aws::String m_administrationRoleARN;
455
456 Aws::String m_executionRoleName;
457
458 StackSetDriftDetectionDetails m_stackSetDriftDetectionDetails;
459
460 AutoDeployment m_autoDeployment;
461
463
464 Aws::Vector<Aws::String> m_organizationalUnitIds;
465
466 ManagedExecution m_managedExecution;
467
468 Aws::Vector<Aws::String> m_regions;
469
470 Aws::String m_stackSetOutputBucketPath;
471 bool m_stackSetNameHasBeenSet = false;
472 bool m_stackSetIdHasBeenSet = false;
473 bool m_descriptionHasBeenSet = false;
474 bool m_statusHasBeenSet = false;
475 bool m_templateBodyHasBeenSet = false;
476 bool m_parametersHasBeenSet = false;
477 bool m_capabilitiesHasBeenSet = false;
478 bool m_tagsHasBeenSet = false;
479 bool m_stackSetARNHasBeenSet = false;
480 bool m_administrationRoleARNHasBeenSet = false;
481 bool m_executionRoleNameHasBeenSet = false;
482 bool m_stackSetDriftDetectionDetailsHasBeenSet = false;
483 bool m_autoDeploymentHasBeenSet = false;
484 bool m_permissionModelHasBeenSet = false;
485 bool m_organizationalUnitIdsHasBeenSet = false;
486 bool m_managedExecutionHasBeenSet = false;
487 bool m_regionsHasBeenSet = false;
488 bool m_stackSetOutputBucketPathHasBeenSet = false;
489};
490
491} // namespace Model
492} // namespace CloudFormation
493} // namespace Aws
const StackSetDriftDetectionDetails & GetStackSetDriftDetectionDetails() const
Definition StackSet.h:285
StackSet & AddCapabilities(Capability value)
Definition StackSet.h:184
void SetTemplateBody(TemplateBodyT &&value)
Definition StackSet.h:128
const ManagedExecution & GetManagedExecution() const
Definition StackSet.h:376
PermissionModels GetPermissionModel() const
Definition StackSet.h:333
const Aws::String & GetExecutionRoleName() const
Definition StackSet.h:264
StackSet & AddRegions(RegionsT &&value)
Definition StackSet.h:409
StackSet & WithStatus(StackSetStatus value)
Definition StackSet.h:114
void SetStatus(StackSetStatus value)
Definition StackSet.h:110
const Aws::Vector< Capability > & GetCapabilities() const
Definition StackSet.h:172
StackSet & AddParameters(ParametersT &&value)
Definition StackSet.h:156
void SetAutoDeployment(AutoDeploymentT &&value)
Definition StackSet.h:308
void SetStackSetName(StackSetNameT &&value)
Definition StackSet.h:56
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
StackSet & WithStackSetId(StackSetIdT &&value)
Definition StackSet.h:79
const Aws::Vector< Aws::String > & GetRegions() const
Definition StackSet.h:396
StackSet & WithParameters(ParametersT &&value)
Definition StackSet.h:151
AWS_CLOUDFORMATION_API StackSet & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetStackSetOutputBucketPath() const
Definition StackSet.h:422
StackSet & WithAutoDeployment(AutoDeploymentT &&value)
Definition StackSet.h:313
void SetOrganizationalUnitIds(OrganizationalUnitIdsT &&value)
Definition StackSet.h:354
AWS_CLOUDFORMATION_API StackSet(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetAdministrationRoleARN(AdministrationRoleARNT &&value)
Definition StackSet.h:247
StackSet & WithAdministrationRoleARN(AdministrationRoleARNT &&value)
Definition StackSet.h:252
void SetStackSetOutputBucketPath(StackSetOutputBucketPathT &&value)
Definition StackSet.h:425
const Aws::String & GetTemplateBody() const
Definition StackSet.h:125
StackSet & WithStackSetDriftDetectionDetails(StackSetDriftDetectionDetailsT &&value)
Definition StackSet.h:293
const Aws::String & GetStackSetId() const
Definition StackSet.h:71
const Aws::Vector< Aws::String > & GetOrganizationalUnitIds() const
Definition StackSet.h:351
const Aws::String & GetStackSetName() const
Definition StackSet.h:53
void SetCapabilities(CapabilitiesT &&value)
Definition StackSet.h:175
StackSet & WithExecutionRoleName(ExecutionRoleNameT &&value)
Definition StackSet.h:272
const Aws::Vector< Parameter > & GetParameters() const
Definition StackSet.h:143
void SetManagedExecution(ManagedExecutionT &&value)
Definition StackSet.h:379
StackSet & WithPermissionModel(PermissionModels value)
Definition StackSet.h:339
void SetStackSetDriftDetectionDetails(StackSetDriftDetectionDetailsT &&value)
Definition StackSet.h:288
StackSet & WithTemplateBody(TemplateBodyT &&value)
Definition StackSet.h:133
StackSet & WithDescription(DescriptionT &&value)
Definition StackSet.h:98
void SetDescription(DescriptionT &&value)
Definition StackSet.h:93
StackSetStatus GetStatus() const
Definition StackSet.h:108
AWS_CLOUDFORMATION_API StackSet()=default
StackSet & WithOrganizationalUnitIds(OrganizationalUnitIdsT &&value)
Definition StackSet.h:359
StackSet & AddOrganizationalUnitIds(OrganizationalUnitIdsT &&value)
Definition StackSet.h:364
StackSet & WithRegions(RegionsT &&value)
Definition StackSet.h:404
void SetStackSetId(StackSetIdT &&value)
Definition StackSet.h:74
void SetPermissionModel(PermissionModels value)
Definition StackSet.h:335
void SetParameters(ParametersT &&value)
Definition StackSet.h:146
StackSet & WithStackSetName(StackSetNameT &&value)
Definition StackSet.h:61
StackSet & WithManagedExecution(ManagedExecutionT &&value)
Definition StackSet.h:384
StackSet & WithStackSetARN(StackSetARNT &&value)
Definition StackSet.h:228
void SetStackSetARN(StackSetARNT &&value)
Definition StackSet.h:223
bool StackSetOutputBucketPathHasBeenSet() const
Definition StackSet.h:423
StackSet & WithTags(TagsT &&value)
Definition StackSet.h:204
StackSet & WithCapabilities(CapabilitiesT &&value)
Definition StackSet.h:180
void SetRegions(RegionsT &&value)
Definition StackSet.h:399
StackSet & WithStackSetOutputBucketPath(StackSetOutputBucketPathT &&value)
Definition StackSet.h:430
StackSet & AddTags(TagsT &&value)
Definition StackSet.h:209
const Aws::String & GetAdministrationRoleARN() const
Definition StackSet.h:244
const Aws::String & GetDescription() const
Definition StackSet.h:90
const AutoDeployment & GetAutoDeployment() const
Definition StackSet.h:305
const Aws::Vector< Tag > & GetTags() const
Definition StackSet.h:196
bool StackSetDriftDetectionDetailsHasBeenSet() const
Definition StackSet.h:286
const Aws::String & GetStackSetARN() const
Definition StackSet.h:220
void SetExecutionRoleName(ExecutionRoleNameT &&value)
Definition StackSet.h:267
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream
std::vector< T, Aws::Allocator< T > > Vector