AWS SDK for C++  1.8.7
AWS SDK for C++
DeleteStackRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace CloudFormation
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "DeleteStack"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
46  inline const Aws::String& GetStackName() const{ return m_stackName; }
47 
51  inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
52 
56  inline void SetStackName(const Aws::String& value) { m_stackNameHasBeenSet = true; m_stackName = value; }
57 
61  inline void SetStackName(Aws::String&& value) { m_stackNameHasBeenSet = true; m_stackName = std::move(value); }
62 
66  inline void SetStackName(const char* value) { m_stackNameHasBeenSet = true; m_stackName.assign(value); }
67 
71  inline DeleteStackRequest& WithStackName(const Aws::String& value) { SetStackName(value); return *this;}
72 
76  inline DeleteStackRequest& WithStackName(Aws::String&& value) { SetStackName(std::move(value)); return *this;}
77 
81  inline DeleteStackRequest& WithStackName(const char* value) { SetStackName(value); return *this;}
82 
83 
91  inline const Aws::Vector<Aws::String>& GetRetainResources() const{ return m_retainResources; }
92 
100  inline bool RetainResourcesHasBeenSet() const { return m_retainResourcesHasBeenSet; }
101 
109  inline void SetRetainResources(const Aws::Vector<Aws::String>& value) { m_retainResourcesHasBeenSet = true; m_retainResources = value; }
110 
118  inline void SetRetainResources(Aws::Vector<Aws::String>&& value) { m_retainResourcesHasBeenSet = true; m_retainResources = std::move(value); }
119 
127  inline DeleteStackRequest& WithRetainResources(const Aws::Vector<Aws::String>& value) { SetRetainResources(value); return *this;}
128 
136  inline DeleteStackRequest& WithRetainResources(Aws::Vector<Aws::String>&& value) { SetRetainResources(std::move(value)); return *this;}
137 
145  inline DeleteStackRequest& AddRetainResources(const Aws::String& value) { m_retainResourcesHasBeenSet = true; m_retainResources.push_back(value); return *this; }
146 
154  inline DeleteStackRequest& AddRetainResources(Aws::String&& value) { m_retainResourcesHasBeenSet = true; m_retainResources.push_back(std::move(value)); return *this; }
155 
163  inline DeleteStackRequest& AddRetainResources(const char* value) { m_retainResourcesHasBeenSet = true; m_retainResources.push_back(value); return *this; }
164 
165 
174  inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
175 
184  inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
185 
194  inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
195 
204  inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); }
205 
214  inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
215 
224  inline DeleteStackRequest& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
225 
234  inline DeleteStackRequest& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;}
235 
244  inline DeleteStackRequest& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
245 
246 
265  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
266 
285  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
286 
305  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
306 
325  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
326 
345  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
346 
365  inline DeleteStackRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
366 
385  inline DeleteStackRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
386 
405  inline DeleteStackRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
406 
407  private:
408 
409  Aws::String m_stackName;
410  bool m_stackNameHasBeenSet;
411 
412  Aws::Vector<Aws::String> m_retainResources;
413  bool m_retainResourcesHasBeenSet;
414 
415  Aws::String m_roleARN;
416  bool m_roleARNHasBeenSet;
417 
418  Aws::String m_clientRequestToken;
419  bool m_clientRequestTokenHasBeenSet;
420  };
421 
422 } // namespace Model
423 } // namespace CloudFormation
424 } // namespace Aws
void SetRetainResources(Aws::Vector< Aws::String > &&value)
DeleteStackRequest & WithRoleARN(const Aws::String &value)
DeleteStackRequest & WithStackName(const char *value)
DeleteStackRequest & WithStackName(Aws::String &&value)
DeleteStackRequest & AddRetainResources(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
virtual const char * GetServiceRequestName() const override
DeleteStackRequest & WithClientRequestToken(Aws::String &&value)
void SetClientRequestToken(const Aws::String &value)
const Aws::Vector< Aws::String > & GetRetainResources() const
DeleteStackRequest & WithClientRequestToken(const char *value)
DeleteStackRequest & AddRetainResources(const char *value)
DeleteStackRequest & WithStackName(const Aws::String &value)
DeleteStackRequest & AddRetainResources(Aws::String &&value)
DeleteStackRequest & WithRoleARN(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DeleteStackRequest & WithRetainResources(Aws::Vector< Aws::String > &&value)
#define AWS_CLOUDFORMATION_API
DeleteStackRequest & WithRoleARN(Aws::String &&value)
DeleteStackRequest & WithRetainResources(const Aws::Vector< Aws::String > &value)
void SetRetainResources(const Aws::Vector< Aws::String > &value)
DeleteStackRequest & WithClientRequestToken(const Aws::String &value)