AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ProductionVariant.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/model/ProductionVariantInstanceType.h>
10#include <aws/sagemaker/model/ProductionVariantAcceleratorType.h>
11#include <aws/sagemaker/model/ProductionVariantCoreDumpConfig.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/ProductionVariantInferenceAmiVersion.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
44 {
45 public:
46 AWS_SAGEMAKER_API ProductionVariant();
47 AWS_SAGEMAKER_API ProductionVariant(Aws::Utils::Json::JsonView jsonValue);
49 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
56 inline const Aws::String& GetVariantName() const{ return m_variantName; }
57 inline bool VariantNameHasBeenSet() const { return m_variantNameHasBeenSet; }
58 inline void SetVariantName(const Aws::String& value) { m_variantNameHasBeenSet = true; m_variantName = value; }
59 inline void SetVariantName(Aws::String&& value) { m_variantNameHasBeenSet = true; m_variantName = std::move(value); }
60 inline void SetVariantName(const char* value) { m_variantNameHasBeenSet = true; m_variantName.assign(value); }
61 inline ProductionVariant& WithVariantName(const Aws::String& value) { SetVariantName(value); return *this;}
62 inline ProductionVariant& WithVariantName(Aws::String&& value) { SetVariantName(std::move(value)); return *this;}
63 inline ProductionVariant& WithVariantName(const char* value) { SetVariantName(value); return *this;}
65
67
71 inline const Aws::String& GetModelName() const{ return m_modelName; }
72 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
73 inline void SetModelName(const Aws::String& value) { m_modelNameHasBeenSet = true; m_modelName = value; }
74 inline void SetModelName(Aws::String&& value) { m_modelNameHasBeenSet = true; m_modelName = std::move(value); }
75 inline void SetModelName(const char* value) { m_modelNameHasBeenSet = true; m_modelName.assign(value); }
76 inline ProductionVariant& WithModelName(const Aws::String& value) { SetModelName(value); return *this;}
77 inline ProductionVariant& WithModelName(Aws::String&& value) { SetModelName(std::move(value)); return *this;}
78 inline ProductionVariant& WithModelName(const char* value) { SetModelName(value); return *this;}
80
82
85 inline int GetInitialInstanceCount() const{ return m_initialInstanceCount; }
86 inline bool InitialInstanceCountHasBeenSet() const { return m_initialInstanceCountHasBeenSet; }
87 inline void SetInitialInstanceCount(int value) { m_initialInstanceCountHasBeenSet = true; m_initialInstanceCount = value; }
88 inline ProductionVariant& WithInitialInstanceCount(int value) { SetInitialInstanceCount(value); return *this;}
90
92
95 inline const ProductionVariantInstanceType& GetInstanceType() const{ return m_instanceType; }
96 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
97 inline void SetInstanceType(const ProductionVariantInstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
98 inline void SetInstanceType(ProductionVariantInstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
100 inline ProductionVariant& WithInstanceType(ProductionVariantInstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
102
104
111 inline double GetInitialVariantWeight() const{ return m_initialVariantWeight; }
112 inline bool InitialVariantWeightHasBeenSet() const { return m_initialVariantWeightHasBeenSet; }
113 inline void SetInitialVariantWeight(double value) { m_initialVariantWeightHasBeenSet = true; m_initialVariantWeight = value; }
114 inline ProductionVariant& WithInitialVariantWeight(double value) { SetInitialVariantWeight(value); return *this;}
116
118
123 inline const ProductionVariantAcceleratorType& GetAcceleratorType() const{ return m_acceleratorType; }
124 inline bool AcceleratorTypeHasBeenSet() const { return m_acceleratorTypeHasBeenSet; }
125 inline void SetAcceleratorType(const ProductionVariantAcceleratorType& value) { m_acceleratorTypeHasBeenSet = true; m_acceleratorType = value; }
126 inline void SetAcceleratorType(ProductionVariantAcceleratorType&& value) { m_acceleratorTypeHasBeenSet = true; m_acceleratorType = std::move(value); }
130
132
136 inline const ProductionVariantCoreDumpConfig& GetCoreDumpConfig() const{ return m_coreDumpConfig; }
137 inline bool CoreDumpConfigHasBeenSet() const { return m_coreDumpConfigHasBeenSet; }
138 inline void SetCoreDumpConfig(const ProductionVariantCoreDumpConfig& value) { m_coreDumpConfigHasBeenSet = true; m_coreDumpConfig = value; }
139 inline void SetCoreDumpConfig(ProductionVariantCoreDumpConfig&& value) { m_coreDumpConfigHasBeenSet = true; m_coreDumpConfig = std::move(value); }
143
145
149 inline const ProductionVariantServerlessConfig& GetServerlessConfig() const{ return m_serverlessConfig; }
150 inline bool ServerlessConfigHasBeenSet() const { return m_serverlessConfigHasBeenSet; }
151 inline void SetServerlessConfig(const ProductionVariantServerlessConfig& value) { m_serverlessConfigHasBeenSet = true; m_serverlessConfig = value; }
152 inline void SetServerlessConfig(ProductionVariantServerlessConfig&& value) { m_serverlessConfigHasBeenSet = true; m_serverlessConfig = std::move(value); }
156
158
163 inline int GetVolumeSizeInGB() const{ return m_volumeSizeInGB; }
164 inline bool VolumeSizeInGBHasBeenSet() const { return m_volumeSizeInGBHasBeenSet; }
165 inline void SetVolumeSizeInGB(int value) { m_volumeSizeInGBHasBeenSet = true; m_volumeSizeInGB = value; }
166 inline ProductionVariant& WithVolumeSizeInGB(int value) { SetVolumeSizeInGB(value); return *this;}
168
170
175 inline int GetModelDataDownloadTimeoutInSeconds() const{ return m_modelDataDownloadTimeoutInSeconds; }
176 inline bool ModelDataDownloadTimeoutInSecondsHasBeenSet() const { return m_modelDataDownloadTimeoutInSecondsHasBeenSet; }
177 inline void SetModelDataDownloadTimeoutInSeconds(int value) { m_modelDataDownloadTimeoutInSecondsHasBeenSet = true; m_modelDataDownloadTimeoutInSeconds = value; }
180
182
188 inline int GetContainerStartupHealthCheckTimeoutInSeconds() const{ return m_containerStartupHealthCheckTimeoutInSeconds; }
189 inline bool ContainerStartupHealthCheckTimeoutInSecondsHasBeenSet() const { return m_containerStartupHealthCheckTimeoutInSecondsHasBeenSet; }
190 inline void SetContainerStartupHealthCheckTimeoutInSeconds(int value) { m_containerStartupHealthCheckTimeoutInSecondsHasBeenSet = true; m_containerStartupHealthCheckTimeoutInSeconds = value; }
193
195
203 inline bool GetEnableSSMAccess() const{ return m_enableSSMAccess; }
204 inline bool EnableSSMAccessHasBeenSet() const { return m_enableSSMAccessHasBeenSet; }
205 inline void SetEnableSSMAccess(bool value) { m_enableSSMAccessHasBeenSet = true; m_enableSSMAccess = value; }
206 inline ProductionVariant& WithEnableSSMAccess(bool value) { SetEnableSSMAccess(value); return *this;}
208
210
214 inline const ProductionVariantManagedInstanceScaling& GetManagedInstanceScaling() const{ return m_managedInstanceScaling; }
215 inline bool ManagedInstanceScalingHasBeenSet() const { return m_managedInstanceScalingHasBeenSet; }
216 inline void SetManagedInstanceScaling(const ProductionVariantManagedInstanceScaling& value) { m_managedInstanceScalingHasBeenSet = true; m_managedInstanceScaling = value; }
217 inline void SetManagedInstanceScaling(ProductionVariantManagedInstanceScaling&& value) { m_managedInstanceScalingHasBeenSet = true; m_managedInstanceScaling = std::move(value); }
221
223
227 inline const ProductionVariantRoutingConfig& GetRoutingConfig() const{ return m_routingConfig; }
228 inline bool RoutingConfigHasBeenSet() const { return m_routingConfigHasBeenSet; }
229 inline void SetRoutingConfig(const ProductionVariantRoutingConfig& value) { m_routingConfigHasBeenSet = true; m_routingConfig = value; }
230 inline void SetRoutingConfig(ProductionVariantRoutingConfig&& value) { m_routingConfigHasBeenSet = true; m_routingConfig = std::move(value); }
232 inline ProductionVariant& WithRoutingConfig(ProductionVariantRoutingConfig&& value) { SetRoutingConfig(std::move(value)); return *this;}
234
236
251 inline const ProductionVariantInferenceAmiVersion& GetInferenceAmiVersion() const{ return m_inferenceAmiVersion; }
252 inline bool InferenceAmiVersionHasBeenSet() const { return m_inferenceAmiVersionHasBeenSet; }
253 inline void SetInferenceAmiVersion(const ProductionVariantInferenceAmiVersion& value) { m_inferenceAmiVersionHasBeenSet = true; m_inferenceAmiVersion = value; }
254 inline void SetInferenceAmiVersion(ProductionVariantInferenceAmiVersion&& value) { m_inferenceAmiVersionHasBeenSet = true; m_inferenceAmiVersion = std::move(value); }
258 private:
259
260 Aws::String m_variantName;
261 bool m_variantNameHasBeenSet = false;
262
263 Aws::String m_modelName;
264 bool m_modelNameHasBeenSet = false;
265
266 int m_initialInstanceCount;
267 bool m_initialInstanceCountHasBeenSet = false;
268
269 ProductionVariantInstanceType m_instanceType;
270 bool m_instanceTypeHasBeenSet = false;
271
272 double m_initialVariantWeight;
273 bool m_initialVariantWeightHasBeenSet = false;
274
275 ProductionVariantAcceleratorType m_acceleratorType;
276 bool m_acceleratorTypeHasBeenSet = false;
277
278 ProductionVariantCoreDumpConfig m_coreDumpConfig;
279 bool m_coreDumpConfigHasBeenSet = false;
280
281 ProductionVariantServerlessConfig m_serverlessConfig;
282 bool m_serverlessConfigHasBeenSet = false;
283
284 int m_volumeSizeInGB;
285 bool m_volumeSizeInGBHasBeenSet = false;
286
287 int m_modelDataDownloadTimeoutInSeconds;
288 bool m_modelDataDownloadTimeoutInSecondsHasBeenSet = false;
289
290 int m_containerStartupHealthCheckTimeoutInSeconds;
291 bool m_containerStartupHealthCheckTimeoutInSecondsHasBeenSet = false;
292
293 bool m_enableSSMAccess;
294 bool m_enableSSMAccessHasBeenSet = false;
295
296 ProductionVariantManagedInstanceScaling m_managedInstanceScaling;
297 bool m_managedInstanceScalingHasBeenSet = false;
298
299 ProductionVariantRoutingConfig m_routingConfig;
300 bool m_routingConfigHasBeenSet = false;
301
302 ProductionVariantInferenceAmiVersion m_inferenceAmiVersion;
303 bool m_inferenceAmiVersionHasBeenSet = false;
304 };
305
306} // namespace Model
307} // namespace SageMaker
308} // namespace Aws
const Aws::String & GetVariantName() const
void SetManagedInstanceScaling(const ProductionVariantManagedInstanceScaling &value)
const ProductionVariantRoutingConfig & GetRoutingConfig() const
const Aws::String & GetModelName() const
void SetAcceleratorType(const ProductionVariantAcceleratorType &value)
const ProductionVariantServerlessConfig & GetServerlessConfig() const
ProductionVariant & WithInitialInstanceCount(int value)
void SetInferenceAmiVersion(ProductionVariantInferenceAmiVersion &&value)
void SetRoutingConfig(const ProductionVariantRoutingConfig &value)
ProductionVariant & WithVariantName(const Aws::String &value)
ProductionVariant & WithInferenceAmiVersion(ProductionVariantInferenceAmiVersion &&value)
void SetCoreDumpConfig(ProductionVariantCoreDumpConfig &&value)
const ProductionVariantManagedInstanceScaling & GetManagedInstanceScaling() const
ProductionVariant & WithContainerStartupHealthCheckTimeoutInSeconds(int value)
ProductionVariant & WithInitialVariantWeight(double value)
ProductionVariant & WithInferenceAmiVersion(const ProductionVariantInferenceAmiVersion &value)
ProductionVariant & WithVariantName(const char *value)
ProductionVariant & WithRoutingConfig(const ProductionVariantRoutingConfig &value)
ProductionVariant & WithModelName(const Aws::String &value)
void SetAcceleratorType(ProductionVariantAcceleratorType &&value)
AWS_SAGEMAKER_API ProductionVariant & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetManagedInstanceScaling(ProductionVariantManagedInstanceScaling &&value)
const ProductionVariantInferenceAmiVersion & GetInferenceAmiVersion() const
ProductionVariant & WithVolumeSizeInGB(int value)
void SetInstanceType(const ProductionVariantInstanceType &value)
ProductionVariant & WithModelName(Aws::String &&value)
ProductionVariant & WithModelDataDownloadTimeoutInSeconds(int value)
ProductionVariant & WithRoutingConfig(ProductionVariantRoutingConfig &&value)
ProductionVariant & WithManagedInstanceScaling(const ProductionVariantManagedInstanceScaling &value)
const ProductionVariantAcceleratorType & GetAcceleratorType() const
AWS_SAGEMAKER_API ProductionVariant(Aws::Utils::Json::JsonView jsonValue)
void SetServerlessConfig(ProductionVariantServerlessConfig &&value)
ProductionVariant & WithVariantName(Aws::String &&value)
void SetVariantName(const Aws::String &value)
ProductionVariant & WithCoreDumpConfig(ProductionVariantCoreDumpConfig &&value)
const ProductionVariantCoreDumpConfig & GetCoreDumpConfig() const
void SetModelName(const Aws::String &value)
ProductionVariant & WithCoreDumpConfig(const ProductionVariantCoreDumpConfig &value)
ProductionVariant & WithModelName(const char *value)
ProductionVariant & WithEnableSSMAccess(bool value)
ProductionVariant & WithServerlessConfig(ProductionVariantServerlessConfig &&value)
ProductionVariant & WithAcceleratorType(ProductionVariantAcceleratorType &&value)
ProductionVariant & WithAcceleratorType(const ProductionVariantAcceleratorType &value)
void SetRoutingConfig(ProductionVariantRoutingConfig &&value)
const ProductionVariantInstanceType & GetInstanceType() const
ProductionVariant & WithInstanceType(ProductionVariantInstanceType &&value)
void SetInstanceType(ProductionVariantInstanceType &&value)
void SetCoreDumpConfig(const ProductionVariantCoreDumpConfig &value)
void SetInferenceAmiVersion(const ProductionVariantInferenceAmiVersion &value)
ProductionVariant & WithInstanceType(const ProductionVariantInstanceType &value)
ProductionVariant & WithManagedInstanceScaling(ProductionVariantManagedInstanceScaling &&value)
ProductionVariant & WithServerlessConfig(const ProductionVariantServerlessConfig &value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetServerlessConfig(const ProductionVariantServerlessConfig &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue