AWS SDK for C++

AWS SDK for C++ Version 1.11.804

Loading...
Searching...
No Matches
ProductionVariantSummary.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/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/DeployedImage.h>
11#include <aws/sagemaker/model/InstancePoolSummary.h>
12#include <aws/sagemaker/model/ProductionVariantCapacityReservationSummary.h>
13#include <aws/sagemaker/model/ProductionVariantManagedInstanceScaling.h>
14#include <aws/sagemaker/model/ProductionVariantRoutingConfig.h>
15#include <aws/sagemaker/model/ProductionVariantServerlessConfig.h>
16#include <aws/sagemaker/model/ProductionVariantStatus.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace SageMaker {
28namespace Model {
29
40 public:
41 AWS_SAGEMAKER_API ProductionVariantSummary() = default;
44 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
50 inline const Aws::String& GetVariantName() const { return m_variantName; }
51 inline bool VariantNameHasBeenSet() const { return m_variantNameHasBeenSet; }
52 template <typename VariantNameT = Aws::String>
53 void SetVariantName(VariantNameT&& value) {
54 m_variantNameHasBeenSet = true;
55 m_variantName = std::forward<VariantNameT>(value);
56 }
57 template <typename VariantNameT = Aws::String>
59 SetVariantName(std::forward<VariantNameT>(value));
60 return *this;
61 }
63
65
70 inline const Aws::Vector<DeployedImage>& GetDeployedImages() const { return m_deployedImages; }
71 inline bool DeployedImagesHasBeenSet() const { return m_deployedImagesHasBeenSet; }
72 template <typename DeployedImagesT = Aws::Vector<DeployedImage>>
73 void SetDeployedImages(DeployedImagesT&& value) {
74 m_deployedImagesHasBeenSet = true;
75 m_deployedImages = std::forward<DeployedImagesT>(value);
76 }
77 template <typename DeployedImagesT = Aws::Vector<DeployedImage>>
78 ProductionVariantSummary& WithDeployedImages(DeployedImagesT&& value) {
79 SetDeployedImages(std::forward<DeployedImagesT>(value));
80 return *this;
81 }
82 template <typename DeployedImagesT = DeployedImage>
83 ProductionVariantSummary& AddDeployedImages(DeployedImagesT&& value) {
84 m_deployedImagesHasBeenSet = true;
85 m_deployedImages.emplace_back(std::forward<DeployedImagesT>(value));
86 return *this;
87 }
89
91
94 inline double GetCurrentWeight() const { return m_currentWeight; }
95 inline bool CurrentWeightHasBeenSet() const { return m_currentWeightHasBeenSet; }
96 inline void SetCurrentWeight(double value) {
97 m_currentWeightHasBeenSet = true;
98 m_currentWeight = value;
99 }
101 SetCurrentWeight(value);
102 return *this;
103 }
105
107
111 inline double GetDesiredWeight() const { return m_desiredWeight; }
112 inline bool DesiredWeightHasBeenSet() const { return m_desiredWeightHasBeenSet; }
113 inline void SetDesiredWeight(double value) {
114 m_desiredWeightHasBeenSet = true;
115 m_desiredWeight = value;
116 }
118 SetDesiredWeight(value);
119 return *this;
120 }
122
124
127 inline int GetCurrentInstanceCount() const { return m_currentInstanceCount; }
128 inline bool CurrentInstanceCountHasBeenSet() const { return m_currentInstanceCountHasBeenSet; }
129 inline void SetCurrentInstanceCount(int value) {
130 m_currentInstanceCountHasBeenSet = true;
131 m_currentInstanceCount = value;
132 }
135 return *this;
136 }
138
140
144 inline int GetDesiredInstanceCount() const { return m_desiredInstanceCount; }
145 inline bool DesiredInstanceCountHasBeenSet() const { return m_desiredInstanceCountHasBeenSet; }
146 inline void SetDesiredInstanceCount(int value) {
147 m_desiredInstanceCountHasBeenSet = true;
148 m_desiredInstanceCount = value;
149 }
152 return *this;
153 }
155
157
161 inline const Aws::Vector<InstancePoolSummary>& GetInstancePools() const { return m_instancePools; }
162 inline bool InstancePoolsHasBeenSet() const { return m_instancePoolsHasBeenSet; }
163 template <typename InstancePoolsT = Aws::Vector<InstancePoolSummary>>
164 void SetInstancePools(InstancePoolsT&& value) {
165 m_instancePoolsHasBeenSet = true;
166 m_instancePools = std::forward<InstancePoolsT>(value);
167 }
168 template <typename InstancePoolsT = Aws::Vector<InstancePoolSummary>>
170 SetInstancePools(std::forward<InstancePoolsT>(value));
171 return *this;
172 }
173 template <typename InstancePoolsT = InstancePoolSummary>
175 m_instancePoolsHasBeenSet = true;
176 m_instancePools.emplace_back(std::forward<InstancePoolsT>(value));
177 return *this;
178 }
180
182
186 inline const Aws::Vector<ProductionVariantStatus>& GetVariantStatus() const { return m_variantStatus; }
187 inline bool VariantStatusHasBeenSet() const { return m_variantStatusHasBeenSet; }
188 template <typename VariantStatusT = Aws::Vector<ProductionVariantStatus>>
189 void SetVariantStatus(VariantStatusT&& value) {
190 m_variantStatusHasBeenSet = true;
191 m_variantStatus = std::forward<VariantStatusT>(value);
192 }
193 template <typename VariantStatusT = Aws::Vector<ProductionVariantStatus>>
195 SetVariantStatus(std::forward<VariantStatusT>(value));
196 return *this;
197 }
198 template <typename VariantStatusT = ProductionVariantStatus>
200 m_variantStatusHasBeenSet = true;
201 m_variantStatus.emplace_back(std::forward<VariantStatusT>(value));
202 return *this;
203 }
205
207
210 inline const ProductionVariantServerlessConfig& GetCurrentServerlessConfig() const { return m_currentServerlessConfig; }
211 inline bool CurrentServerlessConfigHasBeenSet() const { return m_currentServerlessConfigHasBeenSet; }
212 template <typename CurrentServerlessConfigT = ProductionVariantServerlessConfig>
213 void SetCurrentServerlessConfig(CurrentServerlessConfigT&& value) {
214 m_currentServerlessConfigHasBeenSet = true;
215 m_currentServerlessConfig = std::forward<CurrentServerlessConfigT>(value);
216 }
217 template <typename CurrentServerlessConfigT = ProductionVariantServerlessConfig>
218 ProductionVariantSummary& WithCurrentServerlessConfig(CurrentServerlessConfigT&& value) {
219 SetCurrentServerlessConfig(std::forward<CurrentServerlessConfigT>(value));
220 return *this;
221 }
223
225
228 inline const ProductionVariantServerlessConfig& GetDesiredServerlessConfig() const { return m_desiredServerlessConfig; }
229 inline bool DesiredServerlessConfigHasBeenSet() const { return m_desiredServerlessConfigHasBeenSet; }
230 template <typename DesiredServerlessConfigT = ProductionVariantServerlessConfig>
231 void SetDesiredServerlessConfig(DesiredServerlessConfigT&& value) {
232 m_desiredServerlessConfigHasBeenSet = true;
233 m_desiredServerlessConfig = std::forward<DesiredServerlessConfigT>(value);
234 }
235 template <typename DesiredServerlessConfigT = ProductionVariantServerlessConfig>
236 ProductionVariantSummary& WithDesiredServerlessConfig(DesiredServerlessConfigT&& value) {
237 SetDesiredServerlessConfig(std::forward<DesiredServerlessConfigT>(value));
238 return *this;
239 }
241
243
247 inline const ProductionVariantManagedInstanceScaling& GetManagedInstanceScaling() const { return m_managedInstanceScaling; }
248 inline bool ManagedInstanceScalingHasBeenSet() const { return m_managedInstanceScalingHasBeenSet; }
249 template <typename ManagedInstanceScalingT = ProductionVariantManagedInstanceScaling>
250 void SetManagedInstanceScaling(ManagedInstanceScalingT&& value) {
251 m_managedInstanceScalingHasBeenSet = true;
252 m_managedInstanceScaling = std::forward<ManagedInstanceScalingT>(value);
253 }
254 template <typename ManagedInstanceScalingT = ProductionVariantManagedInstanceScaling>
255 ProductionVariantSummary& WithManagedInstanceScaling(ManagedInstanceScalingT&& value) {
256 SetManagedInstanceScaling(std::forward<ManagedInstanceScalingT>(value));
257 return *this;
258 }
260
262
266 inline const ProductionVariantRoutingConfig& GetRoutingConfig() const { return m_routingConfig; }
267 inline bool RoutingConfigHasBeenSet() const { return m_routingConfigHasBeenSet; }
268 template <typename RoutingConfigT = ProductionVariantRoutingConfig>
269 void SetRoutingConfig(RoutingConfigT&& value) {
270 m_routingConfigHasBeenSet = true;
271 m_routingConfig = std::forward<RoutingConfigT>(value);
272 }
273 template <typename RoutingConfigT = ProductionVariantRoutingConfig>
275 SetRoutingConfig(std::forward<RoutingConfigT>(value));
276 return *this;
277 }
279
281
285 inline const ProductionVariantCapacityReservationSummary& GetCapacityReservationConfig() const { return m_capacityReservationConfig; }
286 inline bool CapacityReservationConfigHasBeenSet() const { return m_capacityReservationConfigHasBeenSet; }
287 template <typename CapacityReservationConfigT = ProductionVariantCapacityReservationSummary>
288 void SetCapacityReservationConfig(CapacityReservationConfigT&& value) {
289 m_capacityReservationConfigHasBeenSet = true;
290 m_capacityReservationConfig = std::forward<CapacityReservationConfigT>(value);
291 }
292 template <typename CapacityReservationConfigT = ProductionVariantCapacityReservationSummary>
293 ProductionVariantSummary& WithCapacityReservationConfig(CapacityReservationConfigT&& value) {
294 SetCapacityReservationConfig(std::forward<CapacityReservationConfigT>(value));
295 return *this;
296 }
298 private:
299 Aws::String m_variantName;
300
301 Aws::Vector<DeployedImage> m_deployedImages;
302
303 double m_currentWeight{0.0};
304
305 double m_desiredWeight{0.0};
306
307 int m_currentInstanceCount{0};
308
309 int m_desiredInstanceCount{0};
310
311 Aws::Vector<InstancePoolSummary> m_instancePools;
312
314
315 ProductionVariantServerlessConfig m_currentServerlessConfig;
316
317 ProductionVariantServerlessConfig m_desiredServerlessConfig;
318
319 ProductionVariantManagedInstanceScaling m_managedInstanceScaling;
320
321 ProductionVariantRoutingConfig m_routingConfig;
322
323 ProductionVariantCapacityReservationSummary m_capacityReservationConfig;
324 bool m_variantNameHasBeenSet = false;
325 bool m_deployedImagesHasBeenSet = false;
326 bool m_currentWeightHasBeenSet = false;
327 bool m_desiredWeightHasBeenSet = false;
328 bool m_currentInstanceCountHasBeenSet = false;
329 bool m_desiredInstanceCountHasBeenSet = false;
330 bool m_instancePoolsHasBeenSet = false;
331 bool m_variantStatusHasBeenSet = false;
332 bool m_currentServerlessConfigHasBeenSet = false;
333 bool m_desiredServerlessConfigHasBeenSet = false;
334 bool m_managedInstanceScalingHasBeenSet = false;
335 bool m_routingConfigHasBeenSet = false;
336 bool m_capacityReservationConfigHasBeenSet = false;
337};
338
339} // namespace Model
340} // namespace SageMaker
341} // namespace Aws
ProductionVariantSummary & WithCurrentServerlessConfig(CurrentServerlessConfigT &&value)
ProductionVariantSummary & WithManagedInstanceScaling(ManagedInstanceScalingT &&value)
ProductionVariantSummary & WithCapacityReservationConfig(CapacityReservationConfigT &&value)
ProductionVariantSummary & WithDesiredWeight(double value)
ProductionVariantSummary & WithVariantName(VariantNameT &&value)
ProductionVariantSummary & WithInstancePools(InstancePoolsT &&value)
ProductionVariantSummary & WithDeployedImages(DeployedImagesT &&value)
ProductionVariantSummary & AddInstancePools(InstancePoolsT &&value)
ProductionVariantSummary & WithVariantStatus(VariantStatusT &&value)
const ProductionVariantCapacityReservationSummary & GetCapacityReservationConfig() const
void SetDesiredServerlessConfig(DesiredServerlessConfigT &&value)
void SetCapacityReservationConfig(CapacityReservationConfigT &&value)
const ProductionVariantManagedInstanceScaling & GetManagedInstanceScaling() const
AWS_SAGEMAKER_API ProductionVariantSummary(Aws::Utils::Json::JsonView jsonValue)
ProductionVariantSummary & WithCurrentInstanceCount(int value)
const Aws::Vector< DeployedImage > & GetDeployedImages() const
ProductionVariantSummary & WithDesiredInstanceCount(int value)
const ProductionVariantRoutingConfig & GetRoutingConfig() const
const ProductionVariantServerlessConfig & GetDesiredServerlessConfig() const
ProductionVariantSummary & WithRoutingConfig(RoutingConfigT &&value)
void SetManagedInstanceScaling(ManagedInstanceScalingT &&value)
const Aws::Vector< InstancePoolSummary > & GetInstancePools() const
ProductionVariantSummary & WithDesiredServerlessConfig(DesiredServerlessConfigT &&value)
AWS_SAGEMAKER_API ProductionVariantSummary()=default
AWS_SAGEMAKER_API ProductionVariantSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ProductionVariantSummary & AddDeployedImages(DeployedImagesT &&value)
ProductionVariantSummary & AddVariantStatus(VariantStatusT &&value)
void SetCurrentServerlessConfig(CurrentServerlessConfigT &&value)
ProductionVariantSummary & WithCurrentWeight(double value)
const ProductionVariantServerlessConfig & GetCurrentServerlessConfig() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ProductionVariantStatus > & GetVariantStatus() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue