AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ResourceAttribute& GetAttribute() const{ return m_attribute; }
54 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
55 inline void SetAttribute(const ResourceAttribute& value) { m_attributeHasBeenSet = true; m_attribute = value; }
56 inline void SetAttribute(ResourceAttribute&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
57 inline ResourceTargetDefinition& WithAttribute(const ResourceAttribute& value) { SetAttribute(value); return *this;}
58 inline ResourceTargetDefinition& WithAttribute(ResourceAttribute&& value) { SetAttribute(std::move(value)); return *this;}
60
62
66 inline const Aws::String& GetName() const{ return m_name; }
67 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
68 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
69 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
70 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
71 inline ResourceTargetDefinition& WithName(const Aws::String& value) { SetName(value); return *this;}
72 inline ResourceTargetDefinition& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
73 inline ResourceTargetDefinition& WithName(const char* value) { SetName(value); return *this;}
75
77
87 inline const RequiresRecreation& GetRequiresRecreation() const{ return m_requiresRecreation; }
88 inline bool RequiresRecreationHasBeenSet() const { return m_requiresRecreationHasBeenSet; }
89 inline void SetRequiresRecreation(const RequiresRecreation& value) { m_requiresRecreationHasBeenSet = true; m_requiresRecreation = value; }
90 inline void SetRequiresRecreation(RequiresRecreation&& value) { m_requiresRecreationHasBeenSet = true; m_requiresRecreation = std::move(value); }
94
96
99 inline const Aws::String& GetPath() const{ return m_path; }
100 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
101 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
102 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
103 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
104 inline ResourceTargetDefinition& WithPath(const Aws::String& value) { SetPath(value); return *this;}
105 inline ResourceTargetDefinition& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
106 inline ResourceTargetDefinition& WithPath(const char* value) { SetPath(value); return *this;}
108
110
114 inline const Aws::String& GetBeforeValue() const{ return m_beforeValue; }
115 inline bool BeforeValueHasBeenSet() const { return m_beforeValueHasBeenSet; }
116 inline void SetBeforeValue(const Aws::String& value) { m_beforeValueHasBeenSet = true; m_beforeValue = value; }
117 inline void SetBeforeValue(Aws::String&& value) { m_beforeValueHasBeenSet = true; m_beforeValue = std::move(value); }
118 inline void SetBeforeValue(const char* value) { m_beforeValueHasBeenSet = true; m_beforeValue.assign(value); }
119 inline ResourceTargetDefinition& WithBeforeValue(const Aws::String& value) { SetBeforeValue(value); return *this;}
120 inline ResourceTargetDefinition& WithBeforeValue(Aws::String&& value) { SetBeforeValue(std::move(value)); return *this;}
121 inline ResourceTargetDefinition& WithBeforeValue(const char* value) { SetBeforeValue(value); return *this;}
123
125
129 inline const Aws::String& GetAfterValue() const{ return m_afterValue; }
130 inline bool AfterValueHasBeenSet() const { return m_afterValueHasBeenSet; }
131 inline void SetAfterValue(const Aws::String& value) { m_afterValueHasBeenSet = true; m_afterValue = value; }
132 inline void SetAfterValue(Aws::String&& value) { m_afterValueHasBeenSet = true; m_afterValue = std::move(value); }
133 inline void SetAfterValue(const char* value) { m_afterValueHasBeenSet = true; m_afterValue.assign(value); }
134 inline ResourceTargetDefinition& WithAfterValue(const Aws::String& value) { SetAfterValue(value); return *this;}
135 inline ResourceTargetDefinition& WithAfterValue(Aws::String&& value) { SetAfterValue(std::move(value)); return *this;}
136 inline ResourceTargetDefinition& WithAfterValue(const char* value) { SetAfterValue(value); return *this;}
138
140
146 inline const AttributeChangeType& GetAttributeChangeType() const{ return m_attributeChangeType; }
147 inline bool AttributeChangeTypeHasBeenSet() const { return m_attributeChangeTypeHasBeenSet; }
148 inline void SetAttributeChangeType(const AttributeChangeType& value) { m_attributeChangeTypeHasBeenSet = true; m_attributeChangeType = value; }
149 inline void SetAttributeChangeType(AttributeChangeType&& value) { m_attributeChangeTypeHasBeenSet = true; m_attributeChangeType = std::move(value); }
153 private:
154
155 ResourceAttribute m_attribute;
156 bool m_attributeHasBeenSet = false;
157
158 Aws::String m_name;
159 bool m_nameHasBeenSet = false;
160
161 RequiresRecreation m_requiresRecreation;
162 bool m_requiresRecreationHasBeenSet = false;
163
164 Aws::String m_path;
165 bool m_pathHasBeenSet = false;
166
167 Aws::String m_beforeValue;
168 bool m_beforeValueHasBeenSet = false;
169
170 Aws::String m_afterValue;
171 bool m_afterValueHasBeenSet = false;
172
173 AttributeChangeType m_attributeChangeType;
174 bool m_attributeChangeTypeHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace CloudFormation
179} // namespace Aws
ResourceTargetDefinition & WithAttribute(const ResourceAttribute &value)
void SetAttributeChangeType(const AttributeChangeType &value)
AWS_CLOUDFORMATION_API ResourceTargetDefinition(const Aws::Utils::Xml::XmlNode &xmlNode)
ResourceTargetDefinition & WithAfterValue(const Aws::String &value)
void SetRequiresRecreation(const RequiresRecreation &value)
ResourceTargetDefinition & WithName(const char *value)
ResourceTargetDefinition & WithPath(const char *value)
ResourceTargetDefinition & WithAttribute(ResourceAttribute &&value)
ResourceTargetDefinition & WithBeforeValue(Aws::String &&value)
ResourceTargetDefinition & WithRequiresRecreation(RequiresRecreation &&value)
ResourceTargetDefinition & WithAttributeChangeType(const AttributeChangeType &value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ResourceTargetDefinition & WithAfterValue(Aws::String &&value)
ResourceTargetDefinition & WithAttributeChangeType(AttributeChangeType &&value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_CLOUDFORMATION_API ResourceTargetDefinition & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ResourceTargetDefinition & WithName(Aws::String &&value)
ResourceTargetDefinition & WithPath(const Aws::String &value)
ResourceTargetDefinition & WithPath(Aws::String &&value)
ResourceTargetDefinition & WithRequiresRecreation(const RequiresRecreation &value)
ResourceTargetDefinition & WithAfterValue(const char *value)
ResourceTargetDefinition & WithBeforeValue(const Aws::String &value)
ResourceTargetDefinition & WithBeforeValue(const char *value)
ResourceTargetDefinition & WithName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream