AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
PendingProductionVariantSummary.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/ProductionVariantInstanceType.h>
11#include <aws/sagemaker/model/ProductionVariantAcceleratorType.h>
12#include <aws/sagemaker/model/ProductionVariantServerlessConfig.h>
13#include <aws/sagemaker/model/ProductionVariantManagedInstanceScaling.h>
14#include <aws/sagemaker/model/ProductionVariantRoutingConfig.h>
15#include <aws/sagemaker/model/DeployedImage.h>
16#include <aws/sagemaker/model/ProductionVariantStatus.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace SageMaker
30{
31namespace Model
32{
33
46 {
47 public:
48 AWS_SAGEMAKER_API PendingProductionVariantSummary() = default;
51 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
52
53
55
58 inline const Aws::String& GetVariantName() const { return m_variantName; }
59 inline bool VariantNameHasBeenSet() const { return m_variantNameHasBeenSet; }
60 template<typename VariantNameT = Aws::String>
61 void SetVariantName(VariantNameT&& value) { m_variantNameHasBeenSet = true; m_variantName = std::forward<VariantNameT>(value); }
62 template<typename VariantNameT = Aws::String>
63 PendingProductionVariantSummary& WithVariantName(VariantNameT&& value) { SetVariantName(std::forward<VariantNameT>(value)); return *this;}
65
67
72 inline const Aws::Vector<DeployedImage>& GetDeployedImages() const { return m_deployedImages; }
73 inline bool DeployedImagesHasBeenSet() const { return m_deployedImagesHasBeenSet; }
74 template<typename DeployedImagesT = Aws::Vector<DeployedImage>>
75 void SetDeployedImages(DeployedImagesT&& value) { m_deployedImagesHasBeenSet = true; m_deployedImages = std::forward<DeployedImagesT>(value); }
76 template<typename DeployedImagesT = Aws::Vector<DeployedImage>>
77 PendingProductionVariantSummary& WithDeployedImages(DeployedImagesT&& value) { SetDeployedImages(std::forward<DeployedImagesT>(value)); return *this;}
78 template<typename DeployedImagesT = DeployedImage>
79 PendingProductionVariantSummary& AddDeployedImages(DeployedImagesT&& value) { m_deployedImagesHasBeenSet = true; m_deployedImages.emplace_back(std::forward<DeployedImagesT>(value)); return *this; }
81
83
86 inline double GetCurrentWeight() const { return m_currentWeight; }
87 inline bool CurrentWeightHasBeenSet() const { return m_currentWeightHasBeenSet; }
88 inline void SetCurrentWeight(double value) { m_currentWeightHasBeenSet = true; m_currentWeight = value; }
89 inline PendingProductionVariantSummary& WithCurrentWeight(double value) { SetCurrentWeight(value); return *this;}
91
93
100 inline double GetDesiredWeight() const { return m_desiredWeight; }
101 inline bool DesiredWeightHasBeenSet() const { return m_desiredWeightHasBeenSet; }
102 inline void SetDesiredWeight(double value) { m_desiredWeightHasBeenSet = true; m_desiredWeight = value; }
103 inline PendingProductionVariantSummary& WithDesiredWeight(double value) { SetDesiredWeight(value); return *this;}
105
107
110 inline int GetCurrentInstanceCount() const { return m_currentInstanceCount; }
111 inline bool CurrentInstanceCountHasBeenSet() const { return m_currentInstanceCountHasBeenSet; }
112 inline void SetCurrentInstanceCount(int value) { m_currentInstanceCountHasBeenSet = true; m_currentInstanceCount = value; }
115
117
124 inline int GetDesiredInstanceCount() const { return m_desiredInstanceCount; }
125 inline bool DesiredInstanceCountHasBeenSet() const { return m_desiredInstanceCountHasBeenSet; }
126 inline void SetDesiredInstanceCount(int value) { m_desiredInstanceCountHasBeenSet = true; m_desiredInstanceCount = value; }
129
131
134 inline ProductionVariantInstanceType GetInstanceType() const { return m_instanceType; }
135 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
136 inline void SetInstanceType(ProductionVariantInstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
139
141
146 inline ProductionVariantAcceleratorType GetAcceleratorType() const { return m_acceleratorType; }
147 inline bool AcceleratorTypeHasBeenSet() const { return m_acceleratorTypeHasBeenSet; }
148 inline void SetAcceleratorType(ProductionVariantAcceleratorType value) { m_acceleratorTypeHasBeenSet = true; m_acceleratorType = value; }
151
153
157 inline const Aws::Vector<ProductionVariantStatus>& GetVariantStatus() const { return m_variantStatus; }
158 inline bool VariantStatusHasBeenSet() const { return m_variantStatusHasBeenSet; }
159 template<typename VariantStatusT = Aws::Vector<ProductionVariantStatus>>
160 void SetVariantStatus(VariantStatusT&& value) { m_variantStatusHasBeenSet = true; m_variantStatus = std::forward<VariantStatusT>(value); }
161 template<typename VariantStatusT = Aws::Vector<ProductionVariantStatus>>
162 PendingProductionVariantSummary& WithVariantStatus(VariantStatusT&& value) { SetVariantStatus(std::forward<VariantStatusT>(value)); return *this;}
163 template<typename VariantStatusT = ProductionVariantStatus>
164 PendingProductionVariantSummary& AddVariantStatus(VariantStatusT&& value) { m_variantStatusHasBeenSet = true; m_variantStatus.emplace_back(std::forward<VariantStatusT>(value)); return *this; }
166
168
171 inline const ProductionVariantServerlessConfig& GetCurrentServerlessConfig() const { return m_currentServerlessConfig; }
172 inline bool CurrentServerlessConfigHasBeenSet() const { return m_currentServerlessConfigHasBeenSet; }
173 template<typename CurrentServerlessConfigT = ProductionVariantServerlessConfig>
174 void SetCurrentServerlessConfig(CurrentServerlessConfigT&& value) { m_currentServerlessConfigHasBeenSet = true; m_currentServerlessConfig = std::forward<CurrentServerlessConfigT>(value); }
175 template<typename CurrentServerlessConfigT = ProductionVariantServerlessConfig>
176 PendingProductionVariantSummary& WithCurrentServerlessConfig(CurrentServerlessConfigT&& value) { SetCurrentServerlessConfig(std::forward<CurrentServerlessConfigT>(value)); return *this;}
178
180
184 inline const ProductionVariantServerlessConfig& GetDesiredServerlessConfig() const { return m_desiredServerlessConfig; }
185 inline bool DesiredServerlessConfigHasBeenSet() const { return m_desiredServerlessConfigHasBeenSet; }
186 template<typename DesiredServerlessConfigT = ProductionVariantServerlessConfig>
187 void SetDesiredServerlessConfig(DesiredServerlessConfigT&& value) { m_desiredServerlessConfigHasBeenSet = true; m_desiredServerlessConfig = std::forward<DesiredServerlessConfigT>(value); }
188 template<typename DesiredServerlessConfigT = ProductionVariantServerlessConfig>
189 PendingProductionVariantSummary& WithDesiredServerlessConfig(DesiredServerlessConfigT&& value) { SetDesiredServerlessConfig(std::forward<DesiredServerlessConfigT>(value)); return *this;}
191
193
197 inline const ProductionVariantManagedInstanceScaling& GetManagedInstanceScaling() const { return m_managedInstanceScaling; }
198 inline bool ManagedInstanceScalingHasBeenSet() const { return m_managedInstanceScalingHasBeenSet; }
199 template<typename ManagedInstanceScalingT = ProductionVariantManagedInstanceScaling>
200 void SetManagedInstanceScaling(ManagedInstanceScalingT&& value) { m_managedInstanceScalingHasBeenSet = true; m_managedInstanceScaling = std::forward<ManagedInstanceScalingT>(value); }
201 template<typename ManagedInstanceScalingT = ProductionVariantManagedInstanceScaling>
202 PendingProductionVariantSummary& WithManagedInstanceScaling(ManagedInstanceScalingT&& value) { SetManagedInstanceScaling(std::forward<ManagedInstanceScalingT>(value)); return *this;}
204
206
210 inline const ProductionVariantRoutingConfig& GetRoutingConfig() const { return m_routingConfig; }
211 inline bool RoutingConfigHasBeenSet() const { return m_routingConfigHasBeenSet; }
212 template<typename RoutingConfigT = ProductionVariantRoutingConfig>
213 void SetRoutingConfig(RoutingConfigT&& value) { m_routingConfigHasBeenSet = true; m_routingConfig = std::forward<RoutingConfigT>(value); }
214 template<typename RoutingConfigT = ProductionVariantRoutingConfig>
215 PendingProductionVariantSummary& WithRoutingConfig(RoutingConfigT&& value) { SetRoutingConfig(std::forward<RoutingConfigT>(value)); return *this;}
217 private:
218
219 Aws::String m_variantName;
220 bool m_variantNameHasBeenSet = false;
221
222 Aws::Vector<DeployedImage> m_deployedImages;
223 bool m_deployedImagesHasBeenSet = false;
224
225 double m_currentWeight{0.0};
226 bool m_currentWeightHasBeenSet = false;
227
228 double m_desiredWeight{0.0};
229 bool m_desiredWeightHasBeenSet = false;
230
231 int m_currentInstanceCount{0};
232 bool m_currentInstanceCountHasBeenSet = false;
233
234 int m_desiredInstanceCount{0};
235 bool m_desiredInstanceCountHasBeenSet = false;
236
238 bool m_instanceTypeHasBeenSet = false;
239
241 bool m_acceleratorTypeHasBeenSet = false;
242
244 bool m_variantStatusHasBeenSet = false;
245
246 ProductionVariantServerlessConfig m_currentServerlessConfig;
247 bool m_currentServerlessConfigHasBeenSet = false;
248
249 ProductionVariantServerlessConfig m_desiredServerlessConfig;
250 bool m_desiredServerlessConfigHasBeenSet = false;
251
252 ProductionVariantManagedInstanceScaling m_managedInstanceScaling;
253 bool m_managedInstanceScalingHasBeenSet = false;
254
255 ProductionVariantRoutingConfig m_routingConfig;
256 bool m_routingConfigHasBeenSet = false;
257 };
258
259} // namespace Model
260} // namespace SageMaker
261} // namespace Aws
AWS_SAGEMAKER_API PendingProductionVariantSummary(Aws::Utils::Json::JsonView jsonValue)
PendingProductionVariantSummary & WithAcceleratorType(ProductionVariantAcceleratorType value)
const ProductionVariantRoutingConfig & GetRoutingConfig() const
PendingProductionVariantSummary & WithRoutingConfig(RoutingConfigT &&value)
PendingProductionVariantSummary & WithVariantStatus(VariantStatusT &&value)
PendingProductionVariantSummary & WithDesiredInstanceCount(int value)
const Aws::Vector< ProductionVariantStatus > & GetVariantStatus() const
PendingProductionVariantSummary & WithCurrentInstanceCount(int value)
PendingProductionVariantSummary & WithCurrentWeight(double value)
PendingProductionVariantSummary & AddVariantStatus(VariantStatusT &&value)
PendingProductionVariantSummary & AddDeployedImages(DeployedImagesT &&value)
PendingProductionVariantSummary & WithVariantName(VariantNameT &&value)
const Aws::Vector< DeployedImage > & GetDeployedImages() const
const ProductionVariantServerlessConfig & GetCurrentServerlessConfig() const
const ProductionVariantManagedInstanceScaling & GetManagedInstanceScaling() const
PendingProductionVariantSummary & WithInstanceType(ProductionVariantInstanceType value)
PendingProductionVariantSummary & WithCurrentServerlessConfig(CurrentServerlessConfigT &&value)
PendingProductionVariantSummary & WithDesiredWeight(double value)
AWS_SAGEMAKER_API PendingProductionVariantSummary()=default
void SetAcceleratorType(ProductionVariantAcceleratorType value)
const ProductionVariantServerlessConfig & GetDesiredServerlessConfig() const
AWS_SAGEMAKER_API PendingProductionVariantSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
PendingProductionVariantSummary & WithDeployedImages(DeployedImagesT &&value)
PendingProductionVariantSummary & WithManagedInstanceScaling(ManagedInstanceScalingT &&value)
PendingProductionVariantSummary & WithDesiredServerlessConfig(DesiredServerlessConfigT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue