AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateStackInstancesRequest.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 UpdateStackInstancesRequest() = default;
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 "UpdateStackInstances"; }
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 template<typename StackSetNameT = Aws::String>
53 void SetStackSetName(StackSetNameT&& value) { m_stackSetNameHasBeenSet = true; m_stackSetName = std::forward<StackSetNameT>(value); }
54 template<typename StackSetNameT = Aws::String>
55 UpdateStackInstancesRequest& WithStackSetName(StackSetNameT&& value) { SetStackSetName(std::forward<StackSetNameT>(value)); return *this;}
57
59
66 inline const Aws::Vector<Aws::String>& GetAccounts() const { return m_accounts; }
67 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
68 template<typename AccountsT = Aws::Vector<Aws::String>>
69 void SetAccounts(AccountsT&& value) { m_accountsHasBeenSet = true; m_accounts = std::forward<AccountsT>(value); }
70 template<typename AccountsT = Aws::Vector<Aws::String>>
71 UpdateStackInstancesRequest& WithAccounts(AccountsT&& value) { SetAccounts(std::forward<AccountsT>(value)); return *this;}
72 template<typename AccountsT = Aws::String>
73 UpdateStackInstancesRequest& AddAccounts(AccountsT&& value) { m_accountsHasBeenSet = true; m_accounts.emplace_back(std::forward<AccountsT>(value)); return *this; }
75
77
85 inline const DeploymentTargets& GetDeploymentTargets() const { return m_deploymentTargets; }
86 inline bool DeploymentTargetsHasBeenSet() const { return m_deploymentTargetsHasBeenSet; }
87 template<typename DeploymentTargetsT = DeploymentTargets>
88 void SetDeploymentTargets(DeploymentTargetsT&& value) { m_deploymentTargetsHasBeenSet = true; m_deploymentTargets = std::forward<DeploymentTargetsT>(value); }
89 template<typename DeploymentTargetsT = DeploymentTargets>
90 UpdateStackInstancesRequest& WithDeploymentTargets(DeploymentTargetsT&& value) { SetDeploymentTargets(std::forward<DeploymentTargetsT>(value)); return *this;}
92
94
100 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
101 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
102 template<typename RegionsT = Aws::Vector<Aws::String>>
103 void SetRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions = std::forward<RegionsT>(value); }
104 template<typename RegionsT = Aws::Vector<Aws::String>>
105 UpdateStackInstancesRequest& WithRegions(RegionsT&& value) { SetRegions(std::forward<RegionsT>(value)); return *this;}
106 template<typename RegionsT = Aws::String>
107 UpdateStackInstancesRequest& AddRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions.emplace_back(std::forward<RegionsT>(value)); return *this; }
109
111
138 inline const Aws::Vector<Parameter>& GetParameterOverrides() const { return m_parameterOverrides; }
139 inline bool ParameterOverridesHasBeenSet() const { return m_parameterOverridesHasBeenSet; }
140 template<typename ParameterOverridesT = Aws::Vector<Parameter>>
141 void SetParameterOverrides(ParameterOverridesT&& value) { m_parameterOverridesHasBeenSet = true; m_parameterOverrides = std::forward<ParameterOverridesT>(value); }
142 template<typename ParameterOverridesT = Aws::Vector<Parameter>>
143 UpdateStackInstancesRequest& WithParameterOverrides(ParameterOverridesT&& value) { SetParameterOverrides(std::forward<ParameterOverridesT>(value)); return *this;}
144 template<typename ParameterOverridesT = Parameter>
145 UpdateStackInstancesRequest& AddParameterOverrides(ParameterOverridesT&& value) { m_parameterOverridesHasBeenSet = true; m_parameterOverrides.emplace_back(std::forward<ParameterOverridesT>(value)); return *this; }
147
149
152 inline const StackSetOperationPreferences& GetOperationPreferences() const { return m_operationPreferences; }
153 inline bool OperationPreferencesHasBeenSet() const { return m_operationPreferencesHasBeenSet; }
154 template<typename OperationPreferencesT = StackSetOperationPreferences>
155 void SetOperationPreferences(OperationPreferencesT&& value) { m_operationPreferencesHasBeenSet = true; m_operationPreferences = std::forward<OperationPreferencesT>(value); }
156 template<typename OperationPreferencesT = StackSetOperationPreferences>
157 UpdateStackInstancesRequest& WithOperationPreferences(OperationPreferencesT&& value) { SetOperationPreferences(std::forward<OperationPreferencesT>(value)); return *this;}
159
161
169 inline const Aws::String& GetOperationId() const { return m_operationId; }
170 inline bool OperationIdHasBeenSet() const { return m_operationIdHasBeenSet; }
171 template<typename OperationIdT = Aws::String>
172 void SetOperationId(OperationIdT&& value) { m_operationIdHasBeenSet = true; m_operationId = std::forward<OperationIdT>(value); }
173 template<typename OperationIdT = Aws::String>
174 UpdateStackInstancesRequest& WithOperationId(OperationIdT&& value) { SetOperationId(std::forward<OperationIdT>(value)); return *this;}
176
178
192 inline CallAs GetCallAs() const { return m_callAs; }
193 inline bool CallAsHasBeenSet() const { return m_callAsHasBeenSet; }
194 inline void SetCallAs(CallAs value) { m_callAsHasBeenSet = true; m_callAs = value; }
195 inline UpdateStackInstancesRequest& WithCallAs(CallAs value) { SetCallAs(value); return *this;}
197 private:
198
199 Aws::String m_stackSetName;
200 bool m_stackSetNameHasBeenSet = false;
201
202 Aws::Vector<Aws::String> m_accounts;
203 bool m_accountsHasBeenSet = false;
204
205 DeploymentTargets m_deploymentTargets;
206 bool m_deploymentTargetsHasBeenSet = false;
207
208 Aws::Vector<Aws::String> m_regions;
209 bool m_regionsHasBeenSet = false;
210
211 Aws::Vector<Parameter> m_parameterOverrides;
212 bool m_parameterOverridesHasBeenSet = false;
213
214 StackSetOperationPreferences m_operationPreferences;
215 bool m_operationPreferencesHasBeenSet = false;
216
218 bool m_operationIdHasBeenSet = true;
219
220 CallAs m_callAs{CallAs::NOT_SET};
221 bool m_callAsHasBeenSet = false;
222 };
223
224} // namespace Model
225} // namespace CloudFormation
226} // 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