AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
StackInstancesDeployment.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/model/StageStatus.h>
9#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace CloudFormation {
20namespace Model {
21
31 public:
32 AWS_CLOUDFORMATION_API StackInstancesDeployment() = default;
33 AWS_CLOUDFORMATION_API StackInstancesDeployment(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_CLOUDFORMATION_API StackInstancesDeployment& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
54 inline StageStatus GetStatus() const { return m_status; }
55 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
56 inline void SetStatus(StageStatus value) {
57 m_statusHasBeenSet = true;
58 m_status = value;
59 }
61 SetStatus(value);
62 return *this;
63 }
65
67
70 inline int GetSucceededStackInstancesCount() const { return m_succeededStackInstancesCount; }
71 inline bool SucceededStackInstancesCountHasBeenSet() const { return m_succeededStackInstancesCountHasBeenSet; }
72 inline void SetSucceededStackInstancesCount(int value) {
73 m_succeededStackInstancesCountHasBeenSet = true;
74 m_succeededStackInstancesCount = value;
75 }
81
83
86 inline int GetFailedStackInstancesCount() const { return m_failedStackInstancesCount; }
87 inline bool FailedStackInstancesCountHasBeenSet() const { return m_failedStackInstancesCountHasBeenSet; }
88 inline void SetFailedStackInstancesCount(int value) {
89 m_failedStackInstancesCountHasBeenSet = true;
90 m_failedStackInstancesCount = value;
91 }
94 return *this;
95 }
97
99
104 inline int GetCompletedStackInstancesCount() const { return m_completedStackInstancesCount; }
105 inline bool CompletedStackInstancesCountHasBeenSet() const { return m_completedStackInstancesCountHasBeenSet; }
106 inline void SetCompletedStackInstancesCount(int value) {
107 m_completedStackInstancesCountHasBeenSet = true;
108 m_completedStackInstancesCount = value;
109 }
112 return *this;
113 }
115
117
121 inline int GetPendingStackInstancesCount() const { return m_pendingStackInstancesCount; }
122 inline bool PendingStackInstancesCountHasBeenSet() const { return m_pendingStackInstancesCountHasBeenSet; }
123 inline void SetPendingStackInstancesCount(int value) {
124 m_pendingStackInstancesCountHasBeenSet = true;
125 m_pendingStackInstancesCount = value;
126 }
129 return *this;
130 }
132
134
138 inline int GetCancelledStackInstancesCount() const { return m_cancelledStackInstancesCount; }
139 inline bool CancelledStackInstancesCountHasBeenSet() const { return m_cancelledStackInstancesCountHasBeenSet; }
140 inline void SetCancelledStackInstancesCount(int value) {
141 m_cancelledStackInstancesCountHasBeenSet = true;
142 m_cancelledStackInstancesCount = value;
143 }
146 return *this;
147 }
149
151
155 inline int GetSkippedStackInstancesCount() const { return m_skippedStackInstancesCount; }
156 inline bool SkippedStackInstancesCountHasBeenSet() const { return m_skippedStackInstancesCountHasBeenSet; }
157 inline void SetSkippedStackInstancesCount(int value) {
158 m_skippedStackInstancesCountHasBeenSet = true;
159 m_skippedStackInstancesCount = value;
160 }
163 return *this;
164 }
166
168
171 inline double GetPercentageCompleted() const { return m_percentageCompleted; }
172 inline bool PercentageCompletedHasBeenSet() const { return m_percentageCompletedHasBeenSet; }
173 inline void SetPercentageCompleted(double value) {
174 m_percentageCompletedHasBeenSet = true;
175 m_percentageCompleted = value;
176 }
179 return *this;
180 }
182 private:
184
185 int m_succeededStackInstancesCount{0};
186
187 int m_failedStackInstancesCount{0};
188
189 int m_completedStackInstancesCount{0};
190
191 int m_pendingStackInstancesCount{0};
192
193 int m_cancelledStackInstancesCount{0};
194
195 int m_skippedStackInstancesCount{0};
196
197 double m_percentageCompleted{0.0};
198 bool m_statusHasBeenSet = false;
199 bool m_succeededStackInstancesCountHasBeenSet = false;
200 bool m_failedStackInstancesCountHasBeenSet = false;
201 bool m_completedStackInstancesCountHasBeenSet = false;
202 bool m_pendingStackInstancesCountHasBeenSet = false;
203 bool m_cancelledStackInstancesCountHasBeenSet = false;
204 bool m_skippedStackInstancesCountHasBeenSet = false;
205 bool m_percentageCompletedHasBeenSet = false;
206};
207
208} // namespace Model
209} // namespace CloudFormation
210} // namespace Aws
StackInstancesDeployment & WithCancelledStackInstancesCount(int value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
StackInstancesDeployment & WithCompletedStackInstancesCount(int value)
StackInstancesDeployment & WithSucceededStackInstancesCount(int value)
StackInstancesDeployment & WithStatus(StageStatus value)
StackInstancesDeployment & WithSkippedStackInstancesCount(int value)
AWS_CLOUDFORMATION_API StackInstancesDeployment()=default
StackInstancesDeployment & WithPendingStackInstancesCount(int value)
StackInstancesDeployment & WithPercentageCompleted(double value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_CLOUDFORMATION_API StackInstancesDeployment(const Aws::Utils::Xml::XmlNode &xmlNode)
StackInstancesDeployment & WithFailedStackInstancesCount(int value)
AWS_CLOUDFORMATION_API StackInstancesDeployment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_ostream< char, std::char_traits< char > > OStream