AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateStackInstancesRequest.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/DeploymentTargets.h>
12#include <aws/cloudformation/model/StackSetOperationPreferences.h>
13#include <aws/cloudformation/model/CallAs.h>
14#include <aws/cloudformation/model/Parameter.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace CloudFormation
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_CLOUDFORMATION_API CreateStackInstancesRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateStackInstances"; }
37
38 AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
50 inline const Aws::String& GetStackSetName() const{ return m_stackSetName; }
51 inline bool StackSetNameHasBeenSet() const { return m_stackSetNameHasBeenSet; }
52 inline void SetStackSetName(const Aws::String& value) { m_stackSetNameHasBeenSet = true; m_stackSetName = value; }
53 inline void SetStackSetName(Aws::String&& value) { m_stackSetNameHasBeenSet = true; m_stackSetName = std::move(value); }
54 inline void SetStackSetName(const char* value) { m_stackSetNameHasBeenSet = true; m_stackSetName.assign(value); }
55 inline CreateStackInstancesRequest& WithStackSetName(const Aws::String& value) { SetStackSetName(value); return *this;}
56 inline CreateStackInstancesRequest& WithStackSetName(Aws::String&& value) { SetStackSetName(std::move(value)); return *this;}
57 inline CreateStackInstancesRequest& WithStackSetName(const char* value) { SetStackSetName(value); return *this;}
59
61
67 inline const Aws::Vector<Aws::String>& GetAccounts() const{ return m_accounts; }
68 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
69 inline void SetAccounts(const Aws::Vector<Aws::String>& value) { m_accountsHasBeenSet = true; m_accounts = value; }
70 inline void SetAccounts(Aws::Vector<Aws::String>&& value) { m_accountsHasBeenSet = true; m_accounts = std::move(value); }
72 inline CreateStackInstancesRequest& WithAccounts(Aws::Vector<Aws::String>&& value) { SetAccounts(std::move(value)); return *this;}
73 inline CreateStackInstancesRequest& AddAccounts(const Aws::String& value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; }
74 inline CreateStackInstancesRequest& AddAccounts(Aws::String&& value) { m_accountsHasBeenSet = true; m_accounts.push_back(std::move(value)); return *this; }
75 inline CreateStackInstancesRequest& AddAccounts(const char* value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; }
77
79
85 inline const DeploymentTargets& GetDeploymentTargets() const{ return m_deploymentTargets; }
86 inline bool DeploymentTargetsHasBeenSet() const { return m_deploymentTargetsHasBeenSet; }
87 inline void SetDeploymentTargets(const DeploymentTargets& value) { m_deploymentTargetsHasBeenSet = true; m_deploymentTargets = value; }
88 inline void SetDeploymentTargets(DeploymentTargets&& value) { m_deploymentTargetsHasBeenSet = true; m_deploymentTargets = std::move(value); }
92
94
98 inline const Aws::Vector<Aws::String>& GetRegions() const{ return m_regions; }
99 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
100 inline void SetRegions(const Aws::Vector<Aws::String>& value) { m_regionsHasBeenSet = true; m_regions = value; }
101 inline void SetRegions(Aws::Vector<Aws::String>&& value) { m_regionsHasBeenSet = true; m_regions = std::move(value); }
102 inline CreateStackInstancesRequest& WithRegions(const Aws::Vector<Aws::String>& value) { SetRegions(value); return *this;}
103 inline CreateStackInstancesRequest& WithRegions(Aws::Vector<Aws::String>&& value) { SetRegions(std::move(value)); return *this;}
104 inline CreateStackInstancesRequest& AddRegions(const Aws::String& value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
105 inline CreateStackInstancesRequest& AddRegions(Aws::String&& value) { m_regionsHasBeenSet = true; m_regions.push_back(std::move(value)); return *this; }
106 inline CreateStackInstancesRequest& AddRegions(const char* value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
108
110
131 inline const Aws::Vector<Parameter>& GetParameterOverrides() const{ return m_parameterOverrides; }
132 inline bool ParameterOverridesHasBeenSet() const { return m_parameterOverridesHasBeenSet; }
133 inline void SetParameterOverrides(const Aws::Vector<Parameter>& value) { m_parameterOverridesHasBeenSet = true; m_parameterOverrides = value; }
134 inline void SetParameterOverrides(Aws::Vector<Parameter>&& value) { m_parameterOverridesHasBeenSet = true; m_parameterOverrides = std::move(value); }
137 inline CreateStackInstancesRequest& AddParameterOverrides(const Parameter& value) { m_parameterOverridesHasBeenSet = true; m_parameterOverrides.push_back(value); return *this; }
138 inline CreateStackInstancesRequest& AddParameterOverrides(Parameter&& value) { m_parameterOverridesHasBeenSet = true; m_parameterOverrides.push_back(std::move(value)); return *this; }
140
142
145 inline const StackSetOperationPreferences& GetOperationPreferences() const{ return m_operationPreferences; }
146 inline bool OperationPreferencesHasBeenSet() const { return m_operationPreferencesHasBeenSet; }
147 inline void SetOperationPreferences(const StackSetOperationPreferences& value) { m_operationPreferencesHasBeenSet = true; m_operationPreferences = value; }
148 inline void SetOperationPreferences(StackSetOperationPreferences&& value) { m_operationPreferencesHasBeenSet = true; m_operationPreferences = std::move(value); }
152
154
164 inline const Aws::String& GetOperationId() const{ return m_operationId; }
165 inline bool OperationIdHasBeenSet() const { return m_operationIdHasBeenSet; }
166 inline void SetOperationId(const Aws::String& value) { m_operationIdHasBeenSet = true; m_operationId = value; }
167 inline void SetOperationId(Aws::String&& value) { m_operationIdHasBeenSet = true; m_operationId = std::move(value); }
168 inline void SetOperationId(const char* value) { m_operationIdHasBeenSet = true; m_operationId.assign(value); }
169 inline CreateStackInstancesRequest& WithOperationId(const Aws::String& value) { SetOperationId(value); return *this;}
170 inline CreateStackInstancesRequest& WithOperationId(Aws::String&& value) { SetOperationId(std::move(value)); return *this;}
171 inline CreateStackInstancesRequest& WithOperationId(const char* value) { SetOperationId(value); return *this;}
173
175
189 inline const CallAs& GetCallAs() const{ return m_callAs; }
190 inline bool CallAsHasBeenSet() const { return m_callAsHasBeenSet; }
191 inline void SetCallAs(const CallAs& value) { m_callAsHasBeenSet = true; m_callAs = value; }
192 inline void SetCallAs(CallAs&& value) { m_callAsHasBeenSet = true; m_callAs = std::move(value); }
193 inline CreateStackInstancesRequest& WithCallAs(const CallAs& value) { SetCallAs(value); return *this;}
194 inline CreateStackInstancesRequest& WithCallAs(CallAs&& value) { SetCallAs(std::move(value)); return *this;}
196 private:
197
198 Aws::String m_stackSetName;
199 bool m_stackSetNameHasBeenSet = false;
200
201 Aws::Vector<Aws::String> m_accounts;
202 bool m_accountsHasBeenSet = false;
203
204 DeploymentTargets m_deploymentTargets;
205 bool m_deploymentTargetsHasBeenSet = false;
206
207 Aws::Vector<Aws::String> m_regions;
208 bool m_regionsHasBeenSet = false;
209
210 Aws::Vector<Parameter> m_parameterOverrides;
211 bool m_parameterOverridesHasBeenSet = false;
212
213 StackSetOperationPreferences m_operationPreferences;
214 bool m_operationPreferencesHasBeenSet = false;
215
216 Aws::String m_operationId;
217 bool m_operationIdHasBeenSet = false;
218
219 CallAs m_callAs;
220 bool m_callAsHasBeenSet = false;
221 };
222
223} // namespace Model
224} // namespace CloudFormation
225} // namespace Aws
CreateStackInstancesRequest & WithParameterOverrides(const Aws::Vector< Parameter > &value)
CreateStackInstancesRequest & WithOperationId(const Aws::String &value)
CreateStackInstancesRequest & WithAccounts(Aws::Vector< Aws::String > &&value)
CreateStackInstancesRequest & AddRegions(const char *value)
CreateStackInstancesRequest & WithOperationId(Aws::String &&value)
void SetParameterOverrides(const Aws::Vector< Parameter > &value)
CreateStackInstancesRequest & AddAccounts(const char *value)
CreateStackInstancesRequest & WithCallAs(const CallAs &value)
CreateStackInstancesRequest & WithCallAs(CallAs &&value)
CreateStackInstancesRequest & AddParameterOverrides(const Parameter &value)
CreateStackInstancesRequest & WithOperationPreferences(StackSetOperationPreferences &&value)
CreateStackInstancesRequest & AddRegions(Aws::String &&value)
CreateStackInstancesRequest & WithStackSetName(Aws::String &&value)
CreateStackInstancesRequest & WithRegions(const Aws::Vector< Aws::String > &value)
CreateStackInstancesRequest & WithDeploymentTargets(DeploymentTargets &&value)
const StackSetOperationPreferences & GetOperationPreferences() const
CreateStackInstancesRequest & AddParameterOverrides(Parameter &&value)
CreateStackInstancesRequest & AddAccounts(Aws::String &&value)
CreateStackInstancesRequest & WithDeploymentTargets(const DeploymentTargets &value)
AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override
CreateStackInstancesRequest & WithAccounts(const Aws::Vector< Aws::String > &value)
CreateStackInstancesRequest & WithParameterOverrides(Aws::Vector< Parameter > &&value)
CreateStackInstancesRequest & AddAccounts(const Aws::String &value)
CreateStackInstancesRequest & WithOperationId(const char *value)
CreateStackInstancesRequest & WithRegions(Aws::Vector< Aws::String > &&value)
void SetRegions(const Aws::Vector< Aws::String > &value)
CreateStackInstancesRequest & WithOperationPreferences(const StackSetOperationPreferences &value)
void SetOperationPreferences(const StackSetOperationPreferences &value)
void SetOperationPreferences(StackSetOperationPreferences &&value)
CreateStackInstancesRequest & WithStackSetName(const Aws::String &value)
void SetAccounts(const Aws::Vector< Aws::String > &value)
CreateStackInstancesRequest & WithStackSetName(const char *value)
CreateStackInstancesRequest & AddRegions(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector