AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
UpdateStackInstancesRequest.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 UpdateStackInstancesRequest() = 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 "UpdateStackInstances"; }
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
68 inline const Aws::Vector<Aws::String>& GetAccounts() const { return m_accounts; }
69 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
70 template <typename AccountsT = Aws::Vector<Aws::String>>
71 void SetAccounts(AccountsT&& value) {
72 m_accountsHasBeenSet = true;
73 m_accounts = std::forward<AccountsT>(value);
74 }
75 template <typename AccountsT = Aws::Vector<Aws::String>>
77 SetAccounts(std::forward<AccountsT>(value));
78 return *this;
79 }
80 template <typename AccountsT = Aws::String>
82 m_accountsHasBeenSet = true;
83 m_accounts.emplace_back(std::forward<AccountsT>(value));
84 return *this;
85 }
87
89
97 inline const DeploymentTargets& GetDeploymentTargets() const { return m_deploymentTargets; }
98 inline bool DeploymentTargetsHasBeenSet() const { return m_deploymentTargetsHasBeenSet; }
99 template <typename DeploymentTargetsT = DeploymentTargets>
100 void SetDeploymentTargets(DeploymentTargetsT&& value) {
101 m_deploymentTargetsHasBeenSet = true;
102 m_deploymentTargets = std::forward<DeploymentTargetsT>(value);
103 }
104 template <typename DeploymentTargetsT = DeploymentTargets>
106 SetDeploymentTargets(std::forward<DeploymentTargetsT>(value));
107 return *this;
108 }
110
112
118 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
119 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
120 template <typename RegionsT = Aws::Vector<Aws::String>>
121 void SetRegions(RegionsT&& value) {
122 m_regionsHasBeenSet = true;
123 m_regions = std::forward<RegionsT>(value);
124 }
125 template <typename RegionsT = Aws::Vector<Aws::String>>
127 SetRegions(std::forward<RegionsT>(value));
128 return *this;
129 }
130 template <typename RegionsT = Aws::String>
132 m_regionsHasBeenSet = true;
133 m_regions.emplace_back(std::forward<RegionsT>(value));
134 return *this;
135 }
137
139
166 inline const Aws::Vector<Parameter>& GetParameterOverrides() const { return m_parameterOverrides; }
167 inline bool ParameterOverridesHasBeenSet() const { return m_parameterOverridesHasBeenSet; }
168 template <typename ParameterOverridesT = Aws::Vector<Parameter>>
169 void SetParameterOverrides(ParameterOverridesT&& value) {
170 m_parameterOverridesHasBeenSet = true;
171 m_parameterOverrides = std::forward<ParameterOverridesT>(value);
172 }
173 template <typename ParameterOverridesT = Aws::Vector<Parameter>>
175 SetParameterOverrides(std::forward<ParameterOverridesT>(value));
176 return *this;
177 }
178 template <typename ParameterOverridesT = Parameter>
180 m_parameterOverridesHasBeenSet = true;
181 m_parameterOverrides.emplace_back(std::forward<ParameterOverridesT>(value));
182 return *this;
183 }
185
187
190 inline const StackSetOperationPreferences& GetOperationPreferences() const { return m_operationPreferences; }
191 inline bool OperationPreferencesHasBeenSet() const { return m_operationPreferencesHasBeenSet; }
192 template <typename OperationPreferencesT = StackSetOperationPreferences>
193 void SetOperationPreferences(OperationPreferencesT&& value) {
194 m_operationPreferencesHasBeenSet = true;
195 m_operationPreferences = std::forward<OperationPreferencesT>(value);
196 }
197 template <typename OperationPreferencesT = StackSetOperationPreferences>
199 SetOperationPreferences(std::forward<OperationPreferencesT>(value));
200 return *this;
201 }
203
205
213 inline const Aws::String& GetOperationId() const { return m_operationId; }
214 inline bool OperationIdHasBeenSet() const { return m_operationIdHasBeenSet; }
215 template <typename OperationIdT = Aws::String>
216 void SetOperationId(OperationIdT&& value) {
217 m_operationIdHasBeenSet = true;
218 m_operationId = std::forward<OperationIdT>(value);
219 }
220 template <typename OperationIdT = Aws::String>
222 SetOperationId(std::forward<OperationIdT>(value));
223 return *this;
224 }
226
228
242 inline CallAs GetCallAs() const { return m_callAs; }
243 inline bool CallAsHasBeenSet() const { return m_callAsHasBeenSet; }
244 inline void SetCallAs(CallAs value) {
245 m_callAsHasBeenSet = true;
246 m_callAs = value;
247 }
249 SetCallAs(value);
250 return *this;
251 }
253 private:
254 Aws::String m_stackSetName;
255
256 Aws::Vector<Aws::String> m_accounts;
257
258 DeploymentTargets m_deploymentTargets;
259
260 Aws::Vector<Aws::String> m_regions;
261
262 Aws::Vector<Parameter> m_parameterOverrides;
263
264 StackSetOperationPreferences m_operationPreferences;
265
267
268 CallAs m_callAs{CallAs::NOT_SET};
269 bool m_stackSetNameHasBeenSet = false;
270 bool m_accountsHasBeenSet = false;
271 bool m_deploymentTargetsHasBeenSet = false;
272 bool m_regionsHasBeenSet = false;
273 bool m_parameterOverridesHasBeenSet = false;
274 bool m_operationPreferencesHasBeenSet = false;
275 bool m_operationIdHasBeenSet = true;
276 bool m_callAsHasBeenSet = false;
277};
278
279} // namespace Model
280} // namespace CloudFormation
281} // namespace Aws
UpdateStackInstancesRequest & WithRegions(RegionsT &&value)
UpdateStackInstancesRequest & WithAccounts(AccountsT &&value)
UpdateStackInstancesRequest & WithOperationPreferences(OperationPreferencesT &&value)
UpdateStackInstancesRequest & WithParameterOverrides(ParameterOverridesT &&value)
UpdateStackInstancesRequest & AddRegions(RegionsT &&value)
AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override
UpdateStackInstancesRequest & AddParameterOverrides(ParameterOverridesT &&value)
const StackSetOperationPreferences & GetOperationPreferences() const
AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
UpdateStackInstancesRequest & WithOperationId(OperationIdT &&value)
UpdateStackInstancesRequest & WithDeploymentTargets(DeploymentTargetsT &&value)
UpdateStackInstancesRequest & WithStackSetName(StackSetNameT &&value)
AWS_CLOUDFORMATION_API UpdateStackInstancesRequest()=default
UpdateStackInstancesRequest & AddAccounts(AccountsT &&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