AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
StackSetOperationPreferences.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/model/ConcurrencyMode.h>
9#include <aws/cloudformation/model/RegionConcurrencyType.h>
10#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace CloudFormation {
23namespace Model {
24
37 public:
38 AWS_CLOUDFORMATION_API StackSetOperationPreferences() = default;
39 AWS_CLOUDFORMATION_API StackSetOperationPreferences(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_CLOUDFORMATION_API StackSetOperationPreferences& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
46
50 inline RegionConcurrencyType GetRegionConcurrencyType() const { return m_regionConcurrencyType; }
51 inline bool RegionConcurrencyTypeHasBeenSet() const { return m_regionConcurrencyTypeHasBeenSet; }
53 m_regionConcurrencyTypeHasBeenSet = true;
54 m_regionConcurrencyType = value;
55 }
61
63
66 inline const Aws::Vector<Aws::String>& GetRegionOrder() const { return m_regionOrder; }
67 inline bool RegionOrderHasBeenSet() const { return m_regionOrderHasBeenSet; }
68 template <typename RegionOrderT = Aws::Vector<Aws::String>>
69 void SetRegionOrder(RegionOrderT&& value) {
70 m_regionOrderHasBeenSet = true;
71 m_regionOrder = std::forward<RegionOrderT>(value);
72 }
73 template <typename RegionOrderT = Aws::Vector<Aws::String>>
75 SetRegionOrder(std::forward<RegionOrderT>(value));
76 return *this;
77 }
78 template <typename RegionOrderT = Aws::String>
80 m_regionOrderHasBeenSet = true;
81 m_regionOrder.emplace_back(std::forward<RegionOrderT>(value));
82 return *this;
83 }
85
87
95 inline int GetFailureToleranceCount() const { return m_failureToleranceCount; }
96 inline bool FailureToleranceCountHasBeenSet() const { return m_failureToleranceCountHasBeenSet; }
97 inline void SetFailureToleranceCount(int value) {
98 m_failureToleranceCountHasBeenSet = true;
99 m_failureToleranceCount = value;
100 }
103 return *this;
104 }
106
108
118 inline int GetFailureTolerancePercentage() const { return m_failureTolerancePercentage; }
119 inline bool FailureTolerancePercentageHasBeenSet() const { return m_failureTolerancePercentageHasBeenSet; }
120 inline void SetFailureTolerancePercentage(int value) {
121 m_failureTolerancePercentageHasBeenSet = true;
122 m_failureTolerancePercentage = value;
123 }
126 return *this;
127 }
129
131
143 inline int GetMaxConcurrentCount() const { return m_maxConcurrentCount; }
144 inline bool MaxConcurrentCountHasBeenSet() const { return m_maxConcurrentCountHasBeenSet; }
145 inline void SetMaxConcurrentCount(int value) {
146 m_maxConcurrentCountHasBeenSet = true;
147 m_maxConcurrentCount = value;
148 }
151 return *this;
152 }
154
156
168 inline int GetMaxConcurrentPercentage() const { return m_maxConcurrentPercentage; }
169 inline bool MaxConcurrentPercentageHasBeenSet() const { return m_maxConcurrentPercentageHasBeenSet; }
170 inline void SetMaxConcurrentPercentage(int value) {
171 m_maxConcurrentPercentageHasBeenSet = true;
172 m_maxConcurrentPercentage = value;
173 }
176 return *this;
177 }
179
181
198 inline ConcurrencyMode GetConcurrencyMode() const { return m_concurrencyMode; }
199 inline bool ConcurrencyModeHasBeenSet() const { return m_concurrencyModeHasBeenSet; }
201 m_concurrencyModeHasBeenSet = true;
202 m_concurrencyMode = value;
203 }
205 SetConcurrencyMode(value);
206 return *this;
207 }
209 private:
211
212 Aws::Vector<Aws::String> m_regionOrder;
213
214 int m_failureToleranceCount{0};
215
216 int m_failureTolerancePercentage{0};
217
218 int m_maxConcurrentCount{0};
219
220 int m_maxConcurrentPercentage{0};
221
222 ConcurrencyMode m_concurrencyMode{ConcurrencyMode::NOT_SET};
223 bool m_regionConcurrencyTypeHasBeenSet = false;
224 bool m_regionOrderHasBeenSet = false;
225 bool m_failureToleranceCountHasBeenSet = false;
226 bool m_failureTolerancePercentageHasBeenSet = false;
227 bool m_maxConcurrentCountHasBeenSet = false;
228 bool m_maxConcurrentPercentageHasBeenSet = false;
229 bool m_concurrencyModeHasBeenSet = false;
230};
231
232} // namespace Model
233} // namespace CloudFormation
234} // namespace Aws
StackSetOperationPreferences & WithFailureTolerancePercentage(int value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
StackSetOperationPreferences & AddRegionOrder(RegionOrderT &&value)
StackSetOperationPreferences & WithMaxConcurrentPercentage(int value)
StackSetOperationPreferences & WithConcurrencyMode(ConcurrencyMode value)
StackSetOperationPreferences & WithRegionConcurrencyType(RegionConcurrencyType value)
AWS_CLOUDFORMATION_API StackSetOperationPreferences & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFORMATION_API StackSetOperationPreferences()=default
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
StackSetOperationPreferences & WithRegionOrder(RegionOrderT &&value)
StackSetOperationPreferences & WithFailureToleranceCount(int value)
AWS_CLOUDFORMATION_API StackSetOperationPreferences(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_ostream< char, std::char_traits< char > > OStream
std::vector< T, Aws::Allocator< T > > Vector