AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
ProvisioningPreferences.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/servicecatalog/ServiceCatalog_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace ServiceCatalog {
21namespace Model {
22
38 public:
39 AWS_SERVICECATALOG_API ProvisioningPreferences() = default;
40 AWS_SERVICECATALOG_API ProvisioningPreferences(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
41 AWS_SERVICECATALOG_API ProvisioningPreferences& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
42 AWS_SERVICECATALOG_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
43
45
55 inline const Aws::Vector<Aws::String>& GetStackSetAccounts() const { return m_stackSetAccounts; }
56 inline bool StackSetAccountsHasBeenSet() const { return m_stackSetAccountsHasBeenSet; }
57 template <typename StackSetAccountsT = Aws::Vector<Aws::String>>
58 void SetStackSetAccounts(StackSetAccountsT&& value) {
59 m_stackSetAccountsHasBeenSet = true;
60 m_stackSetAccounts = std::forward<StackSetAccountsT>(value);
61 }
62 template <typename StackSetAccountsT = Aws::Vector<Aws::String>>
63 ProvisioningPreferences& WithStackSetAccounts(StackSetAccountsT&& value) {
64 SetStackSetAccounts(std::forward<StackSetAccountsT>(value));
65 return *this;
66 }
67 template <typename StackSetAccountsT = Aws::String>
68 ProvisioningPreferences& AddStackSetAccounts(StackSetAccountsT&& value) {
69 m_stackSetAccountsHasBeenSet = true;
70 m_stackSetAccounts.emplace_back(std::forward<StackSetAccountsT>(value));
71 return *this;
72 }
74
76
86 inline const Aws::Vector<Aws::String>& GetStackSetRegions() const { return m_stackSetRegions; }
87 inline bool StackSetRegionsHasBeenSet() const { return m_stackSetRegionsHasBeenSet; }
88 template <typename StackSetRegionsT = Aws::Vector<Aws::String>>
89 void SetStackSetRegions(StackSetRegionsT&& value) {
90 m_stackSetRegionsHasBeenSet = true;
91 m_stackSetRegions = std::forward<StackSetRegionsT>(value);
92 }
93 template <typename StackSetRegionsT = Aws::Vector<Aws::String>>
94 ProvisioningPreferences& WithStackSetRegions(StackSetRegionsT&& value) {
95 SetStackSetRegions(std::forward<StackSetRegionsT>(value));
96 return *this;
97 }
98 template <typename StackSetRegionsT = Aws::String>
99 ProvisioningPreferences& AddStackSetRegions(StackSetRegionsT&& value) {
100 m_stackSetRegionsHasBeenSet = true;
101 m_stackSetRegions.emplace_back(std::forward<StackSetRegionsT>(value));
102 return *this;
103 }
105
107
117 inline int64_t GetStackSetFailureToleranceCount() const { return m_stackSetFailureToleranceCount; }
118 inline bool StackSetFailureToleranceCountHasBeenSet() const { return m_stackSetFailureToleranceCountHasBeenSet; }
119 inline void SetStackSetFailureToleranceCount(int64_t value) {
120 m_stackSetFailureToleranceCountHasBeenSet = true;
121 m_stackSetFailureToleranceCount = value;
122 }
125 return *this;
126 }
128
130
141 inline int64_t GetStackSetFailureTolerancePercentage() const { return m_stackSetFailureTolerancePercentage; }
142 inline bool StackSetFailureTolerancePercentageHasBeenSet() const { return m_stackSetFailureTolerancePercentageHasBeenSet; }
143 inline void SetStackSetFailureTolerancePercentage(int64_t value) {
144 m_stackSetFailureTolerancePercentageHasBeenSet = true;
145 m_stackSetFailureTolerancePercentage = value;
146 }
152
154
167 inline int64_t GetStackSetMaxConcurrencyCount() const { return m_stackSetMaxConcurrencyCount; }
168 inline bool StackSetMaxConcurrencyCountHasBeenSet() const { return m_stackSetMaxConcurrencyCountHasBeenSet; }
169 inline void SetStackSetMaxConcurrencyCount(int64_t value) {
170 m_stackSetMaxConcurrencyCountHasBeenSet = true;
171 m_stackSetMaxConcurrencyCount = value;
172 }
175 return *this;
176 }
178
180
193 inline int64_t GetStackSetMaxConcurrencyPercentage() const { return m_stackSetMaxConcurrencyPercentage; }
194 inline bool StackSetMaxConcurrencyPercentageHasBeenSet() const { return m_stackSetMaxConcurrencyPercentageHasBeenSet; }
195 inline void SetStackSetMaxConcurrencyPercentage(int64_t value) {
196 m_stackSetMaxConcurrencyPercentageHasBeenSet = true;
197 m_stackSetMaxConcurrencyPercentage = value;
198 }
204 private:
205 Aws::Vector<Aws::String> m_stackSetAccounts;
206
207 Aws::Vector<Aws::String> m_stackSetRegions;
208
209 int64_t m_stackSetFailureToleranceCount{0};
210
211 int64_t m_stackSetFailureTolerancePercentage{0};
212
213 int64_t m_stackSetMaxConcurrencyCount{0};
214
215 int64_t m_stackSetMaxConcurrencyPercentage{0};
216 bool m_stackSetAccountsHasBeenSet = false;
217 bool m_stackSetRegionsHasBeenSet = false;
218 bool m_stackSetFailureToleranceCountHasBeenSet = false;
219 bool m_stackSetFailureTolerancePercentageHasBeenSet = false;
220 bool m_stackSetMaxConcurrencyCountHasBeenSet = false;
221 bool m_stackSetMaxConcurrencyPercentageHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace ServiceCatalog
226} // namespace Aws
ProvisioningPreferences & AddStackSetAccounts(StackSetAccountsT &&value)
ProvisioningPreferences & WithStackSetMaxConcurrencyPercentage(int64_t value)
ProvisioningPreferences & WithStackSetFailureTolerancePercentage(int64_t value)
ProvisioningPreferences & WithStackSetMaxConcurrencyCount(int64_t value)
const Aws::Vector< Aws::String > & GetStackSetRegions() const
AWS_SERVICECATALOG_API ProvisioningPreferences & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ProvisioningPreferences & WithStackSetAccounts(StackSetAccountsT &&value)
AWS_SERVICECATALOG_API ProvisioningPreferences()=default
AWS_SERVICECATALOG_API ProvisioningPreferences(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_SERVICECATALOG_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::Vector< Aws::String > & GetStackSetAccounts() const
ProvisioningPreferences & AddStackSetRegions(StackSetRegionsT &&value)
ProvisioningPreferences & WithStackSetFailureToleranceCount(int64_t value)
ProvisioningPreferences & WithStackSetRegions(StackSetRegionsT &&value)
std::vector< T, Aws::Allocator< T > > Vector