AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = 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 "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 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 CreateStackInstancesRequest& WithStackSetName(StackSetNameT&& value) { SetStackSetName(std::forward<StackSetNameT>(value)); return *this;}
57
59
65 inline const Aws::Vector<Aws::String>& GetAccounts() const { return m_accounts; }
66 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
67 template<typename AccountsT = Aws::Vector<Aws::String>>
68 void SetAccounts(AccountsT&& value) { m_accountsHasBeenSet = true; m_accounts = std::forward<AccountsT>(value); }
69 template<typename AccountsT = Aws::Vector<Aws::String>>
70 CreateStackInstancesRequest& WithAccounts(AccountsT&& value) { SetAccounts(std::forward<AccountsT>(value)); return *this;}
71 template<typename AccountsT = Aws::String>
72 CreateStackInstancesRequest& AddAccounts(AccountsT&& value) { m_accountsHasBeenSet = true; m_accounts.emplace_back(std::forward<AccountsT>(value)); return *this; }
74
76
82 inline const DeploymentTargets& GetDeploymentTargets() const { return m_deploymentTargets; }
83 inline bool DeploymentTargetsHasBeenSet() const { return m_deploymentTargetsHasBeenSet; }
84 template<typename DeploymentTargetsT = DeploymentTargets>
85 void SetDeploymentTargets(DeploymentTargetsT&& value) { m_deploymentTargetsHasBeenSet = true; m_deploymentTargets = std::forward<DeploymentTargetsT>(value); }
86 template<typename DeploymentTargetsT = DeploymentTargets>
87 CreateStackInstancesRequest& WithDeploymentTargets(DeploymentTargetsT&& value) { SetDeploymentTargets(std::forward<DeploymentTargetsT>(value)); return *this;}
89
91
95 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
96 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
97 template<typename RegionsT = Aws::Vector<Aws::String>>
98 void SetRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions = std::forward<RegionsT>(value); }
99 template<typename RegionsT = Aws::Vector<Aws::String>>
100 CreateStackInstancesRequest& WithRegions(RegionsT&& value) { SetRegions(std::forward<RegionsT>(value)); return *this;}
101 template<typename RegionsT = Aws::String>
102 CreateStackInstancesRequest& AddRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions.emplace_back(std::forward<RegionsT>(value)); return *this; }
104
106
127 inline const Aws::Vector<Parameter>& GetParameterOverrides() const { return m_parameterOverrides; }
128 inline bool ParameterOverridesHasBeenSet() const { return m_parameterOverridesHasBeenSet; }
129 template<typename ParameterOverridesT = Aws::Vector<Parameter>>
130 void SetParameterOverrides(ParameterOverridesT&& value) { m_parameterOverridesHasBeenSet = true; m_parameterOverrides = std::forward<ParameterOverridesT>(value); }
131 template<typename ParameterOverridesT = Aws::Vector<Parameter>>
132 CreateStackInstancesRequest& WithParameterOverrides(ParameterOverridesT&& value) { SetParameterOverrides(std::forward<ParameterOverridesT>(value)); return *this;}
133 template<typename ParameterOverridesT = Parameter>
134 CreateStackInstancesRequest& AddParameterOverrides(ParameterOverridesT&& value) { m_parameterOverridesHasBeenSet = true; m_parameterOverrides.emplace_back(std::forward<ParameterOverridesT>(value)); return *this; }
136
138
141 inline const StackSetOperationPreferences& GetOperationPreferences() const { return m_operationPreferences; }
142 inline bool OperationPreferencesHasBeenSet() const { return m_operationPreferencesHasBeenSet; }
143 template<typename OperationPreferencesT = StackSetOperationPreferences>
144 void SetOperationPreferences(OperationPreferencesT&& value) { m_operationPreferencesHasBeenSet = true; m_operationPreferences = std::forward<OperationPreferencesT>(value); }
145 template<typename OperationPreferencesT = StackSetOperationPreferences>
146 CreateStackInstancesRequest& WithOperationPreferences(OperationPreferencesT&& value) { SetOperationPreferences(std::forward<OperationPreferencesT>(value)); return *this;}
148
150
160 inline const Aws::String& GetOperationId() const { return m_operationId; }
161 inline bool OperationIdHasBeenSet() const { return m_operationIdHasBeenSet; }
162 template<typename OperationIdT = Aws::String>
163 void SetOperationId(OperationIdT&& value) { m_operationIdHasBeenSet = true; m_operationId = std::forward<OperationIdT>(value); }
164 template<typename OperationIdT = Aws::String>
165 CreateStackInstancesRequest& WithOperationId(OperationIdT&& value) { SetOperationId(std::forward<OperationIdT>(value)); return *this;}
167
169
183 inline CallAs GetCallAs() const { return m_callAs; }
184 inline bool CallAsHasBeenSet() const { return m_callAsHasBeenSet; }
185 inline void SetCallAs(CallAs value) { m_callAsHasBeenSet = true; m_callAs = value; }
186 inline CreateStackInstancesRequest& WithCallAs(CallAs value) { SetCallAs(value); return *this;}
188 private:
189
190 Aws::String m_stackSetName;
191 bool m_stackSetNameHasBeenSet = false;
192
193 Aws::Vector<Aws::String> m_accounts;
194 bool m_accountsHasBeenSet = false;
195
196 DeploymentTargets m_deploymentTargets;
197 bool m_deploymentTargetsHasBeenSet = false;
198
199 Aws::Vector<Aws::String> m_regions;
200 bool m_regionsHasBeenSet = false;
201
202 Aws::Vector<Parameter> m_parameterOverrides;
203 bool m_parameterOverridesHasBeenSet = false;
204
205 StackSetOperationPreferences m_operationPreferences;
206 bool m_operationPreferencesHasBeenSet = false;
207
209 bool m_operationIdHasBeenSet = true;
210
211 CallAs m_callAs{CallAs::NOT_SET};
212 bool m_callAsHasBeenSet = false;
213 };
214
215} // namespace Model
216} // namespace CloudFormation
217} // 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