AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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/ProductionVariantCapacityReservationSummary.h>
12#include <aws/sagemaker/model/ProductionVariantManagedInstanceScaling.h>
13#include <aws/sagemaker/model/ProductionVariantRoutingConfig.h>
14#include <aws/sagemaker/model/ProductionVariantServerlessConfig.h>
15#include <aws/sagemaker/model/ProductionVariantStatus.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SageMaker {
27namespace Model {
28
39 public:
40 AWS_SAGEMAKER_API ProductionVariantSummary() = default;
43 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
49 inline const Aws::String& GetVariantName() const { return m_variantName; }
50 inline bool VariantNameHasBeenSet() const { return m_variantNameHasBeenSet; }
51 template <typename VariantNameT = Aws::String>
52 void SetVariantName(VariantNameT&& value) {
53 m_variantNameHasBeenSet = true;
54 m_variantName = std::forward<VariantNameT>(value);
55 }
56 template <typename VariantNameT = Aws::String>
58 SetVariantName(std::forward<VariantNameT>(value));
59 return *this;
60 }
62
64
69 inline const Aws::Vector<DeployedImage>& GetDeployedImages() const { return m_deployedImages; }
70 inline bool DeployedImagesHasBeenSet() const { return m_deployedImagesHasBeenSet; }
71 template <typename DeployedImagesT = Aws::Vector<DeployedImage>>
72 void SetDeployedImages(DeployedImagesT&& value) {
73 m_deployedImagesHasBeenSet = true;
74 m_deployedImages = std::forward<DeployedImagesT>(value);
75 }
76 template <typename DeployedImagesT = Aws::Vector<DeployedImage>>
77 ProductionVariantSummary& WithDeployedImages(DeployedImagesT&& value) {
78 SetDeployedImages(std::forward<DeployedImagesT>(value));
79 return *this;
80 }
81 template <typename DeployedImagesT = DeployedImage>
82 ProductionVariantSummary& AddDeployedImages(DeployedImagesT&& value) {
83 m_deployedImagesHasBeenSet = true;
84 m_deployedImages.emplace_back(std::forward<DeployedImagesT>(value));
85 return *this;
86 }
88
90
93 inline double GetCurrentWeight() const { return m_currentWeight; }
94 inline bool CurrentWeightHasBeenSet() const { return m_currentWeightHasBeenSet; }
95 inline void SetCurrentWeight(double value) {
96 m_currentWeightHasBeenSet = true;
97 m_currentWeight = value;
98 }
100 SetCurrentWeight(value);
101 return *this;
102 }
104
106
110 inline double GetDesiredWeight() const { return m_desiredWeight; }
111 inline bool DesiredWeightHasBeenSet() const { return m_desiredWeightHasBeenSet; }
112 inline void SetDesiredWeight(double value) {
113 m_desiredWeightHasBeenSet = true;
114 m_desiredWeight = value;
115 }
117 SetDesiredWeight(value);
118 return *this;
119 }
121
123
126 inline int GetCurrentInstanceCount() const { return m_currentInstanceCount; }
127 inline bool CurrentInstanceCountHasBeenSet() const { return m_currentInstanceCountHasBeenSet; }
128 inline void SetCurrentInstanceCount(int value) {
129 m_currentInstanceCountHasBeenSet = true;
130 m_currentInstanceCount = value;
131 }
134 return *this;
135 }
137
139
143 inline int GetDesiredInstanceCount() const { return m_desiredInstanceCount; }
144 inline bool DesiredInstanceCountHasBeenSet() const { return m_desiredInstanceCountHasBeenSet; }
145 inline void SetDesiredInstanceCount(int value) {
146 m_desiredInstanceCountHasBeenSet = true;
147 m_desiredInstanceCount = value;
148 }
151 return *this;
152 }
154
156
160 inline const Aws::Vector<ProductionVariantStatus>& GetVariantStatus() const { return m_variantStatus; }
161 inline bool VariantStatusHasBeenSet() const { return m_variantStatusHasBeenSet; }
162 template <typename VariantStatusT = Aws::Vector<ProductionVariantStatus>>
163 void SetVariantStatus(VariantStatusT&& value) {
164 m_variantStatusHasBeenSet = true;
165 m_variantStatus = std::forward<VariantStatusT>(value);
166 }
167 template <typename VariantStatusT = Aws::Vector<ProductionVariantStatus>>
169 SetVariantStatus(std::forward<VariantStatusT>(value));
170 return *this;
171 }
172 template <typename VariantStatusT = ProductionVariantStatus>
174 m_variantStatusHasBeenSet = true;
175 m_variantStatus.emplace_back(std::forward<VariantStatusT>(value));
176 return *this;
177 }
179
181
184 inline const ProductionVariantServerlessConfig& GetCurrentServerlessConfig() const { return m_currentServerlessConfig; }
185 inline bool CurrentServerlessConfigHasBeenSet() const { return m_currentServerlessConfigHasBeenSet; }
186 template <typename CurrentServerlessConfigT = ProductionVariantServerlessConfig>
187 void SetCurrentServerlessConfig(CurrentServerlessConfigT&& value) {
188 m_currentServerlessConfigHasBeenSet = true;
189 m_currentServerlessConfig = std::forward<CurrentServerlessConfigT>(value);
190 }
191 template <typename CurrentServerlessConfigT = ProductionVariantServerlessConfig>
192 ProductionVariantSummary& WithCurrentServerlessConfig(CurrentServerlessConfigT&& value) {
193 SetCurrentServerlessConfig(std::forward<CurrentServerlessConfigT>(value));
194 return *this;
195 }
197
199
202 inline const ProductionVariantServerlessConfig& GetDesiredServerlessConfig() const { return m_desiredServerlessConfig; }
203 inline bool DesiredServerlessConfigHasBeenSet() const { return m_desiredServerlessConfigHasBeenSet; }
204 template <typename DesiredServerlessConfigT = ProductionVariantServerlessConfig>
205 void SetDesiredServerlessConfig(DesiredServerlessConfigT&& value) {
206 m_desiredServerlessConfigHasBeenSet = true;
207 m_desiredServerlessConfig = std::forward<DesiredServerlessConfigT>(value);
208 }
209 template <typename DesiredServerlessConfigT = ProductionVariantServerlessConfig>
210 ProductionVariantSummary& WithDesiredServerlessConfig(DesiredServerlessConfigT&& value) {
211 SetDesiredServerlessConfig(std::forward<DesiredServerlessConfigT>(value));
212 return *this;
213 }
215
217
221 inline const ProductionVariantManagedInstanceScaling& GetManagedInstanceScaling() const { return m_managedInstanceScaling; }
222 inline bool ManagedInstanceScalingHasBeenSet() const { return m_managedInstanceScalingHasBeenSet; }
223 template <typename ManagedInstanceScalingT = ProductionVariantManagedInstanceScaling>
224 void SetManagedInstanceScaling(ManagedInstanceScalingT&& value) {
225 m_managedInstanceScalingHasBeenSet = true;
226 m_managedInstanceScaling = std::forward<ManagedInstanceScalingT>(value);
227 }
228 template <typename ManagedInstanceScalingT = ProductionVariantManagedInstanceScaling>
229 ProductionVariantSummary& WithManagedInstanceScaling(ManagedInstanceScalingT&& value) {
230 SetManagedInstanceScaling(std::forward<ManagedInstanceScalingT>(value));
231 return *this;
232 }
234
236
240 inline const ProductionVariantRoutingConfig& GetRoutingConfig() const { return m_routingConfig; }
241 inline bool RoutingConfigHasBeenSet() const { return m_routingConfigHasBeenSet; }
242 template <typename RoutingConfigT = ProductionVariantRoutingConfig>
243 void SetRoutingConfig(RoutingConfigT&& value) {
244 m_routingConfigHasBeenSet = true;
245 m_routingConfig = std::forward<RoutingConfigT>(value);
246 }
247 template <typename RoutingConfigT = ProductionVariantRoutingConfig>
249 SetRoutingConfig(std::forward<RoutingConfigT>(value));
250 return *this;
251 }
253
255
259 inline const ProductionVariantCapacityReservationSummary& GetCapacityReservationConfig() const { return m_capacityReservationConfig; }
260 inline bool CapacityReservationConfigHasBeenSet() const { return m_capacityReservationConfigHasBeenSet; }
261 template <typename CapacityReservationConfigT = ProductionVariantCapacityReservationSummary>
262 void SetCapacityReservationConfig(CapacityReservationConfigT&& value) {
263 m_capacityReservationConfigHasBeenSet = true;
264 m_capacityReservationConfig = std::forward<CapacityReservationConfigT>(value);
265 }
266 template <typename CapacityReservationConfigT = ProductionVariantCapacityReservationSummary>
267 ProductionVariantSummary& WithCapacityReservationConfig(CapacityReservationConfigT&& value) {
268 SetCapacityReservationConfig(std::forward<CapacityReservationConfigT>(value));
269 return *this;
270 }
272 private:
273 Aws::String m_variantName;
274
275 Aws::Vector<DeployedImage> m_deployedImages;
276
277 double m_currentWeight{0.0};
278
279 double m_desiredWeight{0.0};
280
281 int m_currentInstanceCount{0};
282
283 int m_desiredInstanceCount{0};
284
286
287 ProductionVariantServerlessConfig m_currentServerlessConfig;
288
289 ProductionVariantServerlessConfig m_desiredServerlessConfig;
290
291 ProductionVariantManagedInstanceScaling m_managedInstanceScaling;
292
293 ProductionVariantRoutingConfig m_routingConfig;
294
295 ProductionVariantCapacityReservationSummary m_capacityReservationConfig;
296 bool m_variantNameHasBeenSet = false;
297 bool m_deployedImagesHasBeenSet = false;
298 bool m_currentWeightHasBeenSet = false;
299 bool m_desiredWeightHasBeenSet = false;
300 bool m_currentInstanceCountHasBeenSet = false;
301 bool m_desiredInstanceCountHasBeenSet = false;
302 bool m_variantStatusHasBeenSet = false;
303 bool m_currentServerlessConfigHasBeenSet = false;
304 bool m_desiredServerlessConfigHasBeenSet = false;
305 bool m_managedInstanceScalingHasBeenSet = false;
306 bool m_routingConfigHasBeenSet = false;
307 bool m_capacityReservationConfigHasBeenSet = false;
308};
309
310} // namespace Model
311} // namespace SageMaker
312} // namespace Aws
ProductionVariantSummary & WithCurrentServerlessConfig(CurrentServerlessConfigT &&value)
ProductionVariantSummary & WithManagedInstanceScaling(ManagedInstanceScalingT &&value)
ProductionVariantSummary & WithCapacityReservationConfig(CapacityReservationConfigT &&value)
ProductionVariantSummary & WithDesiredWeight(double value)
ProductionVariantSummary & WithVariantName(VariantNameT &&value)
ProductionVariantSummary & WithDeployedImages(DeployedImagesT &&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)
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