AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ProvisioningPreferences.h
1
6#pragma once
7#include <aws/servicecatalog/ServiceCatalog_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ServiceCatalog
23{
24namespace Model
25{
26
42 {
43 public:
44 AWS_SERVICECATALOG_API ProvisioningPreferences() = default;
45 AWS_SERVICECATALOG_API ProvisioningPreferences(Aws::Utils::Json::JsonView jsonValue);
47 AWS_SERVICECATALOG_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
61 inline const Aws::Vector<Aws::String>& GetStackSetAccounts() const { return m_stackSetAccounts; }
62 inline bool StackSetAccountsHasBeenSet() const { return m_stackSetAccountsHasBeenSet; }
63 template<typename StackSetAccountsT = Aws::Vector<Aws::String>>
64 void SetStackSetAccounts(StackSetAccountsT&& value) { m_stackSetAccountsHasBeenSet = true; m_stackSetAccounts = std::forward<StackSetAccountsT>(value); }
65 template<typename StackSetAccountsT = Aws::Vector<Aws::String>>
66 ProvisioningPreferences& WithStackSetAccounts(StackSetAccountsT&& value) { SetStackSetAccounts(std::forward<StackSetAccountsT>(value)); return *this;}
67 template<typename StackSetAccountsT = Aws::String>
68 ProvisioningPreferences& AddStackSetAccounts(StackSetAccountsT&& value) { m_stackSetAccountsHasBeenSet = true; m_stackSetAccounts.emplace_back(std::forward<StackSetAccountsT>(value)); return *this; }
70
72
82 inline const Aws::Vector<Aws::String>& GetStackSetRegions() const { return m_stackSetRegions; }
83 inline bool StackSetRegionsHasBeenSet() const { return m_stackSetRegionsHasBeenSet; }
84 template<typename StackSetRegionsT = Aws::Vector<Aws::String>>
85 void SetStackSetRegions(StackSetRegionsT&& value) { m_stackSetRegionsHasBeenSet = true; m_stackSetRegions = std::forward<StackSetRegionsT>(value); }
86 template<typename StackSetRegionsT = Aws::Vector<Aws::String>>
87 ProvisioningPreferences& WithStackSetRegions(StackSetRegionsT&& value) { SetStackSetRegions(std::forward<StackSetRegionsT>(value)); return *this;}
88 template<typename StackSetRegionsT = Aws::String>
89 ProvisioningPreferences& AddStackSetRegions(StackSetRegionsT&& value) { m_stackSetRegionsHasBeenSet = true; m_stackSetRegions.emplace_back(std::forward<StackSetRegionsT>(value)); return *this; }
91
93
103 inline int GetStackSetFailureToleranceCount() const { return m_stackSetFailureToleranceCount; }
104 inline bool StackSetFailureToleranceCountHasBeenSet() const { return m_stackSetFailureToleranceCountHasBeenSet; }
105 inline void SetStackSetFailureToleranceCount(int value) { m_stackSetFailureToleranceCountHasBeenSet = true; m_stackSetFailureToleranceCount = value; }
108
110
121 inline int GetStackSetFailureTolerancePercentage() const { return m_stackSetFailureTolerancePercentage; }
122 inline bool StackSetFailureTolerancePercentageHasBeenSet() const { return m_stackSetFailureTolerancePercentageHasBeenSet; }
123 inline void SetStackSetFailureTolerancePercentage(int value) { m_stackSetFailureTolerancePercentageHasBeenSet = true; m_stackSetFailureTolerancePercentage = value; }
126
128
141 inline int GetStackSetMaxConcurrencyCount() const { return m_stackSetMaxConcurrencyCount; }
142 inline bool StackSetMaxConcurrencyCountHasBeenSet() const { return m_stackSetMaxConcurrencyCountHasBeenSet; }
143 inline void SetStackSetMaxConcurrencyCount(int value) { m_stackSetMaxConcurrencyCountHasBeenSet = true; m_stackSetMaxConcurrencyCount = value; }
146
148
161 inline int GetStackSetMaxConcurrencyPercentage() const { return m_stackSetMaxConcurrencyPercentage; }
162 inline bool StackSetMaxConcurrencyPercentageHasBeenSet() const { return m_stackSetMaxConcurrencyPercentageHasBeenSet; }
163 inline void SetStackSetMaxConcurrencyPercentage(int value) { m_stackSetMaxConcurrencyPercentageHasBeenSet = true; m_stackSetMaxConcurrencyPercentage = value; }
166 private:
167
168 Aws::Vector<Aws::String> m_stackSetAccounts;
169 bool m_stackSetAccountsHasBeenSet = false;
170
171 Aws::Vector<Aws::String> m_stackSetRegions;
172 bool m_stackSetRegionsHasBeenSet = false;
173
174 int m_stackSetFailureToleranceCount{0};
175 bool m_stackSetFailureToleranceCountHasBeenSet = false;
176
177 int m_stackSetFailureTolerancePercentage{0};
178 bool m_stackSetFailureTolerancePercentageHasBeenSet = false;
179
180 int m_stackSetMaxConcurrencyCount{0};
181 bool m_stackSetMaxConcurrencyCountHasBeenSet = false;
182
183 int m_stackSetMaxConcurrencyPercentage{0};
184 bool m_stackSetMaxConcurrencyPercentageHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace ServiceCatalog
189} // namespace Aws
ProvisioningPreferences & AddStackSetAccounts(StackSetAccountsT &&value)
ProvisioningPreferences & WithStackSetMaxConcurrencyCount(int value)
ProvisioningPreferences & WithStackSetFailureToleranceCount(int value)
AWS_SERVICECATALOG_API ProvisioningPreferences & operator=(Aws::Utils::Json::JsonView jsonValue)
ProvisioningPreferences & WithStackSetFailureTolerancePercentage(int value)
const Aws::Vector< Aws::String > & GetStackSetRegions() const
AWS_SERVICECATALOG_API ProvisioningPreferences(Aws::Utils::Json::JsonView jsonValue)
ProvisioningPreferences & WithStackSetAccounts(StackSetAccountsT &&value)
AWS_SERVICECATALOG_API ProvisioningPreferences()=default
ProvisioningPreferences & WithStackSetMaxConcurrencyPercentage(int value)
const Aws::Vector< Aws::String > & GetStackSetAccounts() const
ProvisioningPreferences & AddStackSetRegions(StackSetRegionsT &&value)
AWS_SERVICECATALOG_API Aws::Utils::Json::JsonValue Jsonize() const
ProvisioningPreferences & WithStackSetRegions(StackSetRegionsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue