AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetStackName(const Aws::String& value) { m_stackNameHasBeenSet = true; m_stackName = value; }
51 inline void SetStackName(Aws::String&& value) { m_stackNameHasBeenSet = true; m_stackName = std::move(value); }
52 inline void SetStackName(const char* value) { m_stackNameHasBeenSet = true; m_stackName.assign(value); }
53 inline DeleteStackRequest& WithStackName(const Aws::String& value) { SetStackName(value); return *this;}
54 inline DeleteStackRequest& WithStackName(Aws::String&& value) { SetStackName(std::move(value)); return *this;}
55 inline DeleteStackRequest& WithStackName(const char* value) { SetStackName(value); return *this;}
57
59
66 inline const Aws::Vector<Aws::String>& GetRetainResources() const{ return m_retainResources; }
67 inline bool RetainResourcesHasBeenSet() const { return m_retainResourcesHasBeenSet; }
68 inline void SetRetainResources(const Aws::Vector<Aws::String>& value) { m_retainResourcesHasBeenSet = true; m_retainResources = value; }
69 inline void SetRetainResources(Aws::Vector<Aws::String>&& value) { m_retainResourcesHasBeenSet = true; m_retainResources = std::move(value); }
71 inline DeleteStackRequest& WithRetainResources(Aws::Vector<Aws::String>&& value) { SetRetainResources(std::move(value)); return *this;}
72 inline DeleteStackRequest& AddRetainResources(const Aws::String& value) { m_retainResourcesHasBeenSet = true; m_retainResources.push_back(value); return *this; }
73 inline DeleteStackRequest& AddRetainResources(Aws::String&& value) { m_retainResourcesHasBeenSet = true; m_retainResources.push_back(std::move(value)); return *this; }
74 inline DeleteStackRequest& AddRetainResources(const char* value) { m_retainResourcesHasBeenSet = true; m_retainResources.push_back(value); return *this; }
76
78
86 inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
87 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
88 inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
89 inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); }
90 inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
91 inline DeleteStackRequest& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
92 inline DeleteStackRequest& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;}
93 inline DeleteStackRequest& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
95
97
115 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
116 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
117 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
118 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
119 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
120 inline DeleteStackRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
121 inline DeleteStackRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
122 inline DeleteStackRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
124
126
134 inline const DeletionMode& GetDeletionMode() const{ return m_deletionMode; }
135 inline bool DeletionModeHasBeenSet() const { return m_deletionModeHasBeenSet; }
136 inline void SetDeletionMode(const DeletionMode& value) { m_deletionModeHasBeenSet = true; m_deletionMode = value; }
137 inline void SetDeletionMode(DeletionMode&& value) { m_deletionModeHasBeenSet = true; m_deletionMode = std::move(value); }
138 inline DeleteStackRequest& WithDeletionMode(const DeletionMode& value) { SetDeletionMode(value); return *this;}
139 inline DeleteStackRequest& WithDeletionMode(DeletionMode&& value) { SetDeletionMode(std::move(value)); return *this;}
141 private:
142
143 Aws::String m_stackName;
144 bool m_stackNameHasBeenSet = false;
145
146 Aws::Vector<Aws::String> m_retainResources;
147 bool m_retainResourcesHasBeenSet = false;
148
149 Aws::String m_roleARN;
150 bool m_roleARNHasBeenSet = false;
151
152 Aws::String m_clientRequestToken;
153 bool m_clientRequestTokenHasBeenSet = false;
154
155 DeletionMode m_deletionMode;
156 bool m_deletionModeHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace CloudFormation
161} // namespace Aws
const Aws::Vector< Aws::String > & GetRetainResources() const
DeleteStackRequest & WithClientRequestToken(const char *value)
DeleteStackRequest & WithStackName(const char *value)
DeleteStackRequest & AddRetainResources(const char *value)
DeleteStackRequest & WithRetainResources(const Aws::Vector< Aws::String > &value)
DeleteStackRequest & WithStackName(Aws::String &&value)
DeleteStackRequest & WithClientRequestToken(Aws::String &&value)
void SetDeletionMode(const DeletionMode &value)
void SetRetainResources(Aws::Vector< Aws::String > &&value)
DeleteStackRequest & AddRetainResources(Aws::String &&value)
DeleteStackRequest & WithDeletionMode(const DeletionMode &value)
void SetRetainResources(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
DeleteStackRequest & AddRetainResources(const Aws::String &value)
void SetClientRequestToken(const Aws::String &value)
AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DeleteStackRequest & WithRetainResources(Aws::Vector< Aws::String > &&value)
DeleteStackRequest & WithRoleARN(const Aws::String &value)
DeleteStackRequest & WithClientRequestToken(const Aws::String &value)
DeleteStackRequest & WithRoleARN(const char *value)
DeleteStackRequest & WithDeletionMode(DeletionMode &&value)
DeleteStackRequest & WithStackName(const Aws::String &value)
DeleteStackRequest & WithRoleARN(Aws::String &&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