AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ProductionVariantSummary.h
1
6#pragma once
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>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace SageMaker
29{
30namespace Model
31{
32
43 {
44 public:
45 AWS_SAGEMAKER_API ProductionVariantSummary() = default;
48 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
55 inline const Aws::String& GetVariantName() const { return m_variantName; }
56 inline bool VariantNameHasBeenSet() const { return m_variantNameHasBeenSet; }
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>
60 ProductionVariantSummary& WithVariantName(VariantNameT&& value) { SetVariantName(std::forward<VariantNameT>(value)); return *this;}
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) { m_deployedImagesHasBeenSet = true; m_deployedImages = std::forward<DeployedImagesT>(value); }
73 template<typename DeployedImagesT = Aws::Vector<DeployedImage>>
74 ProductionVariantSummary& WithDeployedImages(DeployedImagesT&& value) { SetDeployedImages(std::forward<DeployedImagesT>(value)); return *this;}
75 template<typename DeployedImagesT = DeployedImage>
76 ProductionVariantSummary& AddDeployedImages(DeployedImagesT&& value) { m_deployedImagesHasBeenSet = true; m_deployedImages.emplace_back(std::forward<DeployedImagesT>(value)); return *this; }
78
80
83 inline double GetCurrentWeight() const { return m_currentWeight; }
84 inline bool CurrentWeightHasBeenSet() const { return m_currentWeightHasBeenSet; }
85 inline void SetCurrentWeight(double value) { m_currentWeightHasBeenSet = true; m_currentWeight = value; }
86 inline ProductionVariantSummary& WithCurrentWeight(double value) { SetCurrentWeight(value); return *this;}
88
90
94 inline double GetDesiredWeight() const { return m_desiredWeight; }
95 inline bool DesiredWeightHasBeenSet() const { return m_desiredWeightHasBeenSet; }
96 inline void SetDesiredWeight(double value) { m_desiredWeightHasBeenSet = true; m_desiredWeight = value; }
97 inline ProductionVariantSummary& WithDesiredWeight(double value) { SetDesiredWeight(value); return *this;}
99
101
104 inline int GetCurrentInstanceCount() const { return m_currentInstanceCount; }
105 inline bool CurrentInstanceCountHasBeenSet() const { return m_currentInstanceCountHasBeenSet; }
106 inline void SetCurrentInstanceCount(int value) { m_currentInstanceCountHasBeenSet = true; m_currentInstanceCount = value; }
109
111
115 inline int GetDesiredInstanceCount() const { return m_desiredInstanceCount; }
116 inline bool DesiredInstanceCountHasBeenSet() const { return m_desiredInstanceCountHasBeenSet; }
117 inline void SetDesiredInstanceCount(int value) { m_desiredInstanceCountHasBeenSet = true; m_desiredInstanceCount = value; }
120
122
126 inline const Aws::Vector<ProductionVariantStatus>& GetVariantStatus() const { return m_variantStatus; }
127 inline bool VariantStatusHasBeenSet() const { return m_variantStatusHasBeenSet; }
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>>
131 ProductionVariantSummary& WithVariantStatus(VariantStatusT&& value) { SetVariantStatus(std::forward<VariantStatusT>(value)); return *this;}
132 template<typename VariantStatusT = ProductionVariantStatus>
133 ProductionVariantSummary& AddVariantStatus(VariantStatusT&& value) { m_variantStatusHasBeenSet = true; m_variantStatus.emplace_back(std::forward<VariantStatusT>(value)); return *this; }
135
137
140 inline const ProductionVariantServerlessConfig& GetCurrentServerlessConfig() const { return m_currentServerlessConfig; }
141 inline bool CurrentServerlessConfigHasBeenSet() const { return m_currentServerlessConfigHasBeenSet; }
142 template<typename CurrentServerlessConfigT = ProductionVariantServerlessConfig>
143 void SetCurrentServerlessConfig(CurrentServerlessConfigT&& value) { m_currentServerlessConfigHasBeenSet = true; m_currentServerlessConfig = std::forward<CurrentServerlessConfigT>(value); }
144 template<typename CurrentServerlessConfigT = ProductionVariantServerlessConfig>
145 ProductionVariantSummary& WithCurrentServerlessConfig(CurrentServerlessConfigT&& value) { SetCurrentServerlessConfig(std::forward<CurrentServerlessConfigT>(value)); return *this;}
147
149
152 inline const ProductionVariantServerlessConfig& GetDesiredServerlessConfig() const { return m_desiredServerlessConfig; }
153 inline bool DesiredServerlessConfigHasBeenSet() const { return m_desiredServerlessConfigHasBeenSet; }
154 template<typename DesiredServerlessConfigT = ProductionVariantServerlessConfig>
155 void SetDesiredServerlessConfig(DesiredServerlessConfigT&& value) { m_desiredServerlessConfigHasBeenSet = true; m_desiredServerlessConfig = std::forward<DesiredServerlessConfigT>(value); }
156 template<typename DesiredServerlessConfigT = ProductionVariantServerlessConfig>
157 ProductionVariantSummary& WithDesiredServerlessConfig(DesiredServerlessConfigT&& value) { SetDesiredServerlessConfig(std::forward<DesiredServerlessConfigT>(value)); return *this;}
159
161
165 inline const ProductionVariantManagedInstanceScaling& GetManagedInstanceScaling() const { return m_managedInstanceScaling; }
166 inline bool ManagedInstanceScalingHasBeenSet() const { return m_managedInstanceScalingHasBeenSet; }
167 template<typename ManagedInstanceScalingT = ProductionVariantManagedInstanceScaling>
168 void SetManagedInstanceScaling(ManagedInstanceScalingT&& value) { m_managedInstanceScalingHasBeenSet = true; m_managedInstanceScaling = std::forward<ManagedInstanceScalingT>(value); }
169 template<typename ManagedInstanceScalingT = ProductionVariantManagedInstanceScaling>
170 ProductionVariantSummary& WithManagedInstanceScaling(ManagedInstanceScalingT&& value) { SetManagedInstanceScaling(std::forward<ManagedInstanceScalingT>(value)); return *this;}
172
174
178 inline const ProductionVariantRoutingConfig& GetRoutingConfig() const { return m_routingConfig; }
179 inline bool RoutingConfigHasBeenSet() const { return m_routingConfigHasBeenSet; }
180 template<typename RoutingConfigT = ProductionVariantRoutingConfig>
181 void SetRoutingConfig(RoutingConfigT&& value) { m_routingConfigHasBeenSet = true; m_routingConfig = std::forward<RoutingConfigT>(value); }
182 template<typename RoutingConfigT = ProductionVariantRoutingConfig>
183 ProductionVariantSummary& WithRoutingConfig(RoutingConfigT&& value) { SetRoutingConfig(std::forward<RoutingConfigT>(value)); return *this;}
185
187
191 inline const ProductionVariantCapacityReservationSummary& GetCapacityReservationConfig() const { return m_capacityReservationConfig; }
192 inline bool CapacityReservationConfigHasBeenSet() const { return m_capacityReservationConfigHasBeenSet; }
193 template<typename CapacityReservationConfigT = ProductionVariantCapacityReservationSummary>
194 void SetCapacityReservationConfig(CapacityReservationConfigT&& value) { m_capacityReservationConfigHasBeenSet = true; m_capacityReservationConfig = std::forward<CapacityReservationConfigT>(value); }
195 template<typename CapacityReservationConfigT = ProductionVariantCapacityReservationSummary>
196 ProductionVariantSummary& WithCapacityReservationConfig(CapacityReservationConfigT&& value) { SetCapacityReservationConfig(std::forward<CapacityReservationConfigT>(value)); return *this;}
198 private:
199
200 Aws::String m_variantName;
201 bool m_variantNameHasBeenSet = false;
202
203 Aws::Vector<DeployedImage> m_deployedImages;
204 bool m_deployedImagesHasBeenSet = false;
205
206 double m_currentWeight{0.0};
207 bool m_currentWeightHasBeenSet = false;
208
209 double m_desiredWeight{0.0};
210 bool m_desiredWeightHasBeenSet = false;
211
212 int m_currentInstanceCount{0};
213 bool m_currentInstanceCountHasBeenSet = false;
214
215 int m_desiredInstanceCount{0};
216 bool m_desiredInstanceCountHasBeenSet = false;
217
219 bool m_variantStatusHasBeenSet = false;
220
221 ProductionVariantServerlessConfig m_currentServerlessConfig;
222 bool m_currentServerlessConfigHasBeenSet = false;
223
224 ProductionVariantServerlessConfig m_desiredServerlessConfig;
225 bool m_desiredServerlessConfigHasBeenSet = false;
226
227 ProductionVariantManagedInstanceScaling m_managedInstanceScaling;
228 bool m_managedInstanceScalingHasBeenSet = false;
229
230 ProductionVariantRoutingConfig m_routingConfig;
231 bool m_routingConfigHasBeenSet = false;
232
233 ProductionVariantCapacityReservationSummary m_capacityReservationConfig;
234 bool m_capacityReservationConfigHasBeenSet = false;
235 };
236
237} // namespace Model
238} // namespace SageMaker
239} // 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