AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 PolicyAction GetPolicyAction() const { return m_policyAction; }
64 inline bool PolicyActionHasBeenSet() const { return m_policyActionHasBeenSet; }
65 inline void SetPolicyAction(PolicyAction value) { m_policyActionHasBeenSet = true; m_policyAction = value; }
66 inline ResourceChange& WithPolicyAction(PolicyAction value) { SetPolicyAction(value); return *this;}
68
70
77 inline ChangeAction GetAction() const { return m_action; }
78 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
79 inline void SetAction(ChangeAction value) { m_actionHasBeenSet = true; m_action = value; }
80 inline ResourceChange& WithAction(ChangeAction value) { SetAction(value); return *this;}
82
84
87 inline const Aws::String& GetLogicalResourceId() const { return m_logicalResourceId; }
88 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
89 template<typename LogicalResourceIdT = Aws::String>
90 void SetLogicalResourceId(LogicalResourceIdT&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::forward<LogicalResourceIdT>(value); }
91 template<typename LogicalResourceIdT = Aws::String>
92 ResourceChange& WithLogicalResourceId(LogicalResourceIdT&& value) { SetLogicalResourceId(std::forward<LogicalResourceIdT>(value)); return *this;}
94
96
100 inline const Aws::String& GetPhysicalResourceId() const { return m_physicalResourceId; }
101 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
102 template<typename PhysicalResourceIdT = Aws::String>
103 void SetPhysicalResourceId(PhysicalResourceIdT&& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = std::forward<PhysicalResourceIdT>(value); }
104 template<typename PhysicalResourceIdT = Aws::String>
105 ResourceChange& WithPhysicalResourceId(PhysicalResourceIdT&& value) { SetPhysicalResourceId(std::forward<PhysicalResourceIdT>(value)); return *this;}
107
109
113 inline const Aws::String& GetResourceType() const { return m_resourceType; }
114 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
115 template<typename ResourceTypeT = Aws::String>
116 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
117 template<typename ResourceTypeT = Aws::String>
118 ResourceChange& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
120
122
138 inline Replacement GetReplacement() const { return m_replacement; }
139 inline bool ReplacementHasBeenSet() const { return m_replacementHasBeenSet; }
140 inline void SetReplacement(Replacement value) { m_replacementHasBeenSet = true; m_replacement = value; }
141 inline ResourceChange& WithReplacement(Replacement value) { SetReplacement(value); return *this;}
143
145
150 inline const Aws::Vector<ResourceAttribute>& GetScope() const { return m_scope; }
151 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
152 template<typename ScopeT = Aws::Vector<ResourceAttribute>>
153 void SetScope(ScopeT&& value) { m_scopeHasBeenSet = true; m_scope = std::forward<ScopeT>(value); }
154 template<typename ScopeT = Aws::Vector<ResourceAttribute>>
155 ResourceChange& WithScope(ScopeT&& value) { SetScope(std::forward<ScopeT>(value)); return *this;}
156 inline ResourceChange& AddScope(ResourceAttribute value) { m_scopeHasBeenSet = true; m_scope.push_back(value); return *this; }
158
160
165 inline const Aws::Vector<ResourceChangeDetail>& GetDetails() const { return m_details; }
166 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
167 template<typename DetailsT = Aws::Vector<ResourceChangeDetail>>
168 void SetDetails(DetailsT&& value) { m_detailsHasBeenSet = true; m_details = std::forward<DetailsT>(value); }
169 template<typename DetailsT = Aws::Vector<ResourceChangeDetail>>
170 ResourceChange& WithDetails(DetailsT&& value) { SetDetails(std::forward<DetailsT>(value)); return *this;}
171 template<typename DetailsT = ResourceChangeDetail>
172 ResourceChange& AddDetails(DetailsT&& value) { m_detailsHasBeenSet = true; m_details.emplace_back(std::forward<DetailsT>(value)); return *this; }
174
176
179 inline const Aws::String& GetChangeSetId() const { return m_changeSetId; }
180 inline bool ChangeSetIdHasBeenSet() const { return m_changeSetIdHasBeenSet; }
181 template<typename ChangeSetIdT = Aws::String>
182 void SetChangeSetId(ChangeSetIdT&& value) { m_changeSetIdHasBeenSet = true; m_changeSetId = std::forward<ChangeSetIdT>(value); }
183 template<typename ChangeSetIdT = Aws::String>
184 ResourceChange& WithChangeSetId(ChangeSetIdT&& value) { SetChangeSetId(std::forward<ChangeSetIdT>(value)); return *this;}
186
188
192 inline const ModuleInfo& GetModuleInfo() const { return m_moduleInfo; }
193 inline bool ModuleInfoHasBeenSet() const { return m_moduleInfoHasBeenSet; }
194 template<typename ModuleInfoT = ModuleInfo>
195 void SetModuleInfo(ModuleInfoT&& value) { m_moduleInfoHasBeenSet = true; m_moduleInfo = std::forward<ModuleInfoT>(value); }
196 template<typename ModuleInfoT = ModuleInfo>
197 ResourceChange& WithModuleInfo(ModuleInfoT&& value) { SetModuleInfo(std::forward<ModuleInfoT>(value)); return *this;}
199
201
205 inline const Aws::String& GetBeforeContext() const { return m_beforeContext; }
206 inline bool BeforeContextHasBeenSet() const { return m_beforeContextHasBeenSet; }
207 template<typename BeforeContextT = Aws::String>
208 void SetBeforeContext(BeforeContextT&& value) { m_beforeContextHasBeenSet = true; m_beforeContext = std::forward<BeforeContextT>(value); }
209 template<typename BeforeContextT = Aws::String>
210 ResourceChange& WithBeforeContext(BeforeContextT&& value) { SetBeforeContext(std::forward<BeforeContextT>(value)); return *this;}
212
214
218 inline const Aws::String& GetAfterContext() const { return m_afterContext; }
219 inline bool AfterContextHasBeenSet() const { return m_afterContextHasBeenSet; }
220 template<typename AfterContextT = Aws::String>
221 void SetAfterContext(AfterContextT&& value) { m_afterContextHasBeenSet = true; m_afterContext = std::forward<AfterContextT>(value); }
222 template<typename AfterContextT = Aws::String>
223 ResourceChange& WithAfterContext(AfterContextT&& value) { SetAfterContext(std::forward<AfterContextT>(value)); return *this;}
225 private:
226
227 PolicyAction m_policyAction{PolicyAction::NOT_SET};
228 bool m_policyActionHasBeenSet = false;
229
231 bool m_actionHasBeenSet = false;
232
233 Aws::String m_logicalResourceId;
234 bool m_logicalResourceIdHasBeenSet = false;
235
236 Aws::String m_physicalResourceId;
237 bool m_physicalResourceIdHasBeenSet = false;
238
239 Aws::String m_resourceType;
240 bool m_resourceTypeHasBeenSet = false;
241
242 Replacement m_replacement{Replacement::NOT_SET};
243 bool m_replacementHasBeenSet = false;
244
246 bool m_scopeHasBeenSet = false;
247
249 bool m_detailsHasBeenSet = false;
250
251 Aws::String m_changeSetId;
252 bool m_changeSetIdHasBeenSet = false;
253
254 ModuleInfo m_moduleInfo;
255 bool m_moduleInfoHasBeenSet = false;
256
257 Aws::String m_beforeContext;
258 bool m_beforeContextHasBeenSet = false;
259
260 Aws::String m_afterContext;
261 bool m_afterContextHasBeenSet = false;
262 };
263
264} // namespace Model
265} // namespace CloudFormation
266} // namespace Aws
ResourceChange & WithPolicyAction(PolicyAction value)
void SetAfterContext(AfterContextT &&value)
void SetPhysicalResourceId(PhysicalResourceIdT &&value)
void SetBeforeContext(BeforeContextT &&value)
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 & 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 SetChangeSetId(ChangeSetIdT &&value)
ResourceChange & WithLogicalResourceId(LogicalResourceIdT &&value)
AWS_CLOUDFORMATION_API ResourceChange & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetChangeSetId() const
const Aws::String & GetResourceType() const
ResourceChange & WithAfterContext(AfterContextT &&value)
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::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream