AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
StackRefactorAction.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/model/ResourceMapping.h>
9#include <aws/cloudformation/model/StackRefactorActionEntity.h>
10#include <aws/cloudformation/model/StackRefactorActionType.h>
11#include <aws/cloudformation/model/StackRefactorDetection.h>
12#include <aws/cloudformation/model/Tag.h>
13#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Xml {
22class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace CloudFormation {
26namespace Model {
27
35 public:
36 AWS_CLOUDFORMATION_API StackRefactorAction() = default;
37 AWS_CLOUDFORMATION_API StackRefactorAction(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_CLOUDFORMATION_API StackRefactorAction& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
44
47 inline StackRefactorActionType GetAction() const { return m_action; }
48 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
50 m_actionHasBeenSet = true;
51 m_action = value;
52 }
54 SetAction(value);
55 return *this;
56 }
58
60
65 inline StackRefactorActionEntity GetEntity() const { return m_entity; }
66 inline bool EntityHasBeenSet() const { return m_entityHasBeenSet; }
68 m_entityHasBeenSet = true;
69 m_entity = value;
70 }
72 SetEntity(value);
73 return *this;
74 }
76
78
82 inline const Aws::String& GetPhysicalResourceId() const { return m_physicalResourceId; }
83 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
84 template <typename PhysicalResourceIdT = Aws::String>
85 void SetPhysicalResourceId(PhysicalResourceIdT&& value) {
86 m_physicalResourceIdHasBeenSet = true;
87 m_physicalResourceId = std::forward<PhysicalResourceIdT>(value);
88 }
89 template <typename PhysicalResourceIdT = Aws::String>
90 StackRefactorAction& WithPhysicalResourceId(PhysicalResourceIdT&& value) {
91 SetPhysicalResourceId(std::forward<PhysicalResourceIdT>(value));
92 return *this;
93 }
95
97
103 inline const Aws::String& GetResourceIdentifier() const { return m_resourceIdentifier; }
104 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
105 template <typename ResourceIdentifierT = Aws::String>
106 void SetResourceIdentifier(ResourceIdentifierT&& value) {
107 m_resourceIdentifierHasBeenSet = true;
108 m_resourceIdentifier = std::forward<ResourceIdentifierT>(value);
109 }
110 template <typename ResourceIdentifierT = Aws::String>
111 StackRefactorAction& WithResourceIdentifier(ResourceIdentifierT&& value) {
112 SetResourceIdentifier(std::forward<ResourceIdentifierT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetDescription() const { return m_description; }
122 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
123 template <typename DescriptionT = Aws::String>
124 void SetDescription(DescriptionT&& value) {
125 m_descriptionHasBeenSet = true;
126 m_description = std::forward<DescriptionT>(value);
127 }
128 template <typename DescriptionT = Aws::String>
129 StackRefactorAction& WithDescription(DescriptionT&& value) {
130 SetDescription(std::forward<DescriptionT>(value));
131 return *this;
132 }
134
136
142 inline StackRefactorDetection GetDetection() const { return m_detection; }
143 inline bool DetectionHasBeenSet() const { return m_detectionHasBeenSet; }
145 m_detectionHasBeenSet = true;
146 m_detection = value;
147 }
149 SetDetection(value);
150 return *this;
151 }
153
155
158 inline const Aws::String& GetDetectionReason() const { return m_detectionReason; }
159 inline bool DetectionReasonHasBeenSet() const { return m_detectionReasonHasBeenSet; }
160 template <typename DetectionReasonT = Aws::String>
161 void SetDetectionReason(DetectionReasonT&& value) {
162 m_detectionReasonHasBeenSet = true;
163 m_detectionReason = std::forward<DetectionReasonT>(value);
164 }
165 template <typename DetectionReasonT = Aws::String>
166 StackRefactorAction& WithDetectionReason(DetectionReasonT&& value) {
167 SetDetectionReason(std::forward<DetectionReasonT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::Vector<Tag>& GetTagResources() const { return m_tagResources; }
177 inline bool TagResourcesHasBeenSet() const { return m_tagResourcesHasBeenSet; }
178 template <typename TagResourcesT = Aws::Vector<Tag>>
179 void SetTagResources(TagResourcesT&& value) {
180 m_tagResourcesHasBeenSet = true;
181 m_tagResources = std::forward<TagResourcesT>(value);
182 }
183 template <typename TagResourcesT = Aws::Vector<Tag>>
184 StackRefactorAction& WithTagResources(TagResourcesT&& value) {
185 SetTagResources(std::forward<TagResourcesT>(value));
186 return *this;
187 }
188 template <typename TagResourcesT = Tag>
189 StackRefactorAction& AddTagResources(TagResourcesT&& value) {
190 m_tagResourcesHasBeenSet = true;
191 m_tagResources.emplace_back(std::forward<TagResourcesT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::Vector<Aws::String>& GetUntagResources() const { return m_untagResources; }
201 inline bool UntagResourcesHasBeenSet() const { return m_untagResourcesHasBeenSet; }
202 template <typename UntagResourcesT = Aws::Vector<Aws::String>>
203 void SetUntagResources(UntagResourcesT&& value) {
204 m_untagResourcesHasBeenSet = true;
205 m_untagResources = std::forward<UntagResourcesT>(value);
206 }
207 template <typename UntagResourcesT = Aws::Vector<Aws::String>>
208 StackRefactorAction& WithUntagResources(UntagResourcesT&& value) {
209 SetUntagResources(std::forward<UntagResourcesT>(value));
210 return *this;
211 }
212 template <typename UntagResourcesT = Aws::String>
213 StackRefactorAction& AddUntagResources(UntagResourcesT&& value) {
214 m_untagResourcesHasBeenSet = true;
215 m_untagResources.emplace_back(std::forward<UntagResourcesT>(value));
216 return *this;
217 }
219
221
225 inline const ResourceMapping& GetResourceMapping() const { return m_resourceMapping; }
226 inline bool ResourceMappingHasBeenSet() const { return m_resourceMappingHasBeenSet; }
227 template <typename ResourceMappingT = ResourceMapping>
228 void SetResourceMapping(ResourceMappingT&& value) {
229 m_resourceMappingHasBeenSet = true;
230 m_resourceMapping = std::forward<ResourceMappingT>(value);
231 }
232 template <typename ResourceMappingT = ResourceMapping>
233 StackRefactorAction& WithResourceMapping(ResourceMappingT&& value) {
234 SetResourceMapping(std::forward<ResourceMappingT>(value));
235 return *this;
236 }
238 private:
240
242
243 Aws::String m_physicalResourceId;
244
245 Aws::String m_resourceIdentifier;
246
247 Aws::String m_description;
248
250
251 Aws::String m_detectionReason;
252
253 Aws::Vector<Tag> m_tagResources;
254
255 Aws::Vector<Aws::String> m_untagResources;
256
257 ResourceMapping m_resourceMapping;
258 bool m_actionHasBeenSet = false;
259 bool m_entityHasBeenSet = false;
260 bool m_physicalResourceIdHasBeenSet = false;
261 bool m_resourceIdentifierHasBeenSet = false;
262 bool m_descriptionHasBeenSet = false;
263 bool m_detectionHasBeenSet = false;
264 bool m_detectionReasonHasBeenSet = false;
265 bool m_tagResourcesHasBeenSet = false;
266 bool m_untagResourcesHasBeenSet = false;
267 bool m_resourceMappingHasBeenSet = false;
268};
269
270} // namespace Model
271} // namespace CloudFormation
272} // namespace Aws
StackRefactorAction & WithDetectionReason(DetectionReasonT &&value)
AWS_CLOUDFORMATION_API StackRefactorAction & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
StackRefactorAction & WithTagResources(TagResourcesT &&value)
StackRefactorAction & WithPhysicalResourceId(PhysicalResourceIdT &&value)
StackRefactorAction & WithEntity(StackRefactorActionEntity value)
const Aws::Vector< Aws::String > & GetUntagResources() const
StackRefactorAction & AddUntagResources(UntagResourcesT &&value)
StackRefactorAction & AddTagResources(TagResourcesT &&value)
StackRefactorAction & WithAction(StackRefactorActionType value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
StackRefactorAction & WithUntagResources(UntagResourcesT &&value)
void SetResourceIdentifier(ResourceIdentifierT &&value)
void SetAction(StackRefactorActionType value)
StackRefactorAction & WithDescription(DescriptionT &&value)
StackRefactorAction & WithDetection(StackRefactorDetection value)
StackRefactorAction & WithResourceIdentifier(ResourceIdentifierT &&value)
StackRefactorAction & WithResourceMapping(ResourceMappingT &&value)
void SetEntity(StackRefactorActionEntity value)
AWS_CLOUDFORMATION_API StackRefactorAction(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Tag > & GetTagResources() const
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetDetection(StackRefactorDetection value)
void SetPhysicalResourceId(PhysicalResourceIdT &&value)
AWS_CLOUDFORMATION_API StackRefactorAction()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream
std::vector< T, Aws::Allocator< T > > Vector