AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 UpdateStackInstancesRequest& WithStackSetName(const Aws::String& value) { SetStackSetName(value); return *this;}
56 inline UpdateStackInstancesRequest& WithStackSetName(Aws::String&& value) { SetStackSetName(std::move(value)); return *this;}
57 inline UpdateStackInstancesRequest& WithStackSetName(const char* value) { SetStackSetName(value); return *this;}
59
61
68 inline const Aws::Vector<Aws::String>& GetAccounts() const{ return m_accounts; }
69 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
70 inline void SetAccounts(const Aws::Vector<Aws::String>& value) { m_accountsHasBeenSet = true; m_accounts = value; }
71 inline void SetAccounts(Aws::Vector<Aws::String>&& value) { m_accountsHasBeenSet = true; m_accounts = std::move(value); }
73 inline UpdateStackInstancesRequest& WithAccounts(Aws::Vector<Aws::String>&& value) { SetAccounts(std::move(value)); return *this;}
74 inline UpdateStackInstancesRequest& AddAccounts(const Aws::String& value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; }
75 inline UpdateStackInstancesRequest& AddAccounts(Aws::String&& value) { m_accountsHasBeenSet = true; m_accounts.push_back(std::move(value)); return *this; }
76 inline UpdateStackInstancesRequest& AddAccounts(const char* value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; }
78
80
88 inline const DeploymentTargets& GetDeploymentTargets() const{ return m_deploymentTargets; }
89 inline bool DeploymentTargetsHasBeenSet() const { return m_deploymentTargetsHasBeenSet; }
90 inline void SetDeploymentTargets(const DeploymentTargets& value) { m_deploymentTargetsHasBeenSet = true; m_deploymentTargets = value; }
91 inline void SetDeploymentTargets(DeploymentTargets&& value) { m_deploymentTargetsHasBeenSet = true; m_deploymentTargets = std::move(value); }
95
97
103 inline const Aws::Vector<Aws::String>& GetRegions() const{ return m_regions; }
104 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
105 inline void SetRegions(const Aws::Vector<Aws::String>& value) { m_regionsHasBeenSet = true; m_regions = value; }
106 inline void SetRegions(Aws::Vector<Aws::String>&& value) { m_regionsHasBeenSet = true; m_regions = std::move(value); }
107 inline UpdateStackInstancesRequest& WithRegions(const Aws::Vector<Aws::String>& value) { SetRegions(value); return *this;}
108 inline UpdateStackInstancesRequest& WithRegions(Aws::Vector<Aws::String>&& value) { SetRegions(std::move(value)); return *this;}
109 inline UpdateStackInstancesRequest& AddRegions(const Aws::String& value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
110 inline UpdateStackInstancesRequest& AddRegions(Aws::String&& value) { m_regionsHasBeenSet = true; m_regions.push_back(std::move(value)); return *this; }
111 inline UpdateStackInstancesRequest& AddRegions(const char* value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
113
115
142 inline const Aws::Vector<Parameter>& GetParameterOverrides() const{ return m_parameterOverrides; }
143 inline bool ParameterOverridesHasBeenSet() const { return m_parameterOverridesHasBeenSet; }
144 inline void SetParameterOverrides(const Aws::Vector<Parameter>& value) { m_parameterOverridesHasBeenSet = true; m_parameterOverrides = value; }
145 inline void SetParameterOverrides(Aws::Vector<Parameter>&& value) { m_parameterOverridesHasBeenSet = true; m_parameterOverrides = std::move(value); }
148 inline UpdateStackInstancesRequest& AddParameterOverrides(const Parameter& value) { m_parameterOverridesHasBeenSet = true; m_parameterOverrides.push_back(value); return *this; }
149 inline UpdateStackInstancesRequest& AddParameterOverrides(Parameter&& value) { m_parameterOverridesHasBeenSet = true; m_parameterOverrides.push_back(std::move(value)); return *this; }
151
153
156 inline const StackSetOperationPreferences& GetOperationPreferences() const{ return m_operationPreferences; }
157 inline bool OperationPreferencesHasBeenSet() const { return m_operationPreferencesHasBeenSet; }
158 inline void SetOperationPreferences(const StackSetOperationPreferences& value) { m_operationPreferencesHasBeenSet = true; m_operationPreferences = value; }
159 inline void SetOperationPreferences(StackSetOperationPreferences&& value) { m_operationPreferencesHasBeenSet = true; m_operationPreferences = std::move(value); }
163
165
173 inline const Aws::String& GetOperationId() const{ return m_operationId; }
174 inline bool OperationIdHasBeenSet() const { return m_operationIdHasBeenSet; }
175 inline void SetOperationId(const Aws::String& value) { m_operationIdHasBeenSet = true; m_operationId = value; }
176 inline void SetOperationId(Aws::String&& value) { m_operationIdHasBeenSet = true; m_operationId = std::move(value); }
177 inline void SetOperationId(const char* value) { m_operationIdHasBeenSet = true; m_operationId.assign(value); }
178 inline UpdateStackInstancesRequest& WithOperationId(const Aws::String& value) { SetOperationId(value); return *this;}
179 inline UpdateStackInstancesRequest& WithOperationId(Aws::String&& value) { SetOperationId(std::move(value)); return *this;}
180 inline UpdateStackInstancesRequest& WithOperationId(const char* value) { SetOperationId(value); return *this;}
182
184
198 inline const CallAs& GetCallAs() const{ return m_callAs; }
199 inline bool CallAsHasBeenSet() const { return m_callAsHasBeenSet; }
200 inline void SetCallAs(const CallAs& value) { m_callAsHasBeenSet = true; m_callAs = value; }
201 inline void SetCallAs(CallAs&& value) { m_callAsHasBeenSet = true; m_callAs = std::move(value); }
202 inline UpdateStackInstancesRequest& WithCallAs(const CallAs& value) { SetCallAs(value); return *this;}
203 inline UpdateStackInstancesRequest& WithCallAs(CallAs&& value) { SetCallAs(std::move(value)); return *this;}
205 private:
206
207 Aws::String m_stackSetName;
208 bool m_stackSetNameHasBeenSet = false;
209
210 Aws::Vector<Aws::String> m_accounts;
211 bool m_accountsHasBeenSet = false;
212
213 DeploymentTargets m_deploymentTargets;
214 bool m_deploymentTargetsHasBeenSet = false;
215
216 Aws::Vector<Aws::String> m_regions;
217 bool m_regionsHasBeenSet = false;
218
219 Aws::Vector<Parameter> m_parameterOverrides;
220 bool m_parameterOverridesHasBeenSet = false;
221
222 StackSetOperationPreferences m_operationPreferences;
223 bool m_operationPreferencesHasBeenSet = false;
224
225 Aws::String m_operationId;
226 bool m_operationIdHasBeenSet = false;
227
228 CallAs m_callAs;
229 bool m_callAsHasBeenSet = false;
230 };
231
232} // namespace Model
233} // namespace CloudFormation
234} // namespace Aws
UpdateStackInstancesRequest & WithParameterOverrides(Aws::Vector< Parameter > &&value)
void SetRegions(const Aws::Vector< Aws::String > &value)
UpdateStackInstancesRequest & WithRegions(Aws::Vector< Aws::String > &&value)
UpdateStackInstancesRequest & AddAccounts(Aws::String &&value)
void SetAccounts(const Aws::Vector< Aws::String > &value)
UpdateStackInstancesRequest & WithDeploymentTargets(DeploymentTargets &&value)
UpdateStackInstancesRequest & WithOperationPreferences(StackSetOperationPreferences &&value)
UpdateStackInstancesRequest & WithRegions(const Aws::Vector< Aws::String > &value)
UpdateStackInstancesRequest & WithOperationId(Aws::String &&value)
UpdateStackInstancesRequest & AddAccounts(const Aws::String &value)
UpdateStackInstancesRequest & WithOperationPreferences(const StackSetOperationPreferences &value)
AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override
UpdateStackInstancesRequest & WithOperationId(const char *value)
void SetOperationPreferences(const StackSetOperationPreferences &value)
UpdateStackInstancesRequest & WithStackSetName(Aws::String &&value)
UpdateStackInstancesRequest & WithOperationId(const Aws::String &value)
const StackSetOperationPreferences & GetOperationPreferences() const
AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetOperationPreferences(StackSetOperationPreferences &&value)
UpdateStackInstancesRequest & WithDeploymentTargets(const DeploymentTargets &value)
UpdateStackInstancesRequest & WithStackSetName(const Aws::String &value)
UpdateStackInstancesRequest & AddParameterOverrides(const Parameter &value)
UpdateStackInstancesRequest & WithAccounts(const Aws::Vector< Aws::String > &value)
UpdateStackInstancesRequest & AddParameterOverrides(Parameter &&value)
UpdateStackInstancesRequest & WithAccounts(Aws::Vector< Aws::String > &&value)
UpdateStackInstancesRequest & WithParameterOverrides(const Aws::Vector< Parameter > &value)
UpdateStackInstancesRequest & AddRegions(Aws::String &&value)
void SetParameterOverrides(const Aws::Vector< Parameter > &value)
UpdateStackInstancesRequest & AddRegions(const Aws::String &value)
UpdateStackInstancesRequest & AddRegions(const char *value)
UpdateStackInstancesRequest & WithCallAs(CallAs &&value)
UpdateStackInstancesRequest & AddAccounts(const char *value)
UpdateStackInstancesRequest & WithStackSetName(const char *value)
UpdateStackInstancesRequest & WithCallAs(const CallAs &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector