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>
51 template <
typename VariantNameT = Aws::String>
53 m_variantNameHasBeenSet =
true;
54 m_variantName = std::forward<VariantNameT>(value);
56 template <
typename VariantNameT = Aws::String>
71 template <
typename DeployedImagesT = Aws::Vector<DeployedImage>>
73 m_deployedImagesHasBeenSet =
true;
74 m_deployedImages = std::forward<DeployedImagesT>(value);
76 template <
typename DeployedImagesT = Aws::Vector<DeployedImage>>
81 template <
typename DeployedImagesT = DeployedImage>
83 m_deployedImagesHasBeenSet =
true;
84 m_deployedImages.emplace_back(std::forward<DeployedImagesT>(value));
96 m_currentWeightHasBeenSet =
true;
97 m_currentWeight = value;
113 m_desiredWeightHasBeenSet =
true;
114 m_desiredWeight = value;
129 m_currentInstanceCountHasBeenSet =
true;
130 m_currentInstanceCount = value;
146 m_desiredInstanceCountHasBeenSet =
true;
147 m_desiredInstanceCount = value;
162 template <
typename VariantStatusT = Aws::Vector<ProductionVariantStatus>>
164 m_variantStatusHasBeenSet =
true;
165 m_variantStatus = std::forward<VariantStatusT>(value);
167 template <
typename VariantStatusT = Aws::Vector<ProductionVariantStatus>>
172 template <
typename VariantStatusT = ProductionVariantStatus>
174 m_variantStatusHasBeenSet =
true;
175 m_variantStatus.emplace_back(std::forward<VariantStatusT>(value));
186 template <
typename CurrentServerlessConfigT = ProductionVariantServerlessConfig>
188 m_currentServerlessConfigHasBeenSet =
true;
189 m_currentServerlessConfig = std::forward<CurrentServerlessConfigT>(value);
191 template <
typename CurrentServerlessConfigT = ProductionVariantServerlessConfig>
204 template <
typename DesiredServerlessConfigT = ProductionVariantServerlessConfig>
206 m_desiredServerlessConfigHasBeenSet =
true;
207 m_desiredServerlessConfig = std::forward<DesiredServerlessConfigT>(value);
209 template <
typename DesiredServerlessConfigT = ProductionVariantServerlessConfig>
223 template <
typename ManagedInstanceScalingT = ProductionVariantManagedInstanceScaling>
225 m_managedInstanceScalingHasBeenSet =
true;
226 m_managedInstanceScaling = std::forward<ManagedInstanceScalingT>(value);
228 template <
typename ManagedInstanceScalingT = ProductionVariantManagedInstanceScaling>
242 template <
typename RoutingConfigT = ProductionVariantRoutingConfig>
244 m_routingConfigHasBeenSet =
true;
245 m_routingConfig = std::forward<RoutingConfigT>(value);
247 template <
typename RoutingConfigT = ProductionVariantRoutingConfig>
261 template <
typename CapacityReservationConfigT = ProductionVariantCapacityReservationSummary>
263 m_capacityReservationConfigHasBeenSet =
true;
264 m_capacityReservationConfig = std::forward<CapacityReservationConfigT>(value);
266 template <
typename CapacityReservationConfigT = ProductionVariantCapacityReservationSummary>
277 double m_currentWeight{0.0};
279 double m_desiredWeight{0.0};
281 int m_currentInstanceCount{0};
283 int m_desiredInstanceCount{0};
287 ProductionVariantServerlessConfig m_currentServerlessConfig;
289 ProductionVariantServerlessConfig m_desiredServerlessConfig;
291 ProductionVariantManagedInstanceScaling m_managedInstanceScaling;
293 ProductionVariantRoutingConfig m_routingConfig;
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;
ProductionVariantSummary & WithCurrentServerlessConfig(CurrentServerlessConfigT &&value)
ProductionVariantSummary & WithManagedInstanceScaling(ManagedInstanceScalingT &&value)
ProductionVariantSummary & WithCapacityReservationConfig(CapacityReservationConfigT &&value)
ProductionVariantSummary & WithDesiredWeight(double value)
bool CurrentWeightHasBeenSet() const
ProductionVariantSummary & WithVariantName(VariantNameT &&value)
ProductionVariantSummary & WithDeployedImages(DeployedImagesT &&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)
const ProductionVariantRoutingConfig & GetRoutingConfig() const
bool CurrentServerlessConfigHasBeenSet() const
const ProductionVariantServerlessConfig & GetDesiredServerlessConfig() const
const Aws::String & GetVariantName() const
ProductionVariantSummary & WithRoutingConfig(RoutingConfigT &&value)
void SetManagedInstanceScaling(ManagedInstanceScalingT &&value)
bool VariantStatusHasBeenSet() const
ProductionVariantSummary & WithDesiredServerlessConfig(DesiredServerlessConfigT &&value)
bool RoutingConfigHasBeenSet() 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