AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
DeleteStackRequest.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormationRequest.h>
8#include <aws/cloudformation/CloudFormation_EXPORTS.h>
9#include <aws/cloudformation/model/DeletionMode.h>
10#include <aws/cloudformation/model/DeploymentConfig.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CloudFormation {
18namespace Model {
19
26 public:
27 AWS_CLOUDFORMATION_API DeleteStackRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "DeleteStack"; }
34
35 AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
39
40 public:
42
45 inline const Aws::String& GetStackName() const { return m_stackName; }
46 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
47 template <typename StackNameT = Aws::String>
48 void SetStackName(StackNameT&& value) {
49 m_stackNameHasBeenSet = true;
50 m_stackName = std::forward<StackNameT>(value);
51 }
52 template <typename StackNameT = Aws::String>
53 DeleteStackRequest& WithStackName(StackNameT&& value) {
54 SetStackName(std::forward<StackNameT>(value));
55 return *this;
56 }
58
60
67 inline const Aws::Vector<Aws::String>& GetRetainResources() const { return m_retainResources; }
68 inline bool RetainResourcesHasBeenSet() const { return m_retainResourcesHasBeenSet; }
69 template <typename RetainResourcesT = Aws::Vector<Aws::String>>
70 void SetRetainResources(RetainResourcesT&& value) {
71 m_retainResourcesHasBeenSet = true;
72 m_retainResources = std::forward<RetainResourcesT>(value);
73 }
74 template <typename RetainResourcesT = Aws::Vector<Aws::String>>
75 DeleteStackRequest& WithRetainResources(RetainResourcesT&& value) {
76 SetRetainResources(std::forward<RetainResourcesT>(value));
77 return *this;
78 }
79 template <typename RetainResourcesT = Aws::String>
80 DeleteStackRequest& AddRetainResources(RetainResourcesT&& value) {
81 m_retainResourcesHasBeenSet = true;
82 m_retainResources.emplace_back(std::forward<RetainResourcesT>(value));
83 return *this;
84 }
86
88
96 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
97 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
98 template <typename RoleARNT = Aws::String>
99 void SetRoleARN(RoleARNT&& value) {
100 m_roleARNHasBeenSet = true;
101 m_roleARN = std::forward<RoleARNT>(value);
102 }
103 template <typename RoleARNT = Aws::String>
104 DeleteStackRequest& WithRoleARN(RoleARNT&& value) {
105 SetRoleARN(std::forward<RoleARNT>(value));
106 return *this;
107 }
109
111
129 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
130 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
131 template <typename ClientRequestTokenT = Aws::String>
132 void SetClientRequestToken(ClientRequestTokenT&& value) {
133 m_clientRequestTokenHasBeenSet = true;
134 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
135 }
136 template <typename ClientRequestTokenT = Aws::String>
137 DeleteStackRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
138 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
139 return *this;
140 }
142
144
152 inline DeletionMode GetDeletionMode() const { return m_deletionMode; }
153 inline bool DeletionModeHasBeenSet() const { return m_deletionModeHasBeenSet; }
154 inline void SetDeletionMode(DeletionMode value) {
155 m_deletionModeHasBeenSet = true;
156 m_deletionMode = value;
157 }
159 SetDeletionMode(value);
160 return *this;
161 }
163
165
169 inline const DeploymentConfig& GetDeploymentConfig() const { return m_deploymentConfig; }
170 inline bool DeploymentConfigHasBeenSet() const { return m_deploymentConfigHasBeenSet; }
171 template <typename DeploymentConfigT = DeploymentConfig>
172 void SetDeploymentConfig(DeploymentConfigT&& value) {
173 m_deploymentConfigHasBeenSet = true;
174 m_deploymentConfig = std::forward<DeploymentConfigT>(value);
175 }
176 template <typename DeploymentConfigT = DeploymentConfig>
177 DeleteStackRequest& WithDeploymentConfig(DeploymentConfigT&& value) {
178 SetDeploymentConfig(std::forward<DeploymentConfigT>(value));
179 return *this;
180 }
182 private:
183 Aws::String m_stackName;
184
185 Aws::Vector<Aws::String> m_retainResources;
186
187 Aws::String m_roleARN;
188
189 Aws::String m_clientRequestToken;
190
191 DeletionMode m_deletionMode{DeletionMode::NOT_SET};
192
193 DeploymentConfig m_deploymentConfig;
194 bool m_stackNameHasBeenSet = false;
195 bool m_retainResourcesHasBeenSet = false;
196 bool m_roleARNHasBeenSet = false;
197 bool m_clientRequestTokenHasBeenSet = false;
198 bool m_deletionModeHasBeenSet = false;
199 bool m_deploymentConfigHasBeenSet = false;
200};
201
202} // namespace Model
203} // namespace CloudFormation
204} // namespace Aws
const Aws::Vector< Aws::String > & GetRetainResources() const
AWS_CLOUDFORMATION_API DeleteStackRequest()=default
DeleteStackRequest & WithRoleARN(RoleARNT &&value)
virtual const char * GetServiceRequestName() const override
DeleteStackRequest & AddRetainResources(RetainResourcesT &&value)
AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetDeploymentConfig(DeploymentConfigT &&value)
DeleteStackRequest & WithRetainResources(RetainResourcesT &&value)
DeleteStackRequest & WithDeletionMode(DeletionMode value)
DeleteStackRequest & WithStackName(StackNameT &&value)
DeleteStackRequest & WithDeploymentConfig(DeploymentConfigT &&value)
void SetClientRequestToken(ClientRequestTokenT &&value)
DeleteStackRequest & WithClientRequestToken(ClientRequestTokenT &&value)
const DeploymentConfig & GetDeploymentConfig() const
void SetRetainResources(RetainResourcesT &&value)
AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector