AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
CreateStackInstancesRequest.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormationRequest.h>
8#include <aws/cloudformation/CloudFormation_EXPORTS.h>
9#include <aws/cloudformation/model/CallAs.h>
10#include <aws/cloudformation/model/DeploymentTargets.h>
11#include <aws/cloudformation/model/Parameter.h>
12#include <aws/cloudformation/model/StackSetOperationPreferences.h>
13#include <aws/core/utils/UUID.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace CloudFormation {
21namespace Model {
22
26 public:
27 AWS_CLOUDFORMATION_API CreateStackInstancesRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateStackInstances"; }
34
35 AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
39
40 public:
42
46 inline const Aws::String& GetStackSetName() const { return m_stackSetName; }
47 inline bool StackSetNameHasBeenSet() const { return m_stackSetNameHasBeenSet; }
48 template <typename StackSetNameT = Aws::String>
49 void SetStackSetName(StackSetNameT&& value) {
50 m_stackSetNameHasBeenSet = true;
51 m_stackSetName = std::forward<StackSetNameT>(value);
52 }
53 template <typename StackSetNameT = Aws::String>
55 SetStackSetName(std::forward<StackSetNameT>(value));
56 return *this;
57 }
59
61
67 inline const Aws::Vector<Aws::String>& GetAccounts() const { return m_accounts; }
68 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
69 template <typename AccountsT = Aws::Vector<Aws::String>>
70 void SetAccounts(AccountsT&& value) {
71 m_accountsHasBeenSet = true;
72 m_accounts = std::forward<AccountsT>(value);
73 }
74 template <typename AccountsT = Aws::Vector<Aws::String>>
76 SetAccounts(std::forward<AccountsT>(value));
77 return *this;
78 }
79 template <typename AccountsT = Aws::String>
81 m_accountsHasBeenSet = true;
82 m_accounts.emplace_back(std::forward<AccountsT>(value));
83 return *this;
84 }
86
88
94 inline const DeploymentTargets& GetDeploymentTargets() const { return m_deploymentTargets; }
95 inline bool DeploymentTargetsHasBeenSet() const { return m_deploymentTargetsHasBeenSet; }
96 template <typename DeploymentTargetsT = DeploymentTargets>
97 void SetDeploymentTargets(DeploymentTargetsT&& value) {
98 m_deploymentTargetsHasBeenSet = true;
99 m_deploymentTargets = std::forward<DeploymentTargetsT>(value);
100 }
101 template <typename DeploymentTargetsT = DeploymentTargets>
103 SetDeploymentTargets(std::forward<DeploymentTargetsT>(value));
104 return *this;
105 }
107
109
113 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
114 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
115 template <typename RegionsT = Aws::Vector<Aws::String>>
116 void SetRegions(RegionsT&& value) {
117 m_regionsHasBeenSet = true;
118 m_regions = std::forward<RegionsT>(value);
119 }
120 template <typename RegionsT = Aws::Vector<Aws::String>>
122 SetRegions(std::forward<RegionsT>(value));
123 return *this;
124 }
125 template <typename RegionsT = Aws::String>
127 m_regionsHasBeenSet = true;
128 m_regions.emplace_back(std::forward<RegionsT>(value));
129 return *this;
130 }
132
134
155 inline const Aws::Vector<Parameter>& GetParameterOverrides() const { return m_parameterOverrides; }
156 inline bool ParameterOverridesHasBeenSet() const { return m_parameterOverridesHasBeenSet; }
157 template <typename ParameterOverridesT = Aws::Vector<Parameter>>
158 void SetParameterOverrides(ParameterOverridesT&& value) {
159 m_parameterOverridesHasBeenSet = true;
160 m_parameterOverrides = std::forward<ParameterOverridesT>(value);
161 }
162 template <typename ParameterOverridesT = Aws::Vector<Parameter>>
164 SetParameterOverrides(std::forward<ParameterOverridesT>(value));
165 return *this;
166 }
167 template <typename ParameterOverridesT = Parameter>
169 m_parameterOverridesHasBeenSet = true;
170 m_parameterOverrides.emplace_back(std::forward<ParameterOverridesT>(value));
171 return *this;
172 }
174
176
179 inline const StackSetOperationPreferences& GetOperationPreferences() const { return m_operationPreferences; }
180 inline bool OperationPreferencesHasBeenSet() const { return m_operationPreferencesHasBeenSet; }
181 template <typename OperationPreferencesT = StackSetOperationPreferences>
182 void SetOperationPreferences(OperationPreferencesT&& value) {
183 m_operationPreferencesHasBeenSet = true;
184 m_operationPreferences = std::forward<OperationPreferencesT>(value);
185 }
186 template <typename OperationPreferencesT = StackSetOperationPreferences>
188 SetOperationPreferences(std::forward<OperationPreferencesT>(value));
189 return *this;
190 }
192
194
204 inline const Aws::String& GetOperationId() const { return m_operationId; }
205 inline bool OperationIdHasBeenSet() const { return m_operationIdHasBeenSet; }
206 template <typename OperationIdT = Aws::String>
207 void SetOperationId(OperationIdT&& value) {
208 m_operationIdHasBeenSet = true;
209 m_operationId = std::forward<OperationIdT>(value);
210 }
211 template <typename OperationIdT = Aws::String>
213 SetOperationId(std::forward<OperationIdT>(value));
214 return *this;
215 }
217
219
233 inline CallAs GetCallAs() const { return m_callAs; }
234 inline bool CallAsHasBeenSet() const { return m_callAsHasBeenSet; }
235 inline void SetCallAs(CallAs value) {
236 m_callAsHasBeenSet = true;
237 m_callAs = value;
238 }
240 SetCallAs(value);
241 return *this;
242 }
244 private:
245 Aws::String m_stackSetName;
246
247 Aws::Vector<Aws::String> m_accounts;
248
249 DeploymentTargets m_deploymentTargets;
250
251 Aws::Vector<Aws::String> m_regions;
252
253 Aws::Vector<Parameter> m_parameterOverrides;
254
255 StackSetOperationPreferences m_operationPreferences;
256
258
259 CallAs m_callAs{CallAs::NOT_SET};
260 bool m_stackSetNameHasBeenSet = false;
261 bool m_accountsHasBeenSet = false;
262 bool m_deploymentTargetsHasBeenSet = false;
263 bool m_regionsHasBeenSet = false;
264 bool m_parameterOverridesHasBeenSet = false;
265 bool m_operationPreferencesHasBeenSet = false;
266 bool m_operationIdHasBeenSet = true;
267 bool m_callAsHasBeenSet = false;
268};
269
270} // namespace Model
271} // namespace CloudFormation
272} // namespace Aws
CreateStackInstancesRequest & WithParameterOverrides(ParameterOverridesT &&value)
CreateStackInstancesRequest & WithOperationId(OperationIdT &&value)
CreateStackInstancesRequest & WithDeploymentTargets(DeploymentTargetsT &&value)
CreateStackInstancesRequest & WithRegions(RegionsT &&value)
CreateStackInstancesRequest & WithStackSetName(StackSetNameT &&value)
CreateStackInstancesRequest & AddParameterOverrides(ParameterOverridesT &&value)
const StackSetOperationPreferences & GetOperationPreferences() const
CreateStackInstancesRequest & WithOperationPreferences(OperationPreferencesT &&value)
AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override
CreateStackInstancesRequest & AddAccounts(AccountsT &&value)
CreateStackInstancesRequest & WithAccounts(AccountsT &&value)
CreateStackInstancesRequest & AddRegions(RegionsT &&value)
AWS_CLOUDFORMATION_API CreateStackInstancesRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector