AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StackRefactorAction.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/StackRefactorActionType.h>
10#include <aws/cloudformation/model/StackRefactorActionEntity.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/cloudformation/model/StackRefactorDetection.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/cloudformation/model/ResourceMapping.h>
15#include <aws/cloudformation/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Xml
23{
24 class XmlNode;
25} // namespace Xml
26} // namespace Utils
27namespace CloudFormation
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_CLOUDFORMATION_API StackRefactorAction() = default;
42 AWS_CLOUDFORMATION_API StackRefactorAction(const Aws::Utils::Xml::XmlNode& xmlNode);
43 AWS_CLOUDFORMATION_API StackRefactorAction& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44
45 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
48
50
53 inline StackRefactorActionType GetAction() const { return m_action; }
54 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
55 inline void SetAction(StackRefactorActionType value) { m_actionHasBeenSet = true; m_action = value; }
56 inline StackRefactorAction& WithAction(StackRefactorActionType value) { SetAction(value); return *this;}
58
60
65 inline StackRefactorActionEntity GetEntity() const { return m_entity; }
66 inline bool EntityHasBeenSet() const { return m_entityHasBeenSet; }
67 inline void SetEntity(StackRefactorActionEntity value) { m_entityHasBeenSet = true; m_entity = value; }
68 inline StackRefactorAction& WithEntity(StackRefactorActionEntity value) { SetEntity(value); return *this;}
70
72
76 inline const Aws::String& GetPhysicalResourceId() const { return m_physicalResourceId; }
77 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
78 template<typename PhysicalResourceIdT = Aws::String>
79 void SetPhysicalResourceId(PhysicalResourceIdT&& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = std::forward<PhysicalResourceIdT>(value); }
80 template<typename PhysicalResourceIdT = Aws::String>
81 StackRefactorAction& WithPhysicalResourceId(PhysicalResourceIdT&& value) { SetPhysicalResourceId(std::forward<PhysicalResourceIdT>(value)); return *this;}
83
85
91 inline const Aws::String& GetResourceIdentifier() const { return m_resourceIdentifier; }
92 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
93 template<typename ResourceIdentifierT = Aws::String>
94 void SetResourceIdentifier(ResourceIdentifierT&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::forward<ResourceIdentifierT>(value); }
95 template<typename ResourceIdentifierT = Aws::String>
96 StackRefactorAction& WithResourceIdentifier(ResourceIdentifierT&& value) { SetResourceIdentifier(std::forward<ResourceIdentifierT>(value)); return *this;}
98
100
103 inline const Aws::String& GetDescription() const { return m_description; }
104 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
105 template<typename DescriptionT = Aws::String>
106 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
107 template<typename DescriptionT = Aws::String>
108 StackRefactorAction& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
110
112
118 inline StackRefactorDetection GetDetection() const { return m_detection; }
119 inline bool DetectionHasBeenSet() const { return m_detectionHasBeenSet; }
120 inline void SetDetection(StackRefactorDetection value) { m_detectionHasBeenSet = true; m_detection = value; }
123
125
128 inline const Aws::String& GetDetectionReason() const { return m_detectionReason; }
129 inline bool DetectionReasonHasBeenSet() const { return m_detectionReasonHasBeenSet; }
130 template<typename DetectionReasonT = Aws::String>
131 void SetDetectionReason(DetectionReasonT&& value) { m_detectionReasonHasBeenSet = true; m_detectionReason = std::forward<DetectionReasonT>(value); }
132 template<typename DetectionReasonT = Aws::String>
133 StackRefactorAction& WithDetectionReason(DetectionReasonT&& value) { SetDetectionReason(std::forward<DetectionReasonT>(value)); return *this;}
135
137
140 inline const Aws::Vector<Tag>& GetTagResources() const { return m_tagResources; }
141 inline bool TagResourcesHasBeenSet() const { return m_tagResourcesHasBeenSet; }
142 template<typename TagResourcesT = Aws::Vector<Tag>>
143 void SetTagResources(TagResourcesT&& value) { m_tagResourcesHasBeenSet = true; m_tagResources = std::forward<TagResourcesT>(value); }
144 template<typename TagResourcesT = Aws::Vector<Tag>>
145 StackRefactorAction& WithTagResources(TagResourcesT&& value) { SetTagResources(std::forward<TagResourcesT>(value)); return *this;}
146 template<typename TagResourcesT = Tag>
147 StackRefactorAction& AddTagResources(TagResourcesT&& value) { m_tagResourcesHasBeenSet = true; m_tagResources.emplace_back(std::forward<TagResourcesT>(value)); return *this; }
149
151
154 inline const Aws::Vector<Aws::String>& GetUntagResources() const { return m_untagResources; }
155 inline bool UntagResourcesHasBeenSet() const { return m_untagResourcesHasBeenSet; }
156 template<typename UntagResourcesT = Aws::Vector<Aws::String>>
157 void SetUntagResources(UntagResourcesT&& value) { m_untagResourcesHasBeenSet = true; m_untagResources = std::forward<UntagResourcesT>(value); }
158 template<typename UntagResourcesT = Aws::Vector<Aws::String>>
159 StackRefactorAction& WithUntagResources(UntagResourcesT&& value) { SetUntagResources(std::forward<UntagResourcesT>(value)); return *this;}
160 template<typename UntagResourcesT = Aws::String>
161 StackRefactorAction& AddUntagResources(UntagResourcesT&& value) { m_untagResourcesHasBeenSet = true; m_untagResources.emplace_back(std::forward<UntagResourcesT>(value)); return *this; }
163
165
169 inline const ResourceMapping& GetResourceMapping() const { return m_resourceMapping; }
170 inline bool ResourceMappingHasBeenSet() const { return m_resourceMappingHasBeenSet; }
171 template<typename ResourceMappingT = ResourceMapping>
172 void SetResourceMapping(ResourceMappingT&& value) { m_resourceMappingHasBeenSet = true; m_resourceMapping = std::forward<ResourceMappingT>(value); }
173 template<typename ResourceMappingT = ResourceMapping>
174 StackRefactorAction& WithResourceMapping(ResourceMappingT&& value) { SetResourceMapping(std::forward<ResourceMappingT>(value)); return *this;}
176 private:
177
179 bool m_actionHasBeenSet = false;
180
182 bool m_entityHasBeenSet = false;
183
184 Aws::String m_physicalResourceId;
185 bool m_physicalResourceIdHasBeenSet = false;
186
187 Aws::String m_resourceIdentifier;
188 bool m_resourceIdentifierHasBeenSet = false;
189
190 Aws::String m_description;
191 bool m_descriptionHasBeenSet = false;
192
194 bool m_detectionHasBeenSet = false;
195
196 Aws::String m_detectionReason;
197 bool m_detectionReasonHasBeenSet = false;
198
199 Aws::Vector<Tag> m_tagResources;
200 bool m_tagResourcesHasBeenSet = false;
201
202 Aws::Vector<Aws::String> m_untagResources;
203 bool m_untagResourcesHasBeenSet = false;
204
205 ResourceMapping m_resourceMapping;
206 bool m_resourceMappingHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace CloudFormation
211} // 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::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream