AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResourceTargetDefinition.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/ResourceAttribute.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/cloudformation/model/RequiresRecreation.h>
12#include <aws/cloudformation/model/AttributeChangeType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace CloudFormation
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_CLOUDFORMATION_API ResourceTargetDefinition() = default;
40 AWS_CLOUDFORMATION_API ResourceTargetDefinition(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_CLOUDFORMATION_API ResourceTargetDefinition& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
53 inline ResourceAttribute GetAttribute() const { return m_attribute; }
54 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
55 inline void SetAttribute(ResourceAttribute value) { m_attributeHasBeenSet = true; m_attribute = value; }
58
60
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template<typename NameT = Aws::String>
67 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
68 template<typename NameT = Aws::String>
69 ResourceTargetDefinition& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
71
73
83 inline RequiresRecreation GetRequiresRecreation() const { return m_requiresRecreation; }
84 inline bool RequiresRecreationHasBeenSet() const { return m_requiresRecreationHasBeenSet; }
85 inline void SetRequiresRecreation(RequiresRecreation value) { m_requiresRecreationHasBeenSet = true; m_requiresRecreation = value; }
88
90
93 inline const Aws::String& GetPath() const { return m_path; }
94 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
95 template<typename PathT = Aws::String>
96 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
97 template<typename PathT = Aws::String>
98 ResourceTargetDefinition& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
100
102
106 inline const Aws::String& GetBeforeValue() const { return m_beforeValue; }
107 inline bool BeforeValueHasBeenSet() const { return m_beforeValueHasBeenSet; }
108 template<typename BeforeValueT = Aws::String>
109 void SetBeforeValue(BeforeValueT&& value) { m_beforeValueHasBeenSet = true; m_beforeValue = std::forward<BeforeValueT>(value); }
110 template<typename BeforeValueT = Aws::String>
111 ResourceTargetDefinition& WithBeforeValue(BeforeValueT&& value) { SetBeforeValue(std::forward<BeforeValueT>(value)); return *this;}
113
115
119 inline const Aws::String& GetAfterValue() const { return m_afterValue; }
120 inline bool AfterValueHasBeenSet() const { return m_afterValueHasBeenSet; }
121 template<typename AfterValueT = Aws::String>
122 void SetAfterValue(AfterValueT&& value) { m_afterValueHasBeenSet = true; m_afterValue = std::forward<AfterValueT>(value); }
123 template<typename AfterValueT = Aws::String>
124 ResourceTargetDefinition& WithAfterValue(AfterValueT&& value) { SetAfterValue(std::forward<AfterValueT>(value)); return *this;}
126
128
134 inline AttributeChangeType GetAttributeChangeType() const { return m_attributeChangeType; }
135 inline bool AttributeChangeTypeHasBeenSet() const { return m_attributeChangeTypeHasBeenSet; }
136 inline void SetAttributeChangeType(AttributeChangeType value) { m_attributeChangeTypeHasBeenSet = true; m_attributeChangeType = value; }
139 private:
140
142 bool m_attributeHasBeenSet = false;
143
144 Aws::String m_name;
145 bool m_nameHasBeenSet = false;
146
148 bool m_requiresRecreationHasBeenSet = false;
149
150 Aws::String m_path;
151 bool m_pathHasBeenSet = false;
152
153 Aws::String m_beforeValue;
154 bool m_beforeValueHasBeenSet = false;
155
156 Aws::String m_afterValue;
157 bool m_afterValueHasBeenSet = false;
158
160 bool m_attributeChangeTypeHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace CloudFormation
165} // namespace Aws
AWS_CLOUDFORMATION_API ResourceTargetDefinition(const Aws::Utils::Xml::XmlNode &xmlNode)
ResourceTargetDefinition & WithAttributeChangeType(AttributeChangeType value)
AWS_CLOUDFORMATION_API ResourceTargetDefinition()=default
ResourceTargetDefinition & WithAfterValue(AfterValueT &&value)
ResourceTargetDefinition & WithName(NameT &&value)
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
AWS_CLOUDFORMATION_API ResourceTargetDefinition & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ResourceTargetDefinition & WithRequiresRecreation(RequiresRecreation value)
ResourceTargetDefinition & WithPath(PathT &&value)
ResourceTargetDefinition & WithBeforeValue(BeforeValueT &&value)
ResourceTargetDefinition & WithAttribute(ResourceAttribute value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream