AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StackInstanceResourceDriftsSummary.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/cloudformation/model/StackResourceDriftStatus.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/cloudformation/model/PhysicalResourceIdContextKeyValuePair.h>
14#include <aws/cloudformation/model/PropertyDifference.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace CloudFormation
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_CLOUDFORMATION_API StackInstanceResourceDriftsSummary() = default;
41 AWS_CLOUDFORMATION_API StackInstanceResourceDriftsSummary(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
52 inline const Aws::String& GetStackId() const { return m_stackId; }
53 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
54 template<typename StackIdT = Aws::String>
55 void SetStackId(StackIdT&& value) { m_stackIdHasBeenSet = true; m_stackId = std::forward<StackIdT>(value); }
56 template<typename StackIdT = Aws::String>
57 StackInstanceResourceDriftsSummary& WithStackId(StackIdT&& value) { SetStackId(std::forward<StackIdT>(value)); return *this;}
59
61
64 inline const Aws::String& GetLogicalResourceId() const { return m_logicalResourceId; }
65 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
66 template<typename LogicalResourceIdT = Aws::String>
67 void SetLogicalResourceId(LogicalResourceIdT&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::forward<LogicalResourceIdT>(value); }
68 template<typename LogicalResourceIdT = Aws::String>
69 StackInstanceResourceDriftsSummary& WithLogicalResourceId(LogicalResourceIdT&& value) { SetLogicalResourceId(std::forward<LogicalResourceIdT>(value)); return *this;}
71
73
77 inline const Aws::String& GetPhysicalResourceId() const { return m_physicalResourceId; }
78 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
79 template<typename PhysicalResourceIdT = Aws::String>
80 void SetPhysicalResourceId(PhysicalResourceIdT&& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = std::forward<PhysicalResourceIdT>(value); }
81 template<typename PhysicalResourceIdT = Aws::String>
82 StackInstanceResourceDriftsSummary& WithPhysicalResourceId(PhysicalResourceIdT&& value) { SetPhysicalResourceId(std::forward<PhysicalResourceIdT>(value)); return *this;}
84
86
93 inline const Aws::Vector<PhysicalResourceIdContextKeyValuePair>& GetPhysicalResourceIdContext() const { return m_physicalResourceIdContext; }
94 inline bool PhysicalResourceIdContextHasBeenSet() const { return m_physicalResourceIdContextHasBeenSet; }
95 template<typename PhysicalResourceIdContextT = Aws::Vector<PhysicalResourceIdContextKeyValuePair>>
96 void SetPhysicalResourceIdContext(PhysicalResourceIdContextT&& value) { m_physicalResourceIdContextHasBeenSet = true; m_physicalResourceIdContext = std::forward<PhysicalResourceIdContextT>(value); }
97 template<typename PhysicalResourceIdContextT = Aws::Vector<PhysicalResourceIdContextKeyValuePair>>
98 StackInstanceResourceDriftsSummary& WithPhysicalResourceIdContext(PhysicalResourceIdContextT&& value) { SetPhysicalResourceIdContext(std::forward<PhysicalResourceIdContextT>(value)); return *this;}
99 template<typename PhysicalResourceIdContextT = PhysicalResourceIdContextKeyValuePair>
100 StackInstanceResourceDriftsSummary& AddPhysicalResourceIdContext(PhysicalResourceIdContextT&& value) { m_physicalResourceIdContextHasBeenSet = true; m_physicalResourceIdContext.emplace_back(std::forward<PhysicalResourceIdContextT>(value)); return *this; }
102
104
110 inline const Aws::String& GetResourceType() const { return m_resourceType; }
111 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
112 template<typename ResourceTypeT = Aws::String>
113 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
114 template<typename ResourceTypeT = Aws::String>
115 StackInstanceResourceDriftsSummary& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
117
119
124 inline const Aws::Vector<PropertyDifference>& GetPropertyDifferences() const { return m_propertyDifferences; }
125 inline bool PropertyDifferencesHasBeenSet() const { return m_propertyDifferencesHasBeenSet; }
126 template<typename PropertyDifferencesT = Aws::Vector<PropertyDifference>>
127 void SetPropertyDifferences(PropertyDifferencesT&& value) { m_propertyDifferencesHasBeenSet = true; m_propertyDifferences = std::forward<PropertyDifferencesT>(value); }
128 template<typename PropertyDifferencesT = Aws::Vector<PropertyDifference>>
129 StackInstanceResourceDriftsSummary& WithPropertyDifferences(PropertyDifferencesT&& value) { SetPropertyDifferences(std::forward<PropertyDifferencesT>(value)); return *this;}
130 template<typename PropertyDifferencesT = PropertyDifference>
131 StackInstanceResourceDriftsSummary& AddPropertyDifferences(PropertyDifferencesT&& value) { m_propertyDifferencesHasBeenSet = true; m_propertyDifferences.emplace_back(std::forward<PropertyDifferencesT>(value)); return *this; }
133
135
145 inline StackResourceDriftStatus GetStackResourceDriftStatus() const { return m_stackResourceDriftStatus; }
146 inline bool StackResourceDriftStatusHasBeenSet() const { return m_stackResourceDriftStatusHasBeenSet; }
147 inline void SetStackResourceDriftStatus(StackResourceDriftStatus value) { m_stackResourceDriftStatusHasBeenSet = true; m_stackResourceDriftStatus = value; }
150
152
155 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
156 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
157 template<typename TimestampT = Aws::Utils::DateTime>
158 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
159 template<typename TimestampT = Aws::Utils::DateTime>
160 StackInstanceResourceDriftsSummary& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
162 private:
163
164 Aws::String m_stackId;
165 bool m_stackIdHasBeenSet = false;
166
167 Aws::String m_logicalResourceId;
168 bool m_logicalResourceIdHasBeenSet = false;
169
170 Aws::String m_physicalResourceId;
171 bool m_physicalResourceIdHasBeenSet = false;
172
173 Aws::Vector<PhysicalResourceIdContextKeyValuePair> m_physicalResourceIdContext;
174 bool m_physicalResourceIdContextHasBeenSet = false;
175
176 Aws::String m_resourceType;
177 bool m_resourceTypeHasBeenSet = false;
178
179 Aws::Vector<PropertyDifference> m_propertyDifferences;
180 bool m_propertyDifferencesHasBeenSet = false;
181
183 bool m_stackResourceDriftStatusHasBeenSet = false;
184
185 Aws::Utils::DateTime m_timestamp{};
186 bool m_timestampHasBeenSet = false;
187 };
188
189} // namespace Model
190} // namespace CloudFormation
191} // namespace Aws
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
StackInstanceResourceDriftsSummary & AddPropertyDifferences(PropertyDifferencesT &&value)
StackInstanceResourceDriftsSummary & WithStackResourceDriftStatus(StackResourceDriftStatus value)
StackInstanceResourceDriftsSummary & AddPhysicalResourceIdContext(PhysicalResourceIdContextT &&value)
StackInstanceResourceDriftsSummary & WithTimestamp(TimestampT &&value)
AWS_CLOUDFORMATION_API StackInstanceResourceDriftsSummary & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
StackInstanceResourceDriftsSummary & WithPhysicalResourceIdContext(PhysicalResourceIdContextT &&value)
StackInstanceResourceDriftsSummary & WithLogicalResourceId(LogicalResourceIdT &&value)
StackInstanceResourceDriftsSummary & WithResourceType(ResourceTypeT &&value)
StackInstanceResourceDriftsSummary & WithStackId(StackIdT &&value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
StackInstanceResourceDriftsSummary & WithPhysicalResourceId(PhysicalResourceIdT &&value)
AWS_CLOUDFORMATION_API StackInstanceResourceDriftsSummary(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFORMATION_API StackInstanceResourceDriftsSummary()=default
StackInstanceResourceDriftsSummary & WithPropertyDifferences(PropertyDifferencesT &&value)
const Aws::Vector< PhysicalResourceIdContextKeyValuePair > & GetPhysicalResourceIdContext() 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