AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourceChange.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/cloudformation/model/PolicyAction.h>
10#include <aws/cloudformation/model/ChangeAction.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/cloudformation/model/Replacement.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/cloudformation/model/ModuleInfo.h>
15#include <aws/cloudformation/model/ResourceAttribute.h>
16#include <aws/cloudformation/model/ResourceChangeDetail.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Xml
24{
25 class XmlNode;
26} // namespace Xml
27} // namespace Utils
28namespace CloudFormation
29{
30namespace Model
31{
32
41 {
42 public:
43 AWS_CLOUDFORMATION_API ResourceChange();
44 AWS_CLOUDFORMATION_API ResourceChange(const Aws::Utils::Xml::XmlNode& xmlNode);
45 AWS_CLOUDFORMATION_API ResourceChange& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46
47 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
49
50
52
63 inline const PolicyAction& GetPolicyAction() const{ return m_policyAction; }
64 inline bool PolicyActionHasBeenSet() const { return m_policyActionHasBeenSet; }
65 inline void SetPolicyAction(const PolicyAction& value) { m_policyActionHasBeenSet = true; m_policyAction = value; }
66 inline void SetPolicyAction(PolicyAction&& value) { m_policyActionHasBeenSet = true; m_policyAction = std::move(value); }
67 inline ResourceChange& WithPolicyAction(const PolicyAction& value) { SetPolicyAction(value); return *this;}
68 inline ResourceChange& WithPolicyAction(PolicyAction&& value) { SetPolicyAction(std::move(value)); return *this;}
70
72
79 inline const ChangeAction& GetAction() const{ return m_action; }
80 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
81 inline void SetAction(const ChangeAction& value) { m_actionHasBeenSet = true; m_action = value; }
82 inline void SetAction(ChangeAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
83 inline ResourceChange& WithAction(const ChangeAction& value) { SetAction(value); return *this;}
84 inline ResourceChange& WithAction(ChangeAction&& value) { SetAction(std::move(value)); return *this;}
86
88
91 inline const Aws::String& GetLogicalResourceId() const{ return m_logicalResourceId; }
92 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
93 inline void SetLogicalResourceId(const Aws::String& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = value; }
94 inline void SetLogicalResourceId(Aws::String&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::move(value); }
95 inline void SetLogicalResourceId(const char* value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId.assign(value); }
96 inline ResourceChange& WithLogicalResourceId(const Aws::String& value) { SetLogicalResourceId(value); return *this;}
97 inline ResourceChange& WithLogicalResourceId(Aws::String&& value) { SetLogicalResourceId(std::move(value)); return *this;}
98 inline ResourceChange& WithLogicalResourceId(const char* value) { SetLogicalResourceId(value); return *this;}
100
102
106 inline const Aws::String& GetPhysicalResourceId() const{ return m_physicalResourceId; }
107 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
108 inline void SetPhysicalResourceId(const Aws::String& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = value; }
109 inline void SetPhysicalResourceId(Aws::String&& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = std::move(value); }
110 inline void SetPhysicalResourceId(const char* value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId.assign(value); }
111 inline ResourceChange& WithPhysicalResourceId(const Aws::String& value) { SetPhysicalResourceId(value); return *this;}
112 inline ResourceChange& WithPhysicalResourceId(Aws::String&& value) { SetPhysicalResourceId(std::move(value)); return *this;}
113 inline ResourceChange& WithPhysicalResourceId(const char* value) { SetPhysicalResourceId(value); return *this;}
115
117
121 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
122 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
123 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
124 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
125 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
126 inline ResourceChange& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
127 inline ResourceChange& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
128 inline ResourceChange& WithResourceType(const char* value) { SetResourceType(value); return *this;}
130
132
148 inline const Replacement& GetReplacement() const{ return m_replacement; }
149 inline bool ReplacementHasBeenSet() const { return m_replacementHasBeenSet; }
150 inline void SetReplacement(const Replacement& value) { m_replacementHasBeenSet = true; m_replacement = value; }
151 inline void SetReplacement(Replacement&& value) { m_replacementHasBeenSet = true; m_replacement = std::move(value); }
152 inline ResourceChange& WithReplacement(const Replacement& value) { SetReplacement(value); return *this;}
153 inline ResourceChange& WithReplacement(Replacement&& value) { SetReplacement(std::move(value)); return *this;}
155
157
162 inline const Aws::Vector<ResourceAttribute>& GetScope() const{ return m_scope; }
163 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
164 inline void SetScope(const Aws::Vector<ResourceAttribute>& value) { m_scopeHasBeenSet = true; m_scope = value; }
165 inline void SetScope(Aws::Vector<ResourceAttribute>&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
166 inline ResourceChange& WithScope(const Aws::Vector<ResourceAttribute>& value) { SetScope(value); return *this;}
167 inline ResourceChange& WithScope(Aws::Vector<ResourceAttribute>&& value) { SetScope(std::move(value)); return *this;}
168 inline ResourceChange& AddScope(const ResourceAttribute& value) { m_scopeHasBeenSet = true; m_scope.push_back(value); return *this; }
169 inline ResourceChange& AddScope(ResourceAttribute&& value) { m_scopeHasBeenSet = true; m_scope.push_back(std::move(value)); return *this; }
171
173
178 inline const Aws::Vector<ResourceChangeDetail>& GetDetails() const{ return m_details; }
179 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
180 inline void SetDetails(const Aws::Vector<ResourceChangeDetail>& value) { m_detailsHasBeenSet = true; m_details = value; }
181 inline void SetDetails(Aws::Vector<ResourceChangeDetail>&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
182 inline ResourceChange& WithDetails(const Aws::Vector<ResourceChangeDetail>& value) { SetDetails(value); return *this;}
183 inline ResourceChange& WithDetails(Aws::Vector<ResourceChangeDetail>&& value) { SetDetails(std::move(value)); return *this;}
184 inline ResourceChange& AddDetails(const ResourceChangeDetail& value) { m_detailsHasBeenSet = true; m_details.push_back(value); return *this; }
185 inline ResourceChange& AddDetails(ResourceChangeDetail&& value) { m_detailsHasBeenSet = true; m_details.push_back(std::move(value)); return *this; }
187
189
192 inline const Aws::String& GetChangeSetId() const{ return m_changeSetId; }
193 inline bool ChangeSetIdHasBeenSet() const { return m_changeSetIdHasBeenSet; }
194 inline void SetChangeSetId(const Aws::String& value) { m_changeSetIdHasBeenSet = true; m_changeSetId = value; }
195 inline void SetChangeSetId(Aws::String&& value) { m_changeSetIdHasBeenSet = true; m_changeSetId = std::move(value); }
196 inline void SetChangeSetId(const char* value) { m_changeSetIdHasBeenSet = true; m_changeSetId.assign(value); }
197 inline ResourceChange& WithChangeSetId(const Aws::String& value) { SetChangeSetId(value); return *this;}
198 inline ResourceChange& WithChangeSetId(Aws::String&& value) { SetChangeSetId(std::move(value)); return *this;}
199 inline ResourceChange& WithChangeSetId(const char* value) { SetChangeSetId(value); return *this;}
201
203
207 inline const ModuleInfo& GetModuleInfo() const{ return m_moduleInfo; }
208 inline bool ModuleInfoHasBeenSet() const { return m_moduleInfoHasBeenSet; }
209 inline void SetModuleInfo(const ModuleInfo& value) { m_moduleInfoHasBeenSet = true; m_moduleInfo = value; }
210 inline void SetModuleInfo(ModuleInfo&& value) { m_moduleInfoHasBeenSet = true; m_moduleInfo = std::move(value); }
211 inline ResourceChange& WithModuleInfo(const ModuleInfo& value) { SetModuleInfo(value); return *this;}
212 inline ResourceChange& WithModuleInfo(ModuleInfo&& value) { SetModuleInfo(std::move(value)); return *this;}
214
216
220 inline const Aws::String& GetBeforeContext() const{ return m_beforeContext; }
221 inline bool BeforeContextHasBeenSet() const { return m_beforeContextHasBeenSet; }
222 inline void SetBeforeContext(const Aws::String& value) { m_beforeContextHasBeenSet = true; m_beforeContext = value; }
223 inline void SetBeforeContext(Aws::String&& value) { m_beforeContextHasBeenSet = true; m_beforeContext = std::move(value); }
224 inline void SetBeforeContext(const char* value) { m_beforeContextHasBeenSet = true; m_beforeContext.assign(value); }
225 inline ResourceChange& WithBeforeContext(const Aws::String& value) { SetBeforeContext(value); return *this;}
226 inline ResourceChange& WithBeforeContext(Aws::String&& value) { SetBeforeContext(std::move(value)); return *this;}
227 inline ResourceChange& WithBeforeContext(const char* value) { SetBeforeContext(value); return *this;}
229
231
235 inline const Aws::String& GetAfterContext() const{ return m_afterContext; }
236 inline bool AfterContextHasBeenSet() const { return m_afterContextHasBeenSet; }
237 inline void SetAfterContext(const Aws::String& value) { m_afterContextHasBeenSet = true; m_afterContext = value; }
238 inline void SetAfterContext(Aws::String&& value) { m_afterContextHasBeenSet = true; m_afterContext = std::move(value); }
239 inline void SetAfterContext(const char* value) { m_afterContextHasBeenSet = true; m_afterContext.assign(value); }
240 inline ResourceChange& WithAfterContext(const Aws::String& value) { SetAfterContext(value); return *this;}
241 inline ResourceChange& WithAfterContext(Aws::String&& value) { SetAfterContext(std::move(value)); return *this;}
242 inline ResourceChange& WithAfterContext(const char* value) { SetAfterContext(value); return *this;}
244 private:
245
246 PolicyAction m_policyAction;
247 bool m_policyActionHasBeenSet = false;
248
249 ChangeAction m_action;
250 bool m_actionHasBeenSet = false;
251
252 Aws::String m_logicalResourceId;
253 bool m_logicalResourceIdHasBeenSet = false;
254
255 Aws::String m_physicalResourceId;
256 bool m_physicalResourceIdHasBeenSet = false;
257
258 Aws::String m_resourceType;
259 bool m_resourceTypeHasBeenSet = false;
260
261 Replacement m_replacement;
262 bool m_replacementHasBeenSet = false;
263
265 bool m_scopeHasBeenSet = false;
266
268 bool m_detailsHasBeenSet = false;
269
270 Aws::String m_changeSetId;
271 bool m_changeSetIdHasBeenSet = false;
272
273 ModuleInfo m_moduleInfo;
274 bool m_moduleInfoHasBeenSet = false;
275
276 Aws::String m_beforeContext;
277 bool m_beforeContextHasBeenSet = false;
278
279 Aws::String m_afterContext;
280 bool m_afterContextHasBeenSet = false;
281 };
282
283} // namespace Model
284} // namespace CloudFormation
285} // namespace Aws
ResourceChange & WithResourceType(const char *value)
ResourceChange & WithResourceType(const Aws::String &value)
void SetResourceType(const Aws::String &value)
ResourceChange & AddDetails(const ResourceChangeDetail &value)
ResourceChange & WithPhysicalResourceId(const char *value)
void SetScope(const Aws::Vector< ResourceAttribute > &value)
void SetModuleInfo(const ModuleInfo &value)
ResourceChange & WithModuleInfo(const ModuleInfo &value)
void SetPolicyAction(const PolicyAction &value)
ResourceChange & WithChangeSetId(Aws::String &&value)
ResourceChange & WithAfterContext(const Aws::String &value)
ResourceChange & WithPolicyAction(const PolicyAction &value)
ResourceChange & WithScope(Aws::Vector< ResourceAttribute > &&value)
ResourceChange & WithAction(ChangeAction &&value)
void SetDetails(const Aws::Vector< ResourceChangeDetail > &value)
ResourceChange & AddScope(ResourceAttribute &&value)
const Aws::String & GetLogicalResourceId() const
ResourceChange & WithAction(const ChangeAction &value)
const Aws::Vector< ResourceAttribute > & GetScope() const
void SetAction(const ChangeAction &value)
void SetLogicalResourceId(Aws::String &&value)
ResourceChange & WithChangeSetId(const char *value)
ResourceChange & WithAfterContext(const char *value)
const Aws::String & GetAfterContext() const
ResourceChange & WithLogicalResourceId(const Aws::String &value)
void SetPhysicalResourceId(const Aws::String &value)
ResourceChange & WithReplacement(const Replacement &value)
void SetPhysicalResourceId(Aws::String &&value)
const Aws::String & GetBeforeContext() const
ResourceChange & WithResourceType(Aws::String &&value)
ResourceChange & AddScope(const ResourceAttribute &value)
AWS_CLOUDFORMATION_API ResourceChange(const Aws::Utils::Xml::XmlNode &xmlNode)
ResourceChange & WithBeforeContext(const Aws::String &value)
void SetLogicalResourceId(const Aws::String &value)
void SetReplacement(const Replacement &value)
ResourceChange & WithAfterContext(Aws::String &&value)
const Aws::String & GetPhysicalResourceId() const
ResourceChange & WithChangeSetId(const Aws::String &value)
AWS_CLOUDFORMATION_API ResourceChange()
ResourceChange & WithLogicalResourceId(Aws::String &&value)
ResourceChange & WithBeforeContext(const char *value)
ResourceChange & WithDetails(Aws::Vector< ResourceChangeDetail > &&value)
ResourceChange & WithPhysicalResourceId(Aws::String &&value)
void SetBeforeContext(const Aws::String &value)
ResourceChange & WithBeforeContext(Aws::String &&value)
void SetAfterContext(const Aws::String &value)
ResourceChange & WithPhysicalResourceId(const Aws::String &value)
AWS_CLOUDFORMATION_API ResourceChange & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Replacement & GetReplacement() const
ResourceChange & WithLogicalResourceId(const char *value)
ResourceChange & WithPolicyAction(PolicyAction &&value)
ResourceChange & WithModuleInfo(ModuleInfo &&value)
ResourceChange & WithReplacement(Replacement &&value)
ResourceChange & WithScope(const Aws::Vector< ResourceAttribute > &value)
void SetPolicyAction(PolicyAction &&value)
const Aws::String & GetChangeSetId() const
const Aws::String & GetResourceType() const
void SetScope(Aws::Vector< ResourceAttribute > &&value)
const ChangeAction & GetAction() const
const PolicyAction & GetPolicyAction() const
ResourceChange & WithDetails(const Aws::Vector< ResourceChangeDetail > &value)
void SetChangeSetId(const Aws::String &value)
void SetDetails(Aws::Vector< ResourceChangeDetail > &&value)
const Aws::Vector< ResourceChangeDetail > & GetDetails() const
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ResourceChange & AddDetails(ResourceChangeDetail &&value)
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::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream