AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DeleteStackInstancesRequest.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 <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace CloudFormation
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_CLOUDFORMATION_API DeleteStackInstancesRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "DeleteStackInstances"; }
36
37 AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
49 inline const Aws::String& GetStackSetName() const { return m_stackSetName; }
50 inline bool StackSetNameHasBeenSet() const { return m_stackSetNameHasBeenSet; }
51 template<typename StackSetNameT = Aws::String>
52 void SetStackSetName(StackSetNameT&& value) { m_stackSetNameHasBeenSet = true; m_stackSetName = std::forward<StackSetNameT>(value); }
53 template<typename StackSetNameT = Aws::String>
54 DeleteStackInstancesRequest& WithStackSetName(StackSetNameT&& value) { SetStackSetName(std::forward<StackSetNameT>(value)); return *this;}
56
58
63 inline const Aws::Vector<Aws::String>& GetAccounts() const { return m_accounts; }
64 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
65 template<typename AccountsT = Aws::Vector<Aws::String>>
66 void SetAccounts(AccountsT&& value) { m_accountsHasBeenSet = true; m_accounts = std::forward<AccountsT>(value); }
67 template<typename AccountsT = Aws::Vector<Aws::String>>
68 DeleteStackInstancesRequest& WithAccounts(AccountsT&& value) { SetAccounts(std::forward<AccountsT>(value)); return *this;}
69 template<typename AccountsT = Aws::String>
70 DeleteStackInstancesRequest& AddAccounts(AccountsT&& value) { m_accountsHasBeenSet = true; m_accounts.emplace_back(std::forward<AccountsT>(value)); return *this; }
72
74
79 inline const DeploymentTargets& GetDeploymentTargets() const { return m_deploymentTargets; }
80 inline bool DeploymentTargetsHasBeenSet() const { return m_deploymentTargetsHasBeenSet; }
81 template<typename DeploymentTargetsT = DeploymentTargets>
82 void SetDeploymentTargets(DeploymentTargetsT&& value) { m_deploymentTargetsHasBeenSet = true; m_deploymentTargets = std::forward<DeploymentTargetsT>(value); }
83 template<typename DeploymentTargetsT = DeploymentTargets>
84 DeleteStackInstancesRequest& WithDeploymentTargets(DeploymentTargetsT&& value) { SetDeploymentTargets(std::forward<DeploymentTargetsT>(value)); return *this;}
86
88
92 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
93 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
94 template<typename RegionsT = Aws::Vector<Aws::String>>
95 void SetRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions = std::forward<RegionsT>(value); }
96 template<typename RegionsT = Aws::Vector<Aws::String>>
97 DeleteStackInstancesRequest& WithRegions(RegionsT&& value) { SetRegions(std::forward<RegionsT>(value)); return *this;}
98 template<typename RegionsT = Aws::String>
99 DeleteStackInstancesRequest& AddRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions.emplace_back(std::forward<RegionsT>(value)); return *this; }
101
103
106 inline const StackSetOperationPreferences& GetOperationPreferences() const { return m_operationPreferences; }
107 inline bool OperationPreferencesHasBeenSet() const { return m_operationPreferencesHasBeenSet; }
108 template<typename OperationPreferencesT = StackSetOperationPreferences>
109 void SetOperationPreferences(OperationPreferencesT&& value) { m_operationPreferencesHasBeenSet = true; m_operationPreferences = std::forward<OperationPreferencesT>(value); }
110 template<typename OperationPreferencesT = StackSetOperationPreferences>
111 DeleteStackInstancesRequest& WithOperationPreferences(OperationPreferencesT&& value) { SetOperationPreferences(std::forward<OperationPreferencesT>(value)); return *this;}
113
115
122 inline bool GetRetainStacks() const { return m_retainStacks; }
123 inline bool RetainStacksHasBeenSet() const { return m_retainStacksHasBeenSet; }
124 inline void SetRetainStacks(bool value) { m_retainStacksHasBeenSet = true; m_retainStacks = value; }
125 inline DeleteStackInstancesRequest& WithRetainStacks(bool value) { SetRetainStacks(value); return *this;}
127
129
139 inline const Aws::String& GetOperationId() const { return m_operationId; }
140 inline bool OperationIdHasBeenSet() const { return m_operationIdHasBeenSet; }
141 template<typename OperationIdT = Aws::String>
142 void SetOperationId(OperationIdT&& value) { m_operationIdHasBeenSet = true; m_operationId = std::forward<OperationIdT>(value); }
143 template<typename OperationIdT = Aws::String>
144 DeleteStackInstancesRequest& WithOperationId(OperationIdT&& value) { SetOperationId(std::forward<OperationIdT>(value)); return *this;}
146
148
162 inline CallAs GetCallAs() const { return m_callAs; }
163 inline bool CallAsHasBeenSet() const { return m_callAsHasBeenSet; }
164 inline void SetCallAs(CallAs value) { m_callAsHasBeenSet = true; m_callAs = value; }
165 inline DeleteStackInstancesRequest& WithCallAs(CallAs value) { SetCallAs(value); return *this;}
167 private:
168
169 Aws::String m_stackSetName;
170 bool m_stackSetNameHasBeenSet = false;
171
172 Aws::Vector<Aws::String> m_accounts;
173 bool m_accountsHasBeenSet = false;
174
175 DeploymentTargets m_deploymentTargets;
176 bool m_deploymentTargetsHasBeenSet = false;
177
178 Aws::Vector<Aws::String> m_regions;
179 bool m_regionsHasBeenSet = false;
180
181 StackSetOperationPreferences m_operationPreferences;
182 bool m_operationPreferencesHasBeenSet = false;
183
184 bool m_retainStacks{false};
185 bool m_retainStacksHasBeenSet = false;
186
188 bool m_operationIdHasBeenSet = true;
189
190 CallAs m_callAs{CallAs::NOT_SET};
191 bool m_callAsHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace CloudFormation
196} // 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