AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
DeleteStackInstancesRequest.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/StackSetOperationPreferences.h>
12#include <aws/core/utils/UUID.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace CloudFormation {
20namespace Model {
21
25 public:
26 AWS_CLOUDFORMATION_API DeleteStackInstancesRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DeleteStackInstances"; }
33
34 AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
38
39 public:
41
45 inline const Aws::String& GetStackSetName() const { return m_stackSetName; }
46 inline bool StackSetNameHasBeenSet() const { return m_stackSetNameHasBeenSet; }
47 template <typename StackSetNameT = Aws::String>
48 void SetStackSetName(StackSetNameT&& value) {
49 m_stackSetNameHasBeenSet = true;
50 m_stackSetName = std::forward<StackSetNameT>(value);
51 }
52 template <typename StackSetNameT = Aws::String>
54 SetStackSetName(std::forward<StackSetNameT>(value));
55 return *this;
56 }
58
60
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) {
69 m_accountsHasBeenSet = true;
70 m_accounts = std::forward<AccountsT>(value);
71 }
72 template <typename AccountsT = Aws::Vector<Aws::String>>
74 SetAccounts(std::forward<AccountsT>(value));
75 return *this;
76 }
77 template <typename AccountsT = Aws::String>
79 m_accountsHasBeenSet = true;
80 m_accounts.emplace_back(std::forward<AccountsT>(value));
81 return *this;
82 }
84
86
91 inline const DeploymentTargets& GetDeploymentTargets() const { return m_deploymentTargets; }
92 inline bool DeploymentTargetsHasBeenSet() const { return m_deploymentTargetsHasBeenSet; }
93 template <typename DeploymentTargetsT = DeploymentTargets>
94 void SetDeploymentTargets(DeploymentTargetsT&& value) {
95 m_deploymentTargetsHasBeenSet = true;
96 m_deploymentTargets = std::forward<DeploymentTargetsT>(value);
97 }
98 template <typename DeploymentTargetsT = DeploymentTargets>
100 SetDeploymentTargets(std::forward<DeploymentTargetsT>(value));
101 return *this;
102 }
104
106
110 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
111 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
112 template <typename RegionsT = Aws::Vector<Aws::String>>
113 void SetRegions(RegionsT&& value) {
114 m_regionsHasBeenSet = true;
115 m_regions = std::forward<RegionsT>(value);
116 }
117 template <typename RegionsT = Aws::Vector<Aws::String>>
119 SetRegions(std::forward<RegionsT>(value));
120 return *this;
121 }
122 template <typename RegionsT = Aws::String>
124 m_regionsHasBeenSet = true;
125 m_regions.emplace_back(std::forward<RegionsT>(value));
126 return *this;
127 }
129
131
134 inline const StackSetOperationPreferences& GetOperationPreferences() const { return m_operationPreferences; }
135 inline bool OperationPreferencesHasBeenSet() const { return m_operationPreferencesHasBeenSet; }
136 template <typename OperationPreferencesT = StackSetOperationPreferences>
137 void SetOperationPreferences(OperationPreferencesT&& value) {
138 m_operationPreferencesHasBeenSet = true;
139 m_operationPreferences = std::forward<OperationPreferencesT>(value);
140 }
141 template <typename OperationPreferencesT = StackSetOperationPreferences>
143 SetOperationPreferences(std::forward<OperationPreferencesT>(value));
144 return *this;
145 }
147
149
156 inline bool GetRetainStacks() const { return m_retainStacks; }
157 inline bool RetainStacksHasBeenSet() const { return m_retainStacksHasBeenSet; }
158 inline void SetRetainStacks(bool value) {
159 m_retainStacksHasBeenSet = true;
160 m_retainStacks = value;
161 }
163 SetRetainStacks(value);
164 return *this;
165 }
167
169
179 inline const Aws::String& GetOperationId() const { return m_operationId; }
180 inline bool OperationIdHasBeenSet() const { return m_operationIdHasBeenSet; }
181 template <typename OperationIdT = Aws::String>
182 void SetOperationId(OperationIdT&& value) {
183 m_operationIdHasBeenSet = true;
184 m_operationId = std::forward<OperationIdT>(value);
185 }
186 template <typename OperationIdT = Aws::String>
188 SetOperationId(std::forward<OperationIdT>(value));
189 return *this;
190 }
192
194
208 inline CallAs GetCallAs() const { return m_callAs; }
209 inline bool CallAsHasBeenSet() const { return m_callAsHasBeenSet; }
210 inline void SetCallAs(CallAs value) {
211 m_callAsHasBeenSet = true;
212 m_callAs = value;
213 }
215 SetCallAs(value);
216 return *this;
217 }
219 private:
220 Aws::String m_stackSetName;
221
222 Aws::Vector<Aws::String> m_accounts;
223
224 DeploymentTargets m_deploymentTargets;
225
226 Aws::Vector<Aws::String> m_regions;
227
228 StackSetOperationPreferences m_operationPreferences;
229
230 bool m_retainStacks{false};
231
233
234 CallAs m_callAs{CallAs::NOT_SET};
235 bool m_stackSetNameHasBeenSet = false;
236 bool m_accountsHasBeenSet = false;
237 bool m_deploymentTargetsHasBeenSet = false;
238 bool m_regionsHasBeenSet = false;
239 bool m_operationPreferencesHasBeenSet = false;
240 bool m_retainStacksHasBeenSet = false;
241 bool m_operationIdHasBeenSet = true;
242 bool m_callAsHasBeenSet = false;
243};
244
245} // namespace Model
246} // namespace CloudFormation
247} // namespace Aws
const StackSetOperationPreferences & GetOperationPreferences() const
AWS_CLOUDFORMATION_API DeleteStackInstancesRequest()=default
AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override
DeleteStackInstancesRequest & WithDeploymentTargets(DeploymentTargetsT &&value)
DeleteStackInstancesRequest & WithOperationPreferences(OperationPreferencesT &&value)
DeleteStackInstancesRequest & AddRegions(RegionsT &&value)
DeleteStackInstancesRequest & WithAccounts(AccountsT &&value)
DeleteStackInstancesRequest & WithStackSetName(StackSetNameT &&value)
DeleteStackInstancesRequest & WithOperationId(OperationIdT &&value)
DeleteStackInstancesRequest & WithRegions(RegionsT &&value)
AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DeleteStackInstancesRequest & 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