AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
RollbackStackRequest.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormationRequest.h>
8#include <aws/cloudformation/CloudFormation_EXPORTS.h>
9#include <aws/cloudformation/model/DeploymentConfig.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CloudFormation {
16namespace Model {
17
21 public:
22 AWS_CLOUDFORMATION_API RollbackStackRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "RollbackStack"; }
29
30 AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
40 inline const Aws::String& GetStackName() const { return m_stackName; }
41 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
42 template <typename StackNameT = Aws::String>
43 void SetStackName(StackNameT&& value) {
44 m_stackNameHasBeenSet = true;
45 m_stackName = std::forward<StackNameT>(value);
46 }
47 template <typename StackNameT = Aws::String>
48 RollbackStackRequest& WithStackName(StackNameT&& value) {
49 SetStackName(std::forward<StackNameT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
60 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
61 template <typename RoleARNT = Aws::String>
62 void SetRoleARN(RoleARNT&& value) {
63 m_roleARNHasBeenSet = true;
64 m_roleARN = std::forward<RoleARNT>(value);
65 }
66 template <typename RoleARNT = Aws::String>
67 RollbackStackRequest& WithRoleARN(RoleARNT&& value) {
68 SetRoleARN(std::forward<RoleARNT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
78 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
79 template <typename ClientRequestTokenT = Aws::String>
80 void SetClientRequestToken(ClientRequestTokenT&& value) {
81 m_clientRequestTokenHasBeenSet = true;
82 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
83 }
84 template <typename ClientRequestTokenT = Aws::String>
85 RollbackStackRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
86 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
87 return *this;
88 }
90
92
97 inline bool GetRetainExceptOnCreate() const { return m_retainExceptOnCreate; }
98 inline bool RetainExceptOnCreateHasBeenSet() const { return m_retainExceptOnCreateHasBeenSet; }
99 inline void SetRetainExceptOnCreate(bool value) {
100 m_retainExceptOnCreateHasBeenSet = true;
101 m_retainExceptOnCreate = value;
102 }
105 return *this;
106 }
108
110
114 inline const DeploymentConfig& GetDeploymentConfig() const { return m_deploymentConfig; }
115 inline bool DeploymentConfigHasBeenSet() const { return m_deploymentConfigHasBeenSet; }
116 template <typename DeploymentConfigT = DeploymentConfig>
117 void SetDeploymentConfig(DeploymentConfigT&& value) {
118 m_deploymentConfigHasBeenSet = true;
119 m_deploymentConfig = std::forward<DeploymentConfigT>(value);
120 }
121 template <typename DeploymentConfigT = DeploymentConfig>
122 RollbackStackRequest& WithDeploymentConfig(DeploymentConfigT&& value) {
123 SetDeploymentConfig(std::forward<DeploymentConfigT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_stackName;
129
130 Aws::String m_roleARN;
131
132 Aws::String m_clientRequestToken;
133
134 bool m_retainExceptOnCreate{false};
135
136 DeploymentConfig m_deploymentConfig;
137 bool m_stackNameHasBeenSet = false;
138 bool m_roleARNHasBeenSet = false;
139 bool m_clientRequestTokenHasBeenSet = false;
140 bool m_retainExceptOnCreateHasBeenSet = false;
141 bool m_deploymentConfigHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace CloudFormation
146} // namespace Aws
RollbackStackRequest & WithDeploymentConfig(DeploymentConfigT &&value)
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