AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StackSet.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/cloudformation/model/StackSetStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/cloudformation/model/StackSetDriftDetectionDetails.h>
13#include <aws/cloudformation/model/AutoDeployment.h>
14#include <aws/cloudformation/model/PermissionModels.h>
15#include <aws/cloudformation/model/ManagedExecution.h>
16#include <aws/cloudformation/model/Parameter.h>
17#include <aws/cloudformation/model/Capability.h>
18#include <aws/cloudformation/model/Tag.h>
19#include <utility>
20
21namespace Aws
22{
23namespace Utils
24{
25namespace Xml
26{
27 class XmlNode;
28} // namespace Xml
29} // namespace Utils
30namespace CloudFormation
31{
32namespace Model
33{
34
45 {
46 public:
47 AWS_CLOUDFORMATION_API StackSet() = default;
48 AWS_CLOUDFORMATION_API StackSet(const Aws::Utils::Xml::XmlNode& xmlNode);
49 AWS_CLOUDFORMATION_API StackSet& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
50
51 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
52 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
53
54
56
59 inline const Aws::String& GetStackSetName() const { return m_stackSetName; }
60 inline bool StackSetNameHasBeenSet() const { return m_stackSetNameHasBeenSet; }
61 template<typename StackSetNameT = Aws::String>
62 void SetStackSetName(StackSetNameT&& value) { m_stackSetNameHasBeenSet = true; m_stackSetName = std::forward<StackSetNameT>(value); }
63 template<typename StackSetNameT = Aws::String>
64 StackSet& WithStackSetName(StackSetNameT&& value) { SetStackSetName(std::forward<StackSetNameT>(value)); return *this;}
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) { m_stackSetIdHasBeenSet = true; m_stackSetId = std::forward<StackSetIdT>(value); }
75 template<typename StackSetIdT = Aws::String>
76 StackSet& WithStackSetId(StackSetIdT&& value) { SetStackSetId(std::forward<StackSetIdT>(value)); return *this;}
78
80
84 inline const Aws::String& GetDescription() const { return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 template<typename DescriptionT = Aws::String>
87 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
88 template<typename DescriptionT = Aws::String>
89 StackSet& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
91
93
96 inline StackSetStatus GetStatus() const { return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 inline void SetStatus(StackSetStatus value) { m_statusHasBeenSet = true; m_status = value; }
99 inline StackSet& WithStatus(StackSetStatus value) { SetStatus(value); return *this;}
101
103
107 inline const Aws::String& GetTemplateBody() const { return m_templateBody; }
108 inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
109 template<typename TemplateBodyT = Aws::String>
110 void SetTemplateBody(TemplateBodyT&& value) { m_templateBodyHasBeenSet = true; m_templateBody = std::forward<TemplateBodyT>(value); }
111 template<typename TemplateBodyT = Aws::String>
112 StackSet& WithTemplateBody(TemplateBodyT&& value) { SetTemplateBody(std::forward<TemplateBodyT>(value)); return *this;}
114
116
119 inline const Aws::Vector<Parameter>& GetParameters() const { return m_parameters; }
120 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
121 template<typename ParametersT = Aws::Vector<Parameter>>
122 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
123 template<typename ParametersT = Aws::Vector<Parameter>>
124 StackSet& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
125 template<typename ParametersT = Parameter>
126 StackSet& AddParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters.emplace_back(std::forward<ParametersT>(value)); return *this; }
128
130
138 inline const Aws::Vector<Capability>& GetCapabilities() const { return m_capabilities; }
139 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
140 template<typename CapabilitiesT = Aws::Vector<Capability>>
141 void SetCapabilities(CapabilitiesT&& value) { m_capabilitiesHasBeenSet = true; m_capabilities = std::forward<CapabilitiesT>(value); }
142 template<typename CapabilitiesT = Aws::Vector<Capability>>
143 StackSet& WithCapabilities(CapabilitiesT&& value) { SetCapabilities(std::forward<CapabilitiesT>(value)); return *this;}
144 inline StackSet& AddCapabilities(Capability value) { m_capabilitiesHasBeenSet = true; m_capabilities.push_back(value); return *this; }
146
148
152 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
153 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
154 template<typename TagsT = Aws::Vector<Tag>>
155 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
156 template<typename TagsT = Aws::Vector<Tag>>
157 StackSet& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
158 template<typename TagsT = Tag>
159 StackSet& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
161
163
166 inline const Aws::String& GetStackSetARN() const { return m_stackSetARN; }
167 inline bool StackSetARNHasBeenSet() const { return m_stackSetARNHasBeenSet; }
168 template<typename StackSetARNT = Aws::String>
169 void SetStackSetARN(StackSetARNT&& value) { m_stackSetARNHasBeenSet = true; m_stackSetARN = std::forward<StackSetARNT>(value); }
170 template<typename StackSetARNT = Aws::String>
171 StackSet& WithStackSetARN(StackSetARNT&& value) { SetStackSetARN(std::forward<StackSetARNT>(value)); return *this;}
173
175
184 inline const Aws::String& GetAdministrationRoleARN() const { return m_administrationRoleARN; }
185 inline bool AdministrationRoleARNHasBeenSet() const { return m_administrationRoleARNHasBeenSet; }
186 template<typename AdministrationRoleARNT = Aws::String>
187 void SetAdministrationRoleARN(AdministrationRoleARNT&& value) { m_administrationRoleARNHasBeenSet = true; m_administrationRoleARN = std::forward<AdministrationRoleARNT>(value); }
188 template<typename AdministrationRoleARNT = Aws::String>
189 StackSet& WithAdministrationRoleARN(AdministrationRoleARNT&& value) { SetAdministrationRoleARN(std::forward<AdministrationRoleARNT>(value)); return *this;}
191
193
198 inline const Aws::String& GetExecutionRoleName() const { return m_executionRoleName; }
199 inline bool ExecutionRoleNameHasBeenSet() const { return m_executionRoleNameHasBeenSet; }
200 template<typename ExecutionRoleNameT = Aws::String>
201 void SetExecutionRoleName(ExecutionRoleNameT&& value) { m_executionRoleNameHasBeenSet = true; m_executionRoleName = std::forward<ExecutionRoleNameT>(value); }
202 template<typename ExecutionRoleNameT = Aws::String>
203 StackSet& WithExecutionRoleName(ExecutionRoleNameT&& value) { SetExecutionRoleName(std::forward<ExecutionRoleNameT>(value)); return *this;}
205
207
213 inline const StackSetDriftDetectionDetails& GetStackSetDriftDetectionDetails() const { return m_stackSetDriftDetectionDetails; }
214 inline bool StackSetDriftDetectionDetailsHasBeenSet() const { return m_stackSetDriftDetectionDetailsHasBeenSet; }
215 template<typename StackSetDriftDetectionDetailsT = StackSetDriftDetectionDetails>
216 void SetStackSetDriftDetectionDetails(StackSetDriftDetectionDetailsT&& value) { m_stackSetDriftDetectionDetailsHasBeenSet = true; m_stackSetDriftDetectionDetails = std::forward<StackSetDriftDetectionDetailsT>(value); }
217 template<typename StackSetDriftDetectionDetailsT = StackSetDriftDetectionDetails>
218 StackSet& WithStackSetDriftDetectionDetails(StackSetDriftDetectionDetailsT&& value) { SetStackSetDriftDetectionDetails(std::forward<StackSetDriftDetectionDetailsT>(value)); return *this;}
220
222
227 inline const AutoDeployment& GetAutoDeployment() const { return m_autoDeployment; }
228 inline bool AutoDeploymentHasBeenSet() const { return m_autoDeploymentHasBeenSet; }
229 template<typename AutoDeploymentT = AutoDeployment>
230 void SetAutoDeployment(AutoDeploymentT&& value) { m_autoDeploymentHasBeenSet = true; m_autoDeployment = std::forward<AutoDeploymentT>(value); }
231 template<typename AutoDeploymentT = AutoDeployment>
232 StackSet& WithAutoDeployment(AutoDeploymentT&& value) { SetAutoDeployment(std::forward<AutoDeploymentT>(value)); return *this;}
234
236
249 inline PermissionModels GetPermissionModel() const { return m_permissionModel; }
250 inline bool PermissionModelHasBeenSet() const { return m_permissionModelHasBeenSet; }
251 inline void SetPermissionModel(PermissionModels value) { m_permissionModelHasBeenSet = true; m_permissionModel = value; }
252 inline StackSet& WithPermissionModel(PermissionModels value) { SetPermissionModel(value); return *this;}
254
256
261 inline const Aws::Vector<Aws::String>& GetOrganizationalUnitIds() const { return m_organizationalUnitIds; }
262 inline bool OrganizationalUnitIdsHasBeenSet() const { return m_organizationalUnitIdsHasBeenSet; }
263 template<typename OrganizationalUnitIdsT = Aws::Vector<Aws::String>>
264 void SetOrganizationalUnitIds(OrganizationalUnitIdsT&& value) { m_organizationalUnitIdsHasBeenSet = true; m_organizationalUnitIds = std::forward<OrganizationalUnitIdsT>(value); }
265 template<typename OrganizationalUnitIdsT = Aws::Vector<Aws::String>>
266 StackSet& WithOrganizationalUnitIds(OrganizationalUnitIdsT&& value) { SetOrganizationalUnitIds(std::forward<OrganizationalUnitIdsT>(value)); return *this;}
267 template<typename OrganizationalUnitIdsT = Aws::String>
268 StackSet& AddOrganizationalUnitIds(OrganizationalUnitIdsT&& value) { m_organizationalUnitIdsHasBeenSet = true; m_organizationalUnitIds.emplace_back(std::forward<OrganizationalUnitIdsT>(value)); return *this; }
270
272
276 inline const ManagedExecution& GetManagedExecution() const { return m_managedExecution; }
277 inline bool ManagedExecutionHasBeenSet() const { return m_managedExecutionHasBeenSet; }
278 template<typename ManagedExecutionT = ManagedExecution>
279 void SetManagedExecution(ManagedExecutionT&& value) { m_managedExecutionHasBeenSet = true; m_managedExecution = std::forward<ManagedExecutionT>(value); }
280 template<typename ManagedExecutionT = ManagedExecution>
281 StackSet& WithManagedExecution(ManagedExecutionT&& value) { SetManagedExecution(std::forward<ManagedExecutionT>(value)); return *this;}
283
285
290 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
291 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
292 template<typename RegionsT = Aws::Vector<Aws::String>>
293 void SetRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions = std::forward<RegionsT>(value); }
294 template<typename RegionsT = Aws::Vector<Aws::String>>
295 StackSet& WithRegions(RegionsT&& value) { SetRegions(std::forward<RegionsT>(value)); return *this;}
296 template<typename RegionsT = Aws::String>
297 StackSet& AddRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions.emplace_back(std::forward<RegionsT>(value)); return *this; }
299 private:
300
301 Aws::String m_stackSetName;
302 bool m_stackSetNameHasBeenSet = false;
303
304 Aws::String m_stackSetId;
305 bool m_stackSetIdHasBeenSet = false;
306
307 Aws::String m_description;
308 bool m_descriptionHasBeenSet = false;
309
311 bool m_statusHasBeenSet = false;
312
313 Aws::String m_templateBody;
314 bool m_templateBodyHasBeenSet = false;
315
316 Aws::Vector<Parameter> m_parameters;
317 bool m_parametersHasBeenSet = false;
318
319 Aws::Vector<Capability> m_capabilities;
320 bool m_capabilitiesHasBeenSet = false;
321
322 Aws::Vector<Tag> m_tags;
323 bool m_tagsHasBeenSet = false;
324
325 Aws::String m_stackSetARN;
326 bool m_stackSetARNHasBeenSet = false;
327
328 Aws::String m_administrationRoleARN;
329 bool m_administrationRoleARNHasBeenSet = false;
330
331 Aws::String m_executionRoleName;
332 bool m_executionRoleNameHasBeenSet = false;
333
334 StackSetDriftDetectionDetails m_stackSetDriftDetectionDetails;
335 bool m_stackSetDriftDetectionDetailsHasBeenSet = false;
336
337 AutoDeployment m_autoDeployment;
338 bool m_autoDeploymentHasBeenSet = false;
339
341 bool m_permissionModelHasBeenSet = false;
342
343 Aws::Vector<Aws::String> m_organizationalUnitIds;
344 bool m_organizationalUnitIdsHasBeenSet = false;
345
346 ManagedExecution m_managedExecution;
347 bool m_managedExecutionHasBeenSet = false;
348
349 Aws::Vector<Aws::String> m_regions;
350 bool m_regionsHasBeenSet = false;
351 };
352
353} // namespace Model
354} // namespace CloudFormation
355} // namespace Aws
const StackSetDriftDetectionDetails & GetStackSetDriftDetectionDetails() const
Definition StackSet.h:213
StackSet & AddCapabilities(Capability value)
Definition StackSet.h:144
void SetTemplateBody(TemplateBodyT &&value)
Definition StackSet.h:110
const ManagedExecution & GetManagedExecution() const
Definition StackSet.h:276
PermissionModels GetPermissionModel() const
Definition StackSet.h:249
const Aws::String & GetExecutionRoleName() const
Definition StackSet.h:198
StackSet & AddRegions(RegionsT &&value)
Definition StackSet.h:297
StackSet & WithStatus(StackSetStatus value)
Definition StackSet.h:99
void SetStatus(StackSetStatus value)
Definition StackSet.h:98
const Aws::Vector< Capability > & GetCapabilities() const
Definition StackSet.h:138
StackSet & AddParameters(ParametersT &&value)
Definition StackSet.h:126
void SetAutoDeployment(AutoDeploymentT &&value)
Definition StackSet.h:230
void SetStackSetName(StackSetNameT &&value)
Definition StackSet.h:62
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
StackSet & WithStackSetId(StackSetIdT &&value)
Definition StackSet.h:76
const Aws::Vector< Aws::String > & GetRegions() const
Definition StackSet.h:290
StackSet & WithParameters(ParametersT &&value)
Definition StackSet.h:124
AWS_CLOUDFORMATION_API StackSet & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
StackSet & WithAutoDeployment(AutoDeploymentT &&value)
Definition StackSet.h:232
void SetOrganizationalUnitIds(OrganizationalUnitIdsT &&value)
Definition StackSet.h:264
AWS_CLOUDFORMATION_API StackSet(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetAdministrationRoleARN(AdministrationRoleARNT &&value)
Definition StackSet.h:187
StackSet & WithAdministrationRoleARN(AdministrationRoleARNT &&value)
Definition StackSet.h:189
const Aws::String & GetTemplateBody() const
Definition StackSet.h:107
StackSet & WithStackSetDriftDetectionDetails(StackSetDriftDetectionDetailsT &&value)
Definition StackSet.h:218
const Aws::String & GetStackSetId() const
Definition StackSet.h:71
const Aws::Vector< Aws::String > & GetOrganizationalUnitIds() const
Definition StackSet.h:261
const Aws::String & GetStackSetName() const
Definition StackSet.h:59
void SetCapabilities(CapabilitiesT &&value)
Definition StackSet.h:141
StackSet & WithExecutionRoleName(ExecutionRoleNameT &&value)
Definition StackSet.h:203
const Aws::Vector< Parameter > & GetParameters() const
Definition StackSet.h:119
void SetManagedExecution(ManagedExecutionT &&value)
Definition StackSet.h:279
StackSet & WithPermissionModel(PermissionModels value)
Definition StackSet.h:252
void SetStackSetDriftDetectionDetails(StackSetDriftDetectionDetailsT &&value)
Definition StackSet.h:216
StackSet & WithTemplateBody(TemplateBodyT &&value)
Definition StackSet.h:112
StackSet & WithDescription(DescriptionT &&value)
Definition StackSet.h:89
void SetDescription(DescriptionT &&value)
Definition StackSet.h:87
StackSetStatus GetStatus() const
Definition StackSet.h:96
AWS_CLOUDFORMATION_API StackSet()=default
StackSet & WithOrganizationalUnitIds(OrganizationalUnitIdsT &&value)
Definition StackSet.h:266
StackSet & AddOrganizationalUnitIds(OrganizationalUnitIdsT &&value)
Definition StackSet.h:268
StackSet & WithRegions(RegionsT &&value)
Definition StackSet.h:295
void SetStackSetId(StackSetIdT &&value)
Definition StackSet.h:74
void SetPermissionModel(PermissionModels value)
Definition StackSet.h:251
void SetParameters(ParametersT &&value)
Definition StackSet.h:122
StackSet & WithStackSetName(StackSetNameT &&value)
Definition StackSet.h:64
StackSet & WithManagedExecution(ManagedExecutionT &&value)
Definition StackSet.h:281
StackSet & WithStackSetARN(StackSetARNT &&value)
Definition StackSet.h:171
void SetStackSetARN(StackSetARNT &&value)
Definition StackSet.h:169
StackSet & WithTags(TagsT &&value)
Definition StackSet.h:157
StackSet & WithCapabilities(CapabilitiesT &&value)
Definition StackSet.h:143
void SetRegions(RegionsT &&value)
Definition StackSet.h:293
StackSet & AddTags(TagsT &&value)
Definition StackSet.h:159
const Aws::String & GetAdministrationRoleARN() const
Definition StackSet.h:184
const Aws::String & GetDescription() const
Definition StackSet.h:84
const AutoDeployment & GetAutoDeployment() const
Definition StackSet.h:227
const Aws::Vector< Tag > & GetTags() const
Definition StackSet.h:152
bool StackSetDriftDetectionDetailsHasBeenSet() const
Definition StackSet.h:214
const Aws::String & GetStackSetARN() const
Definition StackSet.h:166
void SetExecutionRoleName(ExecutionRoleNameT &&value)
Definition StackSet.h:201
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::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream