AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateStackSetRequest.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/CloudFormationRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/cloudformation/model/PermissionModels.h>
12#include <aws/cloudformation/model/AutoDeployment.h>
13#include <aws/cloudformation/model/CallAs.h>
14#include <aws/cloudformation/model/ManagedExecution.h>
15#include <aws/cloudformation/model/Parameter.h>
16#include <aws/cloudformation/model/Capability.h>
17#include <aws/cloudformation/model/Tag.h>
18#include <utility>
19#include <aws/core/utils/UUID.h>
20
21namespace Aws
22{
23namespace CloudFormation
24{
25namespace Model
26{
27
31 {
32 public:
33 AWS_CLOUDFORMATION_API CreateStackSetRequest() = 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 "CreateStackSet"; }
40
41 AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override;
42
43 protected:
44 AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
45
46 public:
47
49
55 inline const Aws::String& GetStackSetName() const { return m_stackSetName; }
56 inline bool StackSetNameHasBeenSet() const { return m_stackSetNameHasBeenSet; }
57 template<typename StackSetNameT = Aws::String>
58 void SetStackSetName(StackSetNameT&& value) { m_stackSetNameHasBeenSet = true; m_stackSetName = std::forward<StackSetNameT>(value); }
59 template<typename StackSetNameT = Aws::String>
60 CreateStackSetRequest& WithStackSetName(StackSetNameT&& value) { SetStackSetName(std::forward<StackSetNameT>(value)); return *this;}
62
64
68 inline const Aws::String& GetDescription() const { return m_description; }
69 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
70 template<typename DescriptionT = Aws::String>
71 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
72 template<typename DescriptionT = Aws::String>
73 CreateStackSetRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
75
77
83 inline const Aws::String& GetTemplateBody() const { return m_templateBody; }
84 inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
85 template<typename TemplateBodyT = Aws::String>
86 void SetTemplateBody(TemplateBodyT&& value) { m_templateBodyHasBeenSet = true; m_templateBody = std::forward<TemplateBodyT>(value); }
87 template<typename TemplateBodyT = Aws::String>
88 CreateStackSetRequest& WithTemplateBody(TemplateBodyT&& value) { SetTemplateBody(std::forward<TemplateBodyT>(value)); return *this;}
90
92
100 inline const Aws::String& GetTemplateURL() const { return m_templateURL; }
101 inline bool TemplateURLHasBeenSet() const { return m_templateURLHasBeenSet; }
102 template<typename TemplateURLT = Aws::String>
103 void SetTemplateURL(TemplateURLT&& value) { m_templateURLHasBeenSet = true; m_templateURL = std::forward<TemplateURLT>(value); }
104 template<typename TemplateURLT = Aws::String>
105 CreateStackSetRequest& WithTemplateURL(TemplateURLT&& value) { SetTemplateURL(std::forward<TemplateURLT>(value)); return *this;}
107
109
113 inline const Aws::String& GetStackId() const { return m_stackId; }
114 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
115 template<typename StackIdT = Aws::String>
116 void SetStackId(StackIdT&& value) { m_stackIdHasBeenSet = true; m_stackId = std::forward<StackIdT>(value); }
117 template<typename StackIdT = Aws::String>
118 CreateStackSetRequest& WithStackId(StackIdT&& value) { SetStackId(std::forward<StackIdT>(value)); return *this;}
120
122
125 inline const Aws::Vector<Parameter>& GetParameters() const { return m_parameters; }
126 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
127 template<typename ParametersT = Aws::Vector<Parameter>>
128 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
129 template<typename ParametersT = Aws::Vector<Parameter>>
130 CreateStackSetRequest& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
131 template<typename ParametersT = Parameter>
132 CreateStackSetRequest& AddParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters.emplace_back(std::forward<ParametersT>(value)); return *this; }
134
136
187 inline const Aws::Vector<Capability>& GetCapabilities() const { return m_capabilities; }
188 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
189 template<typename CapabilitiesT = Aws::Vector<Capability>>
190 void SetCapabilities(CapabilitiesT&& value) { m_capabilitiesHasBeenSet = true; m_capabilities = std::forward<CapabilitiesT>(value); }
191 template<typename CapabilitiesT = Aws::Vector<Capability>>
192 CreateStackSetRequest& WithCapabilities(CapabilitiesT&& value) { SetCapabilities(std::forward<CapabilitiesT>(value)); return *this;}
193 inline CreateStackSetRequest& AddCapabilities(Capability value) { m_capabilitiesHasBeenSet = true; m_capabilities.push_back(value); return *this; }
195
197
206 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
207 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
208 template<typename TagsT = Aws::Vector<Tag>>
209 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
210 template<typename TagsT = Aws::Vector<Tag>>
211 CreateStackSetRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
212 template<typename TagsT = Tag>
213 CreateStackSetRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
215
217
226 inline const Aws::String& GetAdministrationRoleARN() const { return m_administrationRoleARN; }
227 inline bool AdministrationRoleARNHasBeenSet() const { return m_administrationRoleARNHasBeenSet; }
228 template<typename AdministrationRoleARNT = Aws::String>
229 void SetAdministrationRoleARN(AdministrationRoleARNT&& value) { m_administrationRoleARNHasBeenSet = true; m_administrationRoleARN = std::forward<AdministrationRoleARNT>(value); }
230 template<typename AdministrationRoleARNT = Aws::String>
231 CreateStackSetRequest& WithAdministrationRoleARN(AdministrationRoleARNT&& value) { SetAdministrationRoleARN(std::forward<AdministrationRoleARNT>(value)); return *this;}
233
235
244 inline const Aws::String& GetExecutionRoleName() const { return m_executionRoleName; }
245 inline bool ExecutionRoleNameHasBeenSet() const { return m_executionRoleNameHasBeenSet; }
246 template<typename ExecutionRoleNameT = Aws::String>
247 void SetExecutionRoleName(ExecutionRoleNameT&& value) { m_executionRoleNameHasBeenSet = true; m_executionRoleName = std::forward<ExecutionRoleNameT>(value); }
248 template<typename ExecutionRoleNameT = Aws::String>
249 CreateStackSetRequest& WithExecutionRoleName(ExecutionRoleNameT&& value) { SetExecutionRoleName(std::forward<ExecutionRoleNameT>(value)); return *this;}
251
253
267 inline PermissionModels GetPermissionModel() const { return m_permissionModel; }
268 inline bool PermissionModelHasBeenSet() const { return m_permissionModelHasBeenSet; }
269 inline void SetPermissionModel(PermissionModels value) { m_permissionModelHasBeenSet = true; m_permissionModel = value; }
272
274
284 inline const AutoDeployment& GetAutoDeployment() const { return m_autoDeployment; }
285 inline bool AutoDeploymentHasBeenSet() const { return m_autoDeploymentHasBeenSet; }
286 template<typename AutoDeploymentT = AutoDeployment>
287 void SetAutoDeployment(AutoDeploymentT&& value) { m_autoDeploymentHasBeenSet = true; m_autoDeployment = std::forward<AutoDeploymentT>(value); }
288 template<typename AutoDeploymentT = AutoDeployment>
289 CreateStackSetRequest& WithAutoDeployment(AutoDeploymentT&& value) { SetAutoDeployment(std::forward<AutoDeploymentT>(value)); return *this;}
291
293
311 inline CallAs GetCallAs() const { return m_callAs; }
312 inline bool CallAsHasBeenSet() const { return m_callAsHasBeenSet; }
313 inline void SetCallAs(CallAs value) { m_callAsHasBeenSet = true; m_callAs = value; }
314 inline CreateStackSetRequest& WithCallAs(CallAs value) { SetCallAs(value); return *this;}
316
318
326 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
327 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
328 template<typename ClientRequestTokenT = Aws::String>
329 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
330 template<typename ClientRequestTokenT = Aws::String>
331 CreateStackSetRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
333
335
339 inline const ManagedExecution& GetManagedExecution() const { return m_managedExecution; }
340 inline bool ManagedExecutionHasBeenSet() const { return m_managedExecutionHasBeenSet; }
341 template<typename ManagedExecutionT = ManagedExecution>
342 void SetManagedExecution(ManagedExecutionT&& value) { m_managedExecutionHasBeenSet = true; m_managedExecution = std::forward<ManagedExecutionT>(value); }
343 template<typename ManagedExecutionT = ManagedExecution>
344 CreateStackSetRequest& WithManagedExecution(ManagedExecutionT&& value) { SetManagedExecution(std::forward<ManagedExecutionT>(value)); return *this;}
346 private:
347
348 Aws::String m_stackSetName;
349 bool m_stackSetNameHasBeenSet = false;
350
351 Aws::String m_description;
352 bool m_descriptionHasBeenSet = false;
353
354 Aws::String m_templateBody;
355 bool m_templateBodyHasBeenSet = false;
356
357 Aws::String m_templateURL;
358 bool m_templateURLHasBeenSet = false;
359
360 Aws::String m_stackId;
361 bool m_stackIdHasBeenSet = false;
362
363 Aws::Vector<Parameter> m_parameters;
364 bool m_parametersHasBeenSet = false;
365
366 Aws::Vector<Capability> m_capabilities;
367 bool m_capabilitiesHasBeenSet = false;
368
369 Aws::Vector<Tag> m_tags;
370 bool m_tagsHasBeenSet = false;
371
372 Aws::String m_administrationRoleARN;
373 bool m_administrationRoleARNHasBeenSet = false;
374
375 Aws::String m_executionRoleName;
376 bool m_executionRoleNameHasBeenSet = false;
377
379 bool m_permissionModelHasBeenSet = false;
380
381 AutoDeployment m_autoDeployment;
382 bool m_autoDeploymentHasBeenSet = false;
383
384 CallAs m_callAs{CallAs::NOT_SET};
385 bool m_callAsHasBeenSet = false;
386
387 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
388 bool m_clientRequestTokenHasBeenSet = true;
389
390 ManagedExecution m_managedExecution;
391 bool m_managedExecutionHasBeenSet = false;
392 };
393
394} // namespace Model
395} // namespace CloudFormation
396} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateStackSetRequest & WithCapabilities(CapabilitiesT &&value)
CreateStackSetRequest & WithClientRequestToken(ClientRequestTokenT &&value)
CreateStackSetRequest & WithManagedExecution(ManagedExecutionT &&value)
CreateStackSetRequest & WithTemplateURL(TemplateURLT &&value)
CreateStackSetRequest & AddParameters(ParametersT &&value)
CreateStackSetRequest & WithDescription(DescriptionT &&value)
CreateStackSetRequest & WithTemplateBody(TemplateBodyT &&value)
CreateStackSetRequest & WithTags(TagsT &&value)
AWS_CLOUDFORMATION_API CreateStackSetRequest()=default
CreateStackSetRequest & WithStackSetName(StackSetNameT &&value)
CreateStackSetRequest & WithExecutionRoleName(ExecutionRoleNameT &&value)
AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateStackSetRequest & WithStackId(StackIdT &&value)
const Aws::Vector< Parameter > & GetParameters() const
const Aws::Vector< Capability > & GetCapabilities() const
CreateStackSetRequest & WithAdministrationRoleARN(AdministrationRoleARNT &&value)
CreateStackSetRequest & WithAutoDeployment(AutoDeploymentT &&value)
CreateStackSetRequest & WithParameters(ParametersT &&value)
void SetAdministrationRoleARN(AdministrationRoleARNT &&value)
CreateStackSetRequest & AddTags(TagsT &&value)
CreateStackSetRequest & AddCapabilities(Capability value)
AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override
void SetClientRequestToken(ClientRequestTokenT &&value)
CreateStackSetRequest & WithCallAs(CallAs value)
CreateStackSetRequest & WithPermissionModel(PermissionModels value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector