AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetVariantName(const Aws::String& value) { m_variantNameHasBeenSet = true; m_variantName = value; }
61 inline void SetVariantName(Aws::String&& value) { m_variantNameHasBeenSet = true; m_variantName = std::move(value); }
62 inline void SetVariantName(const char* value) { m_variantNameHasBeenSet = true; m_variantName.assign(value); }
63 inline PendingProductionVariantSummary& WithVariantName(const Aws::String& value) { SetVariantName(value); return *this;}
64 inline PendingProductionVariantSummary& WithVariantName(Aws::String&& value) { SetVariantName(std::move(value)); return *this;}
65 inline PendingProductionVariantSummary& WithVariantName(const char* value) { SetVariantName(value); return *this;}
67
69
74 inline const Aws::Vector<DeployedImage>& GetDeployedImages() const{ return m_deployedImages; }
75 inline bool DeployedImagesHasBeenSet() const { return m_deployedImagesHasBeenSet; }
76 inline void SetDeployedImages(const Aws::Vector<DeployedImage>& value) { m_deployedImagesHasBeenSet = true; m_deployedImages = value; }
77 inline void SetDeployedImages(Aws::Vector<DeployedImage>&& value) { m_deployedImagesHasBeenSet = true; m_deployedImages = std::move(value); }
80 inline PendingProductionVariantSummary& AddDeployedImages(const DeployedImage& value) { m_deployedImagesHasBeenSet = true; m_deployedImages.push_back(value); return *this; }
81 inline PendingProductionVariantSummary& AddDeployedImages(DeployedImage&& value) { m_deployedImagesHasBeenSet = true; m_deployedImages.push_back(std::move(value)); return *this; }
83
85
88 inline double GetCurrentWeight() const{ return m_currentWeight; }
89 inline bool CurrentWeightHasBeenSet() const { return m_currentWeightHasBeenSet; }
90 inline void SetCurrentWeight(double value) { m_currentWeightHasBeenSet = true; m_currentWeight = value; }
91 inline PendingProductionVariantSummary& WithCurrentWeight(double value) { SetCurrentWeight(value); return *this;}
93
95
102 inline double GetDesiredWeight() const{ return m_desiredWeight; }
103 inline bool DesiredWeightHasBeenSet() const { return m_desiredWeightHasBeenSet; }
104 inline void SetDesiredWeight(double value) { m_desiredWeightHasBeenSet = true; m_desiredWeight = value; }
105 inline PendingProductionVariantSummary& WithDesiredWeight(double value) { SetDesiredWeight(value); return *this;}
107
109
112 inline int GetCurrentInstanceCount() const{ return m_currentInstanceCount; }
113 inline bool CurrentInstanceCountHasBeenSet() const { return m_currentInstanceCountHasBeenSet; }
114 inline void SetCurrentInstanceCount(int value) { m_currentInstanceCountHasBeenSet = true; m_currentInstanceCount = value; }
117
119
126 inline int GetDesiredInstanceCount() const{ return m_desiredInstanceCount; }
127 inline bool DesiredInstanceCountHasBeenSet() const { return m_desiredInstanceCountHasBeenSet; }
128 inline void SetDesiredInstanceCount(int value) { m_desiredInstanceCountHasBeenSet = true; m_desiredInstanceCount = value; }
131
133
136 inline const ProductionVariantInstanceType& GetInstanceType() const{ return m_instanceType; }
137 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
138 inline void SetInstanceType(const ProductionVariantInstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
139 inline void SetInstanceType(ProductionVariantInstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
143
145
150 inline const ProductionVariantAcceleratorType& GetAcceleratorType() const{ return m_acceleratorType; }
151 inline bool AcceleratorTypeHasBeenSet() const { return m_acceleratorTypeHasBeenSet; }
152 inline void SetAcceleratorType(const ProductionVariantAcceleratorType& value) { m_acceleratorTypeHasBeenSet = true; m_acceleratorType = value; }
153 inline void SetAcceleratorType(ProductionVariantAcceleratorType&& value) { m_acceleratorTypeHasBeenSet = true; m_acceleratorType = std::move(value); }
157
159
163 inline const Aws::Vector<ProductionVariantStatus>& GetVariantStatus() const{ return m_variantStatus; }
164 inline bool VariantStatusHasBeenSet() const { return m_variantStatusHasBeenSet; }
165 inline void SetVariantStatus(const Aws::Vector<ProductionVariantStatus>& value) { m_variantStatusHasBeenSet = true; m_variantStatus = value; }
166 inline void SetVariantStatus(Aws::Vector<ProductionVariantStatus>&& value) { m_variantStatusHasBeenSet = true; m_variantStatus = std::move(value); }
169 inline PendingProductionVariantSummary& AddVariantStatus(const ProductionVariantStatus& value) { m_variantStatusHasBeenSet = true; m_variantStatus.push_back(value); return *this; }
170 inline PendingProductionVariantSummary& AddVariantStatus(ProductionVariantStatus&& value) { m_variantStatusHasBeenSet = true; m_variantStatus.push_back(std::move(value)); return *this; }
172
174
177 inline const ProductionVariantServerlessConfig& GetCurrentServerlessConfig() const{ return m_currentServerlessConfig; }
178 inline bool CurrentServerlessConfigHasBeenSet() const { return m_currentServerlessConfigHasBeenSet; }
179 inline void SetCurrentServerlessConfig(const ProductionVariantServerlessConfig& value) { m_currentServerlessConfigHasBeenSet = true; m_currentServerlessConfig = value; }
180 inline void SetCurrentServerlessConfig(ProductionVariantServerlessConfig&& value) { m_currentServerlessConfigHasBeenSet = true; m_currentServerlessConfig = std::move(value); }
184
186
190 inline const ProductionVariantServerlessConfig& GetDesiredServerlessConfig() const{ return m_desiredServerlessConfig; }
191 inline bool DesiredServerlessConfigHasBeenSet() const { return m_desiredServerlessConfigHasBeenSet; }
192 inline void SetDesiredServerlessConfig(const ProductionVariantServerlessConfig& value) { m_desiredServerlessConfigHasBeenSet = true; m_desiredServerlessConfig = value; }
193 inline void SetDesiredServerlessConfig(ProductionVariantServerlessConfig&& value) { m_desiredServerlessConfigHasBeenSet = true; m_desiredServerlessConfig = std::move(value); }
197
199
203 inline const ProductionVariantManagedInstanceScaling& GetManagedInstanceScaling() const{ return m_managedInstanceScaling; }
204 inline bool ManagedInstanceScalingHasBeenSet() const { return m_managedInstanceScalingHasBeenSet; }
205 inline void SetManagedInstanceScaling(const ProductionVariantManagedInstanceScaling& value) { m_managedInstanceScalingHasBeenSet = true; m_managedInstanceScaling = value; }
206 inline void SetManagedInstanceScaling(ProductionVariantManagedInstanceScaling&& value) { m_managedInstanceScalingHasBeenSet = true; m_managedInstanceScaling = std::move(value); }
210
212
216 inline const ProductionVariantRoutingConfig& GetRoutingConfig() const{ return m_routingConfig; }
217 inline bool RoutingConfigHasBeenSet() const { return m_routingConfigHasBeenSet; }
218 inline void SetRoutingConfig(const ProductionVariantRoutingConfig& value) { m_routingConfigHasBeenSet = true; m_routingConfig = value; }
219 inline void SetRoutingConfig(ProductionVariantRoutingConfig&& value) { m_routingConfigHasBeenSet = true; m_routingConfig = std::move(value); }
223 private:
224
225 Aws::String m_variantName;
226 bool m_variantNameHasBeenSet = false;
227
228 Aws::Vector<DeployedImage> m_deployedImages;
229 bool m_deployedImagesHasBeenSet = false;
230
231 double m_currentWeight;
232 bool m_currentWeightHasBeenSet = false;
233
234 double m_desiredWeight;
235 bool m_desiredWeightHasBeenSet = false;
236
237 int m_currentInstanceCount;
238 bool m_currentInstanceCountHasBeenSet = false;
239
240 int m_desiredInstanceCount;
241 bool m_desiredInstanceCountHasBeenSet = false;
242
243 ProductionVariantInstanceType m_instanceType;
244 bool m_instanceTypeHasBeenSet = false;
245
246 ProductionVariantAcceleratorType m_acceleratorType;
247 bool m_acceleratorTypeHasBeenSet = false;
248
250 bool m_variantStatusHasBeenSet = false;
251
252 ProductionVariantServerlessConfig m_currentServerlessConfig;
253 bool m_currentServerlessConfigHasBeenSet = false;
254
255 ProductionVariantServerlessConfig m_desiredServerlessConfig;
256 bool m_desiredServerlessConfigHasBeenSet = false;
257
258 ProductionVariantManagedInstanceScaling m_managedInstanceScaling;
259 bool m_managedInstanceScalingHasBeenSet = false;
260
261 ProductionVariantRoutingConfig m_routingConfig;
262 bool m_routingConfigHasBeenSet = false;
263 };
264
265} // namespace Model
266} // namespace SageMaker
267} // namespace Aws
AWS_SAGEMAKER_API PendingProductionVariantSummary(Aws::Utils::Json::JsonView jsonValue)
PendingProductionVariantSummary & WithAcceleratorType(const ProductionVariantAcceleratorType &value)
PendingProductionVariantSummary & AddDeployedImages(DeployedImage &&value)
void SetDesiredServerlessConfig(const ProductionVariantServerlessConfig &value)
void SetInstanceType(const ProductionVariantInstanceType &value)
void SetCurrentServerlessConfig(const ProductionVariantServerlessConfig &value)
PendingProductionVariantSummary & WithRoutingConfig(ProductionVariantRoutingConfig &&value)
const ProductionVariantRoutingConfig & GetRoutingConfig() const
const ProductionVariantAcceleratorType & GetAcceleratorType() const
PendingProductionVariantSummary & WithVariantName(Aws::String &&value)
PendingProductionVariantSummary & WithVariantName(const char *value)
PendingProductionVariantSummary & WithDesiredServerlessConfig(const ProductionVariantServerlessConfig &value)
void SetCurrentServerlessConfig(ProductionVariantServerlessConfig &&value)
PendingProductionVariantSummary & WithCurrentServerlessConfig(ProductionVariantServerlessConfig &&value)
PendingProductionVariantSummary & WithInstanceType(ProductionVariantInstanceType &&value)
PendingProductionVariantSummary & WithDesiredInstanceCount(int value)
const Aws::Vector< ProductionVariantStatus > & GetVariantStatus() const
PendingProductionVariantSummary & WithCurrentInstanceCount(int value)
PendingProductionVariantSummary & WithInstanceType(const ProductionVariantInstanceType &value)
PendingProductionVariantSummary & WithCurrentWeight(double value)
PendingProductionVariantSummary & WithVariantName(const Aws::String &value)
PendingProductionVariantSummary & WithCurrentServerlessConfig(const ProductionVariantServerlessConfig &value)
void SetVariantStatus(const Aws::Vector< ProductionVariantStatus > &value)
PendingProductionVariantSummary & WithManagedInstanceScaling(ProductionVariantManagedInstanceScaling &&value)
void SetManagedInstanceScaling(const ProductionVariantManagedInstanceScaling &value)
void SetDesiredServerlessConfig(ProductionVariantServerlessConfig &&value)
const ProductionVariantInstanceType & GetInstanceType() const
void SetManagedInstanceScaling(ProductionVariantManagedInstanceScaling &&value)
void SetAcceleratorType(ProductionVariantAcceleratorType &&value)
const Aws::Vector< DeployedImage > & GetDeployedImages() const
PendingProductionVariantSummary & WithAcceleratorType(ProductionVariantAcceleratorType &&value)
PendingProductionVariantSummary & WithVariantStatus(const Aws::Vector< ProductionVariantStatus > &value)
const ProductionVariantServerlessConfig & GetCurrentServerlessConfig() const
PendingProductionVariantSummary & WithDeployedImages(Aws::Vector< DeployedImage > &&value)
const ProductionVariantManagedInstanceScaling & GetManagedInstanceScaling() const
PendingProductionVariantSummary & AddVariantStatus(ProductionVariantStatus &&value)
void SetDeployedImages(const Aws::Vector< DeployedImage > &value)
void SetAcceleratorType(const ProductionVariantAcceleratorType &value)
PendingProductionVariantSummary & WithDesiredServerlessConfig(ProductionVariantServerlessConfig &&value)
void SetRoutingConfig(const ProductionVariantRoutingConfig &value)
PendingProductionVariantSummary & WithDesiredWeight(double value)
PendingProductionVariantSummary & WithRoutingConfig(const ProductionVariantRoutingConfig &value)
PendingProductionVariantSummary & WithVariantStatus(Aws::Vector< ProductionVariantStatus > &&value)
PendingProductionVariantSummary & AddDeployedImages(const DeployedImage &value)
PendingProductionVariantSummary & AddVariantStatus(const ProductionVariantStatus &value)
const ProductionVariantServerlessConfig & GetDesiredServerlessConfig() const
AWS_SAGEMAKER_API PendingProductionVariantSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVariantStatus(Aws::Vector< ProductionVariantStatus > &&value)
PendingProductionVariantSummary & WithManagedInstanceScaling(const ProductionVariantManagedInstanceScaling &value)
PendingProductionVariantSummary & WithDeployedImages(const Aws::Vector< DeployedImage > &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