7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/model/ProductionVariantServerlessConfig.h>
11#include <aws/sagemaker/model/ProductionVariantManagedInstanceScaling.h>
12#include <aws/sagemaker/model/ProductionVariantRoutingConfig.h>
13#include <aws/sagemaker/model/ProductionVariantCapacityReservationSummary.h>
14#include <aws/sagemaker/model/DeployedImage.h>
15#include <aws/sagemaker/model/ProductionVariantStatus.h>
57 template<
typename VariantNameT = Aws::String>
58 void SetVariantName(VariantNameT&& value) { m_variantNameHasBeenSet =
true; m_variantName = std::forward<VariantNameT>(value); }
59 template<
typename VariantNameT = Aws::String>
71 template<
typename DeployedImagesT = Aws::Vector<DeployedImage>>
72 void SetDeployedImages(DeployedImagesT&& value) { m_deployedImagesHasBeenSet =
true; m_deployedImages = std::forward<DeployedImagesT>(value); }
73 template<
typename DeployedImagesT = Aws::Vector<DeployedImage>>
75 template<
typename DeployedImagesT = DeployedImage>
85 inline void SetCurrentWeight(
double value) { m_currentWeightHasBeenSet =
true; m_currentWeight = value; }
96 inline void SetDesiredWeight(
double value) { m_desiredWeightHasBeenSet =
true; m_desiredWeight = value; }
128 template<
typename VariantStatusT = Aws::Vector<ProductionVariantStatus>>
129 void SetVariantStatus(VariantStatusT&& value) { m_variantStatusHasBeenSet =
true; m_variantStatus = std::forward<VariantStatusT>(value); }
130 template<
typename VariantStatusT = Aws::Vector<ProductionVariantStatus>>
132 template<
typename VariantStatusT = ProductionVariantStatus>
142 template<
typename CurrentServerlessConfigT = ProductionVariantServerlessConfig>
143 void SetCurrentServerlessConfig(CurrentServerlessConfigT&& value) { m_currentServerlessConfigHasBeenSet =
true; m_currentServerlessConfig = std::forward<CurrentServerlessConfigT>(value); }
144 template<
typename CurrentServerlessConfigT = ProductionVariantServerlessConfig>
154 template<
typename DesiredServerlessConfigT = ProductionVariantServerlessConfig>
155 void SetDesiredServerlessConfig(DesiredServerlessConfigT&& value) { m_desiredServerlessConfigHasBeenSet =
true; m_desiredServerlessConfig = std::forward<DesiredServerlessConfigT>(value); }
156 template<
typename DesiredServerlessConfigT = ProductionVariantServerlessConfig>
167 template<
typename ManagedInstanceScalingT = ProductionVariantManagedInstanceScaling>
168 void SetManagedInstanceScaling(ManagedInstanceScalingT&& value) { m_managedInstanceScalingHasBeenSet =
true; m_managedInstanceScaling = std::forward<ManagedInstanceScalingT>(value); }
169 template<
typename ManagedInstanceScalingT = ProductionVariantManagedInstanceScaling>
180 template<
typename RoutingConfigT = ProductionVariantRoutingConfig>
181 void SetRoutingConfig(RoutingConfigT&& value) { m_routingConfigHasBeenSet =
true; m_routingConfig = std::forward<RoutingConfigT>(value); }
182 template<
typename RoutingConfigT = ProductionVariantRoutingConfig>
193 template<
typename CapacityReservationConfigT = ProductionVariantCapacityReservationSummary>
194 void SetCapacityReservationConfig(CapacityReservationConfigT&& value) { m_capacityReservationConfigHasBeenSet =
true; m_capacityReservationConfig = std::forward<CapacityReservationConfigT>(value); }
195 template<
typename CapacityReservationConfigT = ProductionVariantCapacityReservationSummary>
201 bool m_variantNameHasBeenSet =
false;
204 bool m_deployedImagesHasBeenSet =
false;
206 double m_currentWeight{0.0};
207 bool m_currentWeightHasBeenSet =
false;
209 double m_desiredWeight{0.0};
210 bool m_desiredWeightHasBeenSet =
false;
212 int m_currentInstanceCount{0};
213 bool m_currentInstanceCountHasBeenSet =
false;
215 int m_desiredInstanceCount{0};
216 bool m_desiredInstanceCountHasBeenSet =
false;
219 bool m_variantStatusHasBeenSet =
false;
221 ProductionVariantServerlessConfig m_currentServerlessConfig;
222 bool m_currentServerlessConfigHasBeenSet =
false;
224 ProductionVariantServerlessConfig m_desiredServerlessConfig;
225 bool m_desiredServerlessConfigHasBeenSet =
false;
227 ProductionVariantManagedInstanceScaling m_managedInstanceScaling;
228 bool m_managedInstanceScalingHasBeenSet =
false;
230 ProductionVariantRoutingConfig m_routingConfig;
231 bool m_routingConfigHasBeenSet =
false;
233 ProductionVariantCapacityReservationSummary m_capacityReservationConfig;
234 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