AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
UpdateProvisioningPreferences.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#include <aws/servicecatalog/model/StackSetOperationType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace ServiceCatalog {
22namespace Model {
23
32 public:
33 AWS_SERVICECATALOG_API UpdateProvisioningPreferences() = default;
34 AWS_SERVICECATALOG_API UpdateProvisioningPreferences(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_SERVICECATALOG_API UpdateProvisioningPreferences& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_SERVICECATALOG_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
49 inline const Aws::Vector<Aws::String>& GetStackSetAccounts() const { return m_stackSetAccounts; }
50 inline bool StackSetAccountsHasBeenSet() const { return m_stackSetAccountsHasBeenSet; }
51 template <typename StackSetAccountsT = Aws::Vector<Aws::String>>
52 void SetStackSetAccounts(StackSetAccountsT&& value) {
53 m_stackSetAccountsHasBeenSet = true;
54 m_stackSetAccounts = std::forward<StackSetAccountsT>(value);
55 }
56 template <typename StackSetAccountsT = Aws::Vector<Aws::String>>
58 SetStackSetAccounts(std::forward<StackSetAccountsT>(value));
59 return *this;
60 }
61 template <typename StackSetAccountsT = Aws::String>
63 m_stackSetAccountsHasBeenSet = true;
64 m_stackSetAccounts.emplace_back(std::forward<StackSetAccountsT>(value));
65 return *this;
66 }
68
70
80 inline const Aws::Vector<Aws::String>& GetStackSetRegions() const { return m_stackSetRegions; }
81 inline bool StackSetRegionsHasBeenSet() const { return m_stackSetRegionsHasBeenSet; }
82 template <typename StackSetRegionsT = Aws::Vector<Aws::String>>
83 void SetStackSetRegions(StackSetRegionsT&& value) {
84 m_stackSetRegionsHasBeenSet = true;
85 m_stackSetRegions = std::forward<StackSetRegionsT>(value);
86 }
87 template <typename StackSetRegionsT = Aws::Vector<Aws::String>>
89 SetStackSetRegions(std::forward<StackSetRegionsT>(value));
90 return *this;
91 }
92 template <typename StackSetRegionsT = Aws::String>
94 m_stackSetRegionsHasBeenSet = true;
95 m_stackSetRegions.emplace_back(std::forward<StackSetRegionsT>(value));
96 return *this;
97 }
99
101
111 inline int64_t GetStackSetFailureToleranceCount() const { return m_stackSetFailureToleranceCount; }
112 inline bool StackSetFailureToleranceCountHasBeenSet() const { return m_stackSetFailureToleranceCountHasBeenSet; }
113 inline void SetStackSetFailureToleranceCount(int64_t value) {
114 m_stackSetFailureToleranceCountHasBeenSet = true;
115 m_stackSetFailureToleranceCount = value;
116 }
122
124
135 inline int64_t GetStackSetFailureTolerancePercentage() const { return m_stackSetFailureTolerancePercentage; }
136 inline bool StackSetFailureTolerancePercentageHasBeenSet() const { return m_stackSetFailureTolerancePercentageHasBeenSet; }
137 inline void SetStackSetFailureTolerancePercentage(int64_t value) {
138 m_stackSetFailureTolerancePercentageHasBeenSet = true;
139 m_stackSetFailureTolerancePercentage = value;
140 }
146
148
161 inline int64_t GetStackSetMaxConcurrencyCount() const { return m_stackSetMaxConcurrencyCount; }
162 inline bool StackSetMaxConcurrencyCountHasBeenSet() const { return m_stackSetMaxConcurrencyCountHasBeenSet; }
163 inline void SetStackSetMaxConcurrencyCount(int64_t value) {
164 m_stackSetMaxConcurrencyCountHasBeenSet = true;
165 m_stackSetMaxConcurrencyCount = value;
166 }
169 return *this;
170 }
172
174
187 inline int64_t GetStackSetMaxConcurrencyPercentage() const { return m_stackSetMaxConcurrencyPercentage; }
188 inline bool StackSetMaxConcurrencyPercentageHasBeenSet() const { return m_stackSetMaxConcurrencyPercentageHasBeenSet; }
189 inline void SetStackSetMaxConcurrencyPercentage(int64_t value) {
190 m_stackSetMaxConcurrencyPercentageHasBeenSet = true;
191 m_stackSetMaxConcurrencyPercentage = value;
192 }
198
200
213 inline StackSetOperationType GetStackSetOperationType() const { return m_stackSetOperationType; }
214 inline bool StackSetOperationTypeHasBeenSet() const { return m_stackSetOperationTypeHasBeenSet; }
216 m_stackSetOperationTypeHasBeenSet = true;
217 m_stackSetOperationType = value;
218 }
224 private:
225 Aws::Vector<Aws::String> m_stackSetAccounts;
226
227 Aws::Vector<Aws::String> m_stackSetRegions;
228
229 int64_t m_stackSetFailureToleranceCount{0};
230
231 int64_t m_stackSetFailureTolerancePercentage{0};
232
233 int64_t m_stackSetMaxConcurrencyCount{0};
234
235 int64_t m_stackSetMaxConcurrencyPercentage{0};
236
238 bool m_stackSetAccountsHasBeenSet = false;
239 bool m_stackSetRegionsHasBeenSet = false;
240 bool m_stackSetFailureToleranceCountHasBeenSet = false;
241 bool m_stackSetFailureTolerancePercentageHasBeenSet = false;
242 bool m_stackSetMaxConcurrencyCountHasBeenSet = false;
243 bool m_stackSetMaxConcurrencyPercentageHasBeenSet = false;
244 bool m_stackSetOperationTypeHasBeenSet = false;
245};
246
247} // namespace Model
248} // namespace ServiceCatalog
249} // namespace Aws
AWS_SERVICECATALOG_API UpdateProvisioningPreferences()=default
UpdateProvisioningPreferences & WithStackSetOperationType(StackSetOperationType value)
AWS_SERVICECATALOG_API UpdateProvisioningPreferences(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_SERVICECATALOG_API UpdateProvisioningPreferences & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
UpdateProvisioningPreferences & WithStackSetRegions(StackSetRegionsT &&value)
UpdateProvisioningPreferences & WithStackSetFailureTolerancePercentage(int64_t value)
UpdateProvisioningPreferences & WithStackSetMaxConcurrencyCount(int64_t value)
UpdateProvisioningPreferences & WithStackSetMaxConcurrencyPercentage(int64_t value)
UpdateProvisioningPreferences & AddStackSetRegions(StackSetRegionsT &&value)
UpdateProvisioningPreferences & WithStackSetFailureToleranceCount(int64_t value)
AWS_SERVICECATALOG_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
UpdateProvisioningPreferences & AddStackSetAccounts(StackSetAccountsT &&value)
UpdateProvisioningPreferences & WithStackSetAccounts(StackSetAccountsT &&value)
std::vector< T, Aws::Allocator< T > > Vector