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>
52 template <
typename VariantNameT = Aws::String>
54 m_variantNameHasBeenSet =
true;
55 m_variantName = std::forward<VariantNameT>(value);
57 template <
typename VariantNameT = Aws::String>
72 template <
typename DeployedImagesT = Aws::Vector<DeployedImage>>
74 m_deployedImagesHasBeenSet =
true;
75 m_deployedImages = std::forward<DeployedImagesT>(value);
77 template <
typename DeployedImagesT = Aws::Vector<DeployedImage>>
82 template <
typename DeployedImagesT = DeployedImage>
84 m_deployedImagesHasBeenSet =
true;
85 m_deployedImages.emplace_back(std::forward<DeployedImagesT>(value));
97 m_currentWeightHasBeenSet =
true;
98 m_currentWeight = value;
114 m_desiredWeightHasBeenSet =
true;
115 m_desiredWeight = value;
130 m_currentInstanceCountHasBeenSet =
true;
131 m_currentInstanceCount = value;
147 m_desiredInstanceCountHasBeenSet =
true;
148 m_desiredInstanceCount = value;
163 template <
typename InstancePoolsT = Aws::Vector<InstancePoolSummary>>
165 m_instancePoolsHasBeenSet =
true;
166 m_instancePools = std::forward<InstancePoolsT>(value);
168 template <
typename InstancePoolsT = Aws::Vector<InstancePoolSummary>>
173 template <
typename InstancePoolsT = InstancePoolSummary>
175 m_instancePoolsHasBeenSet =
true;
176 m_instancePools.emplace_back(std::forward<InstancePoolsT>(value));
188 template <
typename VariantStatusT = Aws::Vector<ProductionVariantStatus>>
190 m_variantStatusHasBeenSet =
true;
191 m_variantStatus = std::forward<VariantStatusT>(value);
193 template <
typename VariantStatusT = Aws::Vector<ProductionVariantStatus>>
198 template <
typename VariantStatusT = ProductionVariantStatus>
200 m_variantStatusHasBeenSet =
true;
201 m_variantStatus.emplace_back(std::forward<VariantStatusT>(value));
212 template <
typename CurrentServerlessConfigT = ProductionVariantServerlessConfig>
214 m_currentServerlessConfigHasBeenSet =
true;
215 m_currentServerlessConfig = std::forward<CurrentServerlessConfigT>(value);
217 template <
typename CurrentServerlessConfigT = ProductionVariantServerlessConfig>
230 template <
typename DesiredServerlessConfigT = ProductionVariantServerlessConfig>
232 m_desiredServerlessConfigHasBeenSet =
true;
233 m_desiredServerlessConfig = std::forward<DesiredServerlessConfigT>(value);
235 template <
typename DesiredServerlessConfigT = ProductionVariantServerlessConfig>
249 template <
typename ManagedInstanceScalingT = ProductionVariantManagedInstanceScaling>
251 m_managedInstanceScalingHasBeenSet =
true;
252 m_managedInstanceScaling = std::forward<ManagedInstanceScalingT>(value);
254 template <
typename ManagedInstanceScalingT = ProductionVariantManagedInstanceScaling>
268 template <
typename RoutingConfigT = ProductionVariantRoutingConfig>
270 m_routingConfigHasBeenSet =
true;
271 m_routingConfig = std::forward<RoutingConfigT>(value);
273 template <
typename RoutingConfigT = ProductionVariantRoutingConfig>
287 template <
typename CapacityReservationConfigT = ProductionVariantCapacityReservationSummary>
289 m_capacityReservationConfigHasBeenSet =
true;
290 m_capacityReservationConfig = std::forward<CapacityReservationConfigT>(value);
292 template <
typename CapacityReservationConfigT = ProductionVariantCapacityReservationSummary>
303 double m_currentWeight{0.0};
305 double m_desiredWeight{0.0};
307 int m_currentInstanceCount{0};
309 int m_desiredInstanceCount{0};
315 ProductionVariantServerlessConfig m_currentServerlessConfig;
317 ProductionVariantServerlessConfig m_desiredServerlessConfig;
319 ProductionVariantManagedInstanceScaling m_managedInstanceScaling;
321 ProductionVariantRoutingConfig m_routingConfig;
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;
ProductionVariantSummary & WithCurrentServerlessConfig(CurrentServerlessConfigT &&value)
ProductionVariantSummary & WithManagedInstanceScaling(ManagedInstanceScalingT &&value)
ProductionVariantSummary & WithCapacityReservationConfig(CapacityReservationConfigT &&value)
ProductionVariantSummary & WithDesiredWeight(double value)
bool CurrentWeightHasBeenSet() const
ProductionVariantSummary & WithVariantName(VariantNameT &&value)
ProductionVariantSummary & WithInstancePools(InstancePoolsT &&value)
ProductionVariantSummary & WithDeployedImages(DeployedImagesT &&value)
ProductionVariantSummary & AddInstancePools(InstancePoolsT &&value)
void SetDesiredWeight(double value)
void SetVariantStatus(VariantStatusT &&value)
ProductionVariantSummary & WithVariantStatus(VariantStatusT &&value)
const ProductionVariantCapacityReservationSummary & GetCapacityReservationConfig() const
void SetCurrentWeight(double value)
void SetDesiredServerlessConfig(DesiredServerlessConfigT &&value)
void SetCapacityReservationConfig(CapacityReservationConfigT &&value)
int GetCurrentInstanceCount() const
int GetDesiredInstanceCount() const
bool VariantNameHasBeenSet() const
bool ManagedInstanceScalingHasBeenSet() const
const ProductionVariantManagedInstanceScaling & GetManagedInstanceScaling() const
AWS_SAGEMAKER_API ProductionVariantSummary(Aws::Utils::Json::JsonView jsonValue)
bool DeployedImagesHasBeenSet() const
double GetDesiredWeight() const
ProductionVariantSummary & WithCurrentInstanceCount(int value)
double GetCurrentWeight() const
void SetRoutingConfig(RoutingConfigT &&value)
const Aws::Vector< DeployedImage > & GetDeployedImages() const
ProductionVariantSummary & WithDesiredInstanceCount(int value)
bool DesiredWeightHasBeenSet() const
void SetDesiredInstanceCount(int value)
void SetDeployedImages(DeployedImagesT &&value)
void SetInstancePools(InstancePoolsT &&value)
const ProductionVariantRoutingConfig & GetRoutingConfig() const
bool CurrentServerlessConfigHasBeenSet() const
const ProductionVariantServerlessConfig & GetDesiredServerlessConfig() const
const Aws::String & GetVariantName() const
ProductionVariantSummary & WithRoutingConfig(RoutingConfigT &&value)
void SetManagedInstanceScaling(ManagedInstanceScalingT &&value)
const Aws::Vector< InstancePoolSummary > & GetInstancePools() const
bool VariantStatusHasBeenSet() const
ProductionVariantSummary & WithDesiredServerlessConfig(DesiredServerlessConfigT &&value)
bool RoutingConfigHasBeenSet() const
bool InstancePoolsHasBeenSet() const
AWS_SAGEMAKER_API ProductionVariantSummary()=default
bool DesiredInstanceCountHasBeenSet() const
AWS_SAGEMAKER_API ProductionVariantSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ProductionVariantSummary & AddDeployedImages(DeployedImagesT &&value)
bool CurrentInstanceCountHasBeenSet() const
void SetVariantName(VariantNameT &&value)
ProductionVariantSummary & AddVariantStatus(VariantStatusT &&value)
void SetCurrentServerlessConfig(CurrentServerlessConfigT &&value)
ProductionVariantSummary & WithCurrentWeight(double value)
void SetCurrentInstanceCount(int value)
const ProductionVariantServerlessConfig & GetCurrentServerlessConfig() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
bool DesiredServerlessConfigHasBeenSet() const
bool CapacityReservationConfigHasBeenSet() 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