AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
ResourceChange.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/model/ChangeAction.h>
9#include <aws/cloudformation/model/ModuleInfo.h>
10#include <aws/cloudformation/model/PolicyAction.h>
11#include <aws/cloudformation/model/Replacement.h>
12#include <aws/cloudformation/model/ResourceAttribute.h>
13#include <aws/cloudformation/model/ResourceChangeDetail.h>
14#include <aws/cloudformation/model/ResourceDriftIgnoredAttribute.h>
15#include <aws/cloudformation/model/StackResourceDriftStatus.h>
16#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
17#include <aws/core/utils/memory/stl/AWSString.h>
18#include <aws/core/utils/memory/stl/AWSVector.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Utils {
24namespace Xml {
25class XmlNode;
26} // namespace Xml
27} // namespace Utils
28namespace CloudFormation {
29namespace Model {
30
39 public:
40 AWS_CLOUDFORMATION_API ResourceChange() = default;
41 AWS_CLOUDFORMATION_API ResourceChange(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_CLOUDFORMATION_API ResourceChange& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
48
59 inline PolicyAction GetPolicyAction() const { return m_policyAction; }
60 inline bool PolicyActionHasBeenSet() const { return m_policyActionHasBeenSet; }
61 inline void SetPolicyAction(PolicyAction value) {
62 m_policyActionHasBeenSet = true;
63 m_policyAction = value;
64 }
66 SetPolicyAction(value);
67 return *this;
68 }
70
72
80 inline ChangeAction GetAction() const { return m_action; }
81 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
82 inline void SetAction(ChangeAction value) {
83 m_actionHasBeenSet = true;
84 m_action = value;
85 }
87 SetAction(value);
88 return *this;
89 }
91
93
96 inline const Aws::String& GetLogicalResourceId() const { return m_logicalResourceId; }
97 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
98 template <typename LogicalResourceIdT = Aws::String>
99 void SetLogicalResourceId(LogicalResourceIdT&& value) {
100 m_logicalResourceIdHasBeenSet = true;
101 m_logicalResourceId = std::forward<LogicalResourceIdT>(value);
102 }
103 template <typename LogicalResourceIdT = Aws::String>
104 ResourceChange& WithLogicalResourceId(LogicalResourceIdT&& value) {
105 SetLogicalResourceId(std::forward<LogicalResourceIdT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetPhysicalResourceId() const { return m_physicalResourceId; }
116 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
117 template <typename PhysicalResourceIdT = Aws::String>
118 void SetPhysicalResourceId(PhysicalResourceIdT&& value) {
119 m_physicalResourceIdHasBeenSet = true;
120 m_physicalResourceId = std::forward<PhysicalResourceIdT>(value);
121 }
122 template <typename PhysicalResourceIdT = Aws::String>
123 ResourceChange& WithPhysicalResourceId(PhysicalResourceIdT&& value) {
124 SetPhysicalResourceId(std::forward<PhysicalResourceIdT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::String& GetResourceType() const { return m_resourceType; }
135 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
136 template <typename ResourceTypeT = Aws::String>
137 void SetResourceType(ResourceTypeT&& value) {
138 m_resourceTypeHasBeenSet = true;
139 m_resourceType = std::forward<ResourceTypeT>(value);
140 }
141 template <typename ResourceTypeT = Aws::String>
142 ResourceChange& WithResourceType(ResourceTypeT&& value) {
143 SetResourceType(std::forward<ResourceTypeT>(value));
144 return *this;
145 }
147
149
165 inline Replacement GetReplacement() const { return m_replacement; }
166 inline bool ReplacementHasBeenSet() const { return m_replacementHasBeenSet; }
167 inline void SetReplacement(Replacement value) {
168 m_replacementHasBeenSet = true;
169 m_replacement = value;
170 }
172 SetReplacement(value);
173 return *this;
174 }
176
178
183 inline const Aws::Vector<ResourceAttribute>& GetScope() const { return m_scope; }
184 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
185 template <typename ScopeT = Aws::Vector<ResourceAttribute>>
186 void SetScope(ScopeT&& value) {
187 m_scopeHasBeenSet = true;
188 m_scope = std::forward<ScopeT>(value);
189 }
190 template <typename ScopeT = Aws::Vector<ResourceAttribute>>
191 ResourceChange& WithScope(ScopeT&& value) {
192 SetScope(std::forward<ScopeT>(value));
193 return *this;
194 }
196 m_scopeHasBeenSet = true;
197 m_scope.push_back(value);
198 return *this;
199 }
201
203
214 inline StackResourceDriftStatus GetResourceDriftStatus() const { return m_resourceDriftStatus; }
215 inline bool ResourceDriftStatusHasBeenSet() const { return m_resourceDriftStatusHasBeenSet; }
217 m_resourceDriftStatusHasBeenSet = true;
218 m_resourceDriftStatus = value;
219 }
222 return *this;
223 }
225
227
231 return m_resourceDriftIgnoredAttributes;
232 }
233 inline bool ResourceDriftIgnoredAttributesHasBeenSet() const { return m_resourceDriftIgnoredAttributesHasBeenSet; }
234 template <typename ResourceDriftIgnoredAttributesT = Aws::Vector<ResourceDriftIgnoredAttribute>>
235 void SetResourceDriftIgnoredAttributes(ResourceDriftIgnoredAttributesT&& value) {
236 m_resourceDriftIgnoredAttributesHasBeenSet = true;
237 m_resourceDriftIgnoredAttributes = std::forward<ResourceDriftIgnoredAttributesT>(value);
238 }
239 template <typename ResourceDriftIgnoredAttributesT = Aws::Vector<ResourceDriftIgnoredAttribute>>
240 ResourceChange& WithResourceDriftIgnoredAttributes(ResourceDriftIgnoredAttributesT&& value) {
241 SetResourceDriftIgnoredAttributes(std::forward<ResourceDriftIgnoredAttributesT>(value));
242 return *this;
243 }
244 template <typename ResourceDriftIgnoredAttributesT = ResourceDriftIgnoredAttribute>
245 ResourceChange& AddResourceDriftIgnoredAttributes(ResourceDriftIgnoredAttributesT&& value) {
246 m_resourceDriftIgnoredAttributesHasBeenSet = true;
247 m_resourceDriftIgnoredAttributes.emplace_back(std::forward<ResourceDriftIgnoredAttributesT>(value));
248 return *this;
249 }
251
253
258 inline const Aws::Vector<ResourceChangeDetail>& GetDetails() const { return m_details; }
259 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
260 template <typename DetailsT = Aws::Vector<ResourceChangeDetail>>
261 void SetDetails(DetailsT&& value) {
262 m_detailsHasBeenSet = true;
263 m_details = std::forward<DetailsT>(value);
264 }
265 template <typename DetailsT = Aws::Vector<ResourceChangeDetail>>
266 ResourceChange& WithDetails(DetailsT&& value) {
267 SetDetails(std::forward<DetailsT>(value));
268 return *this;
269 }
270 template <typename DetailsT = ResourceChangeDetail>
271 ResourceChange& AddDetails(DetailsT&& value) {
272 m_detailsHasBeenSet = true;
273 m_details.emplace_back(std::forward<DetailsT>(value));
274 return *this;
275 }
277
279
282 inline const Aws::String& GetChangeSetId() const { return m_changeSetId; }
283 inline bool ChangeSetIdHasBeenSet() const { return m_changeSetIdHasBeenSet; }
284 template <typename ChangeSetIdT = Aws::String>
285 void SetChangeSetId(ChangeSetIdT&& value) {
286 m_changeSetIdHasBeenSet = true;
287 m_changeSetId = std::forward<ChangeSetIdT>(value);
288 }
289 template <typename ChangeSetIdT = Aws::String>
290 ResourceChange& WithChangeSetId(ChangeSetIdT&& value) {
291 SetChangeSetId(std::forward<ChangeSetIdT>(value));
292 return *this;
293 }
295
297
301 inline const ModuleInfo& GetModuleInfo() const { return m_moduleInfo; }
302 inline bool ModuleInfoHasBeenSet() const { return m_moduleInfoHasBeenSet; }
303 template <typename ModuleInfoT = ModuleInfo>
304 void SetModuleInfo(ModuleInfoT&& value) {
305 m_moduleInfoHasBeenSet = true;
306 m_moduleInfo = std::forward<ModuleInfoT>(value);
307 }
308 template <typename ModuleInfoT = ModuleInfo>
309 ResourceChange& WithModuleInfo(ModuleInfoT&& value) {
310 SetModuleInfo(std::forward<ModuleInfoT>(value));
311 return *this;
312 }
314
316
320 inline const Aws::String& GetBeforeContext() const { return m_beforeContext; }
321 inline bool BeforeContextHasBeenSet() const { return m_beforeContextHasBeenSet; }
322 template <typename BeforeContextT = Aws::String>
323 void SetBeforeContext(BeforeContextT&& value) {
324 m_beforeContextHasBeenSet = true;
325 m_beforeContext = std::forward<BeforeContextT>(value);
326 }
327 template <typename BeforeContextT = Aws::String>
328 ResourceChange& WithBeforeContext(BeforeContextT&& value) {
329 SetBeforeContext(std::forward<BeforeContextT>(value));
330 return *this;
331 }
333
335
339 inline const Aws::String& GetAfterContext() const { return m_afterContext; }
340 inline bool AfterContextHasBeenSet() const { return m_afterContextHasBeenSet; }
341 template <typename AfterContextT = Aws::String>
342 void SetAfterContext(AfterContextT&& value) {
343 m_afterContextHasBeenSet = true;
344 m_afterContext = std::forward<AfterContextT>(value);
345 }
346 template <typename AfterContextT = Aws::String>
347 ResourceChange& WithAfterContext(AfterContextT&& value) {
348 SetAfterContext(std::forward<AfterContextT>(value));
349 return *this;
350 }
352
354
358 inline const Aws::String& GetPreviousDeploymentContext() const { return m_previousDeploymentContext; }
359 inline bool PreviousDeploymentContextHasBeenSet() const { return m_previousDeploymentContextHasBeenSet; }
360 template <typename PreviousDeploymentContextT = Aws::String>
361 void SetPreviousDeploymentContext(PreviousDeploymentContextT&& value) {
362 m_previousDeploymentContextHasBeenSet = true;
363 m_previousDeploymentContext = std::forward<PreviousDeploymentContextT>(value);
364 }
365 template <typename PreviousDeploymentContextT = Aws::String>
366 ResourceChange& WithPreviousDeploymentContext(PreviousDeploymentContextT&& value) {
367 SetPreviousDeploymentContext(std::forward<PreviousDeploymentContextT>(value));
368 return *this;
369 }
371 private:
372 PolicyAction m_policyAction{PolicyAction::NOT_SET};
373
375
376 Aws::String m_logicalResourceId;
377
378 Aws::String m_physicalResourceId;
379
380 Aws::String m_resourceType;
381
382 Replacement m_replacement{Replacement::NOT_SET};
383
385
387
388 Aws::Vector<ResourceDriftIgnoredAttribute> m_resourceDriftIgnoredAttributes;
389
391
392 Aws::String m_changeSetId;
393
394 ModuleInfo m_moduleInfo;
395
396 Aws::String m_beforeContext;
397
398 Aws::String m_afterContext;
399
400 Aws::String m_previousDeploymentContext;
401 bool m_policyActionHasBeenSet = false;
402 bool m_actionHasBeenSet = false;
403 bool m_logicalResourceIdHasBeenSet = false;
404 bool m_physicalResourceIdHasBeenSet = false;
405 bool m_resourceTypeHasBeenSet = false;
406 bool m_replacementHasBeenSet = false;
407 bool m_scopeHasBeenSet = false;
408 bool m_resourceDriftStatusHasBeenSet = false;
409 bool m_resourceDriftIgnoredAttributesHasBeenSet = false;
410 bool m_detailsHasBeenSet = false;
411 bool m_changeSetIdHasBeenSet = false;
412 bool m_moduleInfoHasBeenSet = false;
413 bool m_beforeContextHasBeenSet = false;
414 bool m_afterContextHasBeenSet = false;
415 bool m_previousDeploymentContextHasBeenSet = false;
416};
417
418} // namespace Model
419} // namespace CloudFormation
420} // namespace Aws
ResourceChange & WithPolicyAction(PolicyAction value)
void SetAfterContext(AfterContextT &&value)
void SetPhysicalResourceId(PhysicalResourceIdT &&value)
void SetPreviousDeploymentContext(PreviousDeploymentContextT &&value)
void SetBeforeContext(BeforeContextT &&value)
StackResourceDriftStatus GetResourceDriftStatus() const
const Aws::Vector< ResourceDriftIgnoredAttribute > & GetResourceDriftIgnoredAttributes() const
ResourceChange & WithReplacement(Replacement value)
ResourceChange & WithAction(ChangeAction value)
AWS_CLOUDFORMATION_API ResourceChange()=default
const Aws::String & GetLogicalResourceId() const
const Aws::Vector< ResourceAttribute > & GetScope() const
ResourceChange & WithDetails(DetailsT &&value)
void SetResourceType(ResourceTypeT &&value)
const Aws::String & GetAfterContext() const
ResourceChange & AddDetails(DetailsT &&value)
ResourceChange & WithResourceType(ResourceTypeT &&value)
ResourceChange & AddScope(ResourceAttribute value)
ResourceChange & WithPreviousDeploymentContext(PreviousDeploymentContextT &&value)
ResourceChange & WithModuleInfo(ModuleInfoT &&value)
const Aws::String & GetBeforeContext() const
AWS_CLOUDFORMATION_API ResourceChange(const Aws::Utils::Xml::XmlNode &xmlNode)
ResourceChange & WithPhysicalResourceId(PhysicalResourceIdT &&value)
const Aws::String & GetPhysicalResourceId() const
ResourceChange & WithScope(ScopeT &&value)
void SetResourceDriftIgnoredAttributes(ResourceDriftIgnoredAttributesT &&value)
void SetChangeSetId(ChangeSetIdT &&value)
ResourceChange & WithLogicalResourceId(LogicalResourceIdT &&value)
ResourceChange & WithResourceDriftStatus(StackResourceDriftStatus value)
ResourceChange & WithResourceDriftIgnoredAttributes(ResourceDriftIgnoredAttributesT &&value)
AWS_CLOUDFORMATION_API ResourceChange & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetResourceDriftStatus(StackResourceDriftStatus value)
const Aws::String & GetChangeSetId() const
const Aws::String & GetResourceType() const
ResourceChange & AddResourceDriftIgnoredAttributes(ResourceDriftIgnoredAttributesT &&value)
ResourceChange & WithAfterContext(AfterContextT &&value)
const Aws::String & GetPreviousDeploymentContext() const
ResourceChange & WithChangeSetId(ChangeSetIdT &&value)
void SetLogicalResourceId(LogicalResourceIdT &&value)
ResourceChange & WithBeforeContext(BeforeContextT &&value)
const Aws::Vector< ResourceChangeDetail > & GetDetails() const
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
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