AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RollbackStackRequest.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 <utility>
11
12namespace Aws
13{
14namespace CloudFormation
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_CLOUDFORMATION_API RollbackStackRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "RollbackStack"; }
31
32 AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36
37 public:
38
40
43 inline const Aws::String& GetStackName() const { return m_stackName; }
44 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
45 template<typename StackNameT = Aws::String>
46 void SetStackName(StackNameT&& value) { m_stackNameHasBeenSet = true; m_stackName = std::forward<StackNameT>(value); }
47 template<typename StackNameT = Aws::String>
48 RollbackStackRequest& WithStackName(StackNameT&& value) { SetStackName(std::forward<StackNameT>(value)); return *this;}
50
52
56 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
57 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
58 template<typename RoleARNT = Aws::String>
59 void SetRoleARN(RoleARNT&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::forward<RoleARNT>(value); }
60 template<typename RoleARNT = Aws::String>
61 RollbackStackRequest& WithRoleARN(RoleARNT&& value) { SetRoleARN(std::forward<RoleARNT>(value)); return *this;}
63
65
68 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
69 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
70 template<typename ClientRequestTokenT = Aws::String>
71 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
72 template<typename ClientRequestTokenT = Aws::String>
73 RollbackStackRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
75
77
82 inline bool GetRetainExceptOnCreate() const { return m_retainExceptOnCreate; }
83 inline bool RetainExceptOnCreateHasBeenSet() const { return m_retainExceptOnCreateHasBeenSet; }
84 inline void SetRetainExceptOnCreate(bool value) { m_retainExceptOnCreateHasBeenSet = true; m_retainExceptOnCreate = value; }
85 inline RollbackStackRequest& WithRetainExceptOnCreate(bool value) { SetRetainExceptOnCreate(value); return *this;}
87 private:
88
89 Aws::String m_stackName;
90 bool m_stackNameHasBeenSet = false;
91
92 Aws::String m_roleARN;
93 bool m_roleARNHasBeenSet = false;
94
95 Aws::String m_clientRequestToken;
96 bool m_clientRequestTokenHasBeenSet = false;
97
98 bool m_retainExceptOnCreate{false};
99 bool m_retainExceptOnCreateHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace CloudFormation
104} // namespace Aws
AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
RollbackStackRequest & WithRoleARN(RoleARNT &&value)
AWS_CLOUDFORMATION_API RollbackStackRequest()=default
virtual const char * GetServiceRequestName() const override
RollbackStackRequest & WithRetainExceptOnCreate(bool value)
AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override
RollbackStackRequest & WithStackName(StackNameT &&value)
RollbackStackRequest & WithClientRequestToken(ClientRequestTokenT &&value)
void SetClientRequestToken(ClientRequestTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String