AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StackSetOperationPreferences.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/RegionConcurrencyType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/cloudformation/model/ConcurrencyMode.h>
12#include <aws/core/utils/memory/stl/AWSString.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
42 {
43 public:
44 AWS_CLOUDFORMATION_API StackSetOperationPreferences() = default;
45 AWS_CLOUDFORMATION_API StackSetOperationPreferences(const Aws::Utils::Xml::XmlNode& xmlNode);
46 AWS_CLOUDFORMATION_API StackSetOperationPreferences& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
47
48 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
49 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
50
51
53
57 inline RegionConcurrencyType GetRegionConcurrencyType() const { return m_regionConcurrencyType; }
58 inline bool RegionConcurrencyTypeHasBeenSet() const { return m_regionConcurrencyTypeHasBeenSet; }
59 inline void SetRegionConcurrencyType(RegionConcurrencyType value) { m_regionConcurrencyTypeHasBeenSet = true; m_regionConcurrencyType = value; }
62
64
67 inline const Aws::Vector<Aws::String>& GetRegionOrder() const { return m_regionOrder; }
68 inline bool RegionOrderHasBeenSet() const { return m_regionOrderHasBeenSet; }
69 template<typename RegionOrderT = Aws::Vector<Aws::String>>
70 void SetRegionOrder(RegionOrderT&& value) { m_regionOrderHasBeenSet = true; m_regionOrder = std::forward<RegionOrderT>(value); }
71 template<typename RegionOrderT = Aws::Vector<Aws::String>>
72 StackSetOperationPreferences& WithRegionOrder(RegionOrderT&& value) { SetRegionOrder(std::forward<RegionOrderT>(value)); return *this;}
73 template<typename RegionOrderT = Aws::String>
74 StackSetOperationPreferences& AddRegionOrder(RegionOrderT&& value) { m_regionOrderHasBeenSet = true; m_regionOrder.emplace_back(std::forward<RegionOrderT>(value)); return *this; }
76
78
86 inline int GetFailureToleranceCount() const { return m_failureToleranceCount; }
87 inline bool FailureToleranceCountHasBeenSet() const { return m_failureToleranceCountHasBeenSet; }
88 inline void SetFailureToleranceCount(int value) { m_failureToleranceCountHasBeenSet = true; m_failureToleranceCount = value; }
91
93
103 inline int GetFailureTolerancePercentage() const { return m_failureTolerancePercentage; }
104 inline bool FailureTolerancePercentageHasBeenSet() const { return m_failureTolerancePercentageHasBeenSet; }
105 inline void SetFailureTolerancePercentage(int value) { m_failureTolerancePercentageHasBeenSet = true; m_failureTolerancePercentage = value; }
108
110
122 inline int GetMaxConcurrentCount() const { return m_maxConcurrentCount; }
123 inline bool MaxConcurrentCountHasBeenSet() const { return m_maxConcurrentCountHasBeenSet; }
124 inline void SetMaxConcurrentCount(int value) { m_maxConcurrentCountHasBeenSet = true; m_maxConcurrentCount = value; }
127
129
141 inline int GetMaxConcurrentPercentage() const { return m_maxConcurrentPercentage; }
142 inline bool MaxConcurrentPercentageHasBeenSet() const { return m_maxConcurrentPercentageHasBeenSet; }
143 inline void SetMaxConcurrentPercentage(int value) { m_maxConcurrentPercentageHasBeenSet = true; m_maxConcurrentPercentage = value; }
146
148
165 inline ConcurrencyMode GetConcurrencyMode() const { return m_concurrencyMode; }
166 inline bool ConcurrencyModeHasBeenSet() const { return m_concurrencyModeHasBeenSet; }
167 inline void SetConcurrencyMode(ConcurrencyMode value) { m_concurrencyModeHasBeenSet = true; m_concurrencyMode = value; }
170 private:
171
173 bool m_regionConcurrencyTypeHasBeenSet = false;
174
175 Aws::Vector<Aws::String> m_regionOrder;
176 bool m_regionOrderHasBeenSet = false;
177
178 int m_failureToleranceCount{0};
179 bool m_failureToleranceCountHasBeenSet = false;
180
181 int m_failureTolerancePercentage{0};
182 bool m_failureTolerancePercentageHasBeenSet = false;
183
184 int m_maxConcurrentCount{0};
185 bool m_maxConcurrentCountHasBeenSet = false;
186
187 int m_maxConcurrentPercentage{0};
188 bool m_maxConcurrentPercentageHasBeenSet = false;
189
190 ConcurrencyMode m_concurrencyMode{ConcurrencyMode::NOT_SET};
191 bool m_concurrencyModeHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace CloudFormation
196} // 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::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream