AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DeleteStackRequest.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/DeletionMode.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CloudFormation
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_CLOUDFORMATION_API DeleteStackRequest() = 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 "DeleteStack"; }
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
48 inline const Aws::String& GetStackName() const { return m_stackName; }
49 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
50 template<typename StackNameT = Aws::String>
51 void SetStackName(StackNameT&& value) { m_stackNameHasBeenSet = true; m_stackName = std::forward<StackNameT>(value); }
52 template<typename StackNameT = Aws::String>
53 DeleteStackRequest& WithStackName(StackNameT&& value) { SetStackName(std::forward<StackNameT>(value)); return *this;}
55
57
64 inline const Aws::Vector<Aws::String>& GetRetainResources() const { return m_retainResources; }
65 inline bool RetainResourcesHasBeenSet() const { return m_retainResourcesHasBeenSet; }
66 template<typename RetainResourcesT = Aws::Vector<Aws::String>>
67 void SetRetainResources(RetainResourcesT&& value) { m_retainResourcesHasBeenSet = true; m_retainResources = std::forward<RetainResourcesT>(value); }
68 template<typename RetainResourcesT = Aws::Vector<Aws::String>>
69 DeleteStackRequest& WithRetainResources(RetainResourcesT&& value) { SetRetainResources(std::forward<RetainResourcesT>(value)); return *this;}
70 template<typename RetainResourcesT = Aws::String>
71 DeleteStackRequest& AddRetainResources(RetainResourcesT&& value) { m_retainResourcesHasBeenSet = true; m_retainResources.emplace_back(std::forward<RetainResourcesT>(value)); return *this; }
73
75
83 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
84 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
85 template<typename RoleARNT = Aws::String>
86 void SetRoleARN(RoleARNT&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::forward<RoleARNT>(value); }
87 template<typename RoleARNT = Aws::String>
88 DeleteStackRequest& WithRoleARN(RoleARNT&& value) { SetRoleARN(std::forward<RoleARNT>(value)); return *this;}
90
92
110 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
111 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
112 template<typename ClientRequestTokenT = Aws::String>
113 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
114 template<typename ClientRequestTokenT = Aws::String>
115 DeleteStackRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
117
119
127 inline DeletionMode GetDeletionMode() const { return m_deletionMode; }
128 inline bool DeletionModeHasBeenSet() const { return m_deletionModeHasBeenSet; }
129 inline void SetDeletionMode(DeletionMode value) { m_deletionModeHasBeenSet = true; m_deletionMode = value; }
130 inline DeleteStackRequest& WithDeletionMode(DeletionMode value) { SetDeletionMode(value); return *this;}
132 private:
133
134 Aws::String m_stackName;
135 bool m_stackNameHasBeenSet = false;
136
137 Aws::Vector<Aws::String> m_retainResources;
138 bool m_retainResourcesHasBeenSet = false;
139
140 Aws::String m_roleARN;
141 bool m_roleARNHasBeenSet = false;
142
143 Aws::String m_clientRequestToken;
144 bool m_clientRequestTokenHasBeenSet = false;
145
146 DeletionMode m_deletionMode{DeletionMode::NOT_SET};
147 bool m_deletionModeHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace CloudFormation
152} // 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
DeleteStackRequest & WithRetainResources(RetainResourcesT &&value)
DeleteStackRequest & WithDeletionMode(DeletionMode value)
DeleteStackRequest & WithStackName(StackNameT &&value)
void SetClientRequestToken(ClientRequestTokenT &&value)
DeleteStackRequest & WithClientRequestToken(ClientRequestTokenT &&value)
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