AWS SDK for C++  1.9.153
AWS SDK for C++
ProductionVariant.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace SageMaker
25 {
26 namespace Model
27 {
28 
38  {
39  public:
44 
45 
49  inline const Aws::String& GetVariantName() const{ return m_variantName; }
50 
54  inline bool VariantNameHasBeenSet() const { return m_variantNameHasBeenSet; }
55 
59  inline void SetVariantName(const Aws::String& value) { m_variantNameHasBeenSet = true; m_variantName = value; }
60 
64  inline void SetVariantName(Aws::String&& value) { m_variantNameHasBeenSet = true; m_variantName = std::move(value); }
65 
69  inline void SetVariantName(const char* value) { m_variantNameHasBeenSet = true; m_variantName.assign(value); }
70 
74  inline ProductionVariant& WithVariantName(const Aws::String& value) { SetVariantName(value); return *this;}
75 
79  inline ProductionVariant& WithVariantName(Aws::String&& value) { SetVariantName(std::move(value)); return *this;}
80 
84  inline ProductionVariant& WithVariantName(const char* value) { SetVariantName(value); return *this;}
85 
86 
91  inline const Aws::String& GetModelName() const{ return m_modelName; }
92 
97  inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
98 
103  inline void SetModelName(const Aws::String& value) { m_modelNameHasBeenSet = true; m_modelName = value; }
104 
109  inline void SetModelName(Aws::String&& value) { m_modelNameHasBeenSet = true; m_modelName = std::move(value); }
110 
115  inline void SetModelName(const char* value) { m_modelNameHasBeenSet = true; m_modelName.assign(value); }
116 
121  inline ProductionVariant& WithModelName(const Aws::String& value) { SetModelName(value); return *this;}
122 
127  inline ProductionVariant& WithModelName(Aws::String&& value) { SetModelName(std::move(value)); return *this;}
128 
133  inline ProductionVariant& WithModelName(const char* value) { SetModelName(value); return *this;}
134 
135 
139  inline int GetInitialInstanceCount() const{ return m_initialInstanceCount; }
140 
144  inline bool InitialInstanceCountHasBeenSet() const { return m_initialInstanceCountHasBeenSet; }
145 
149  inline void SetInitialInstanceCount(int value) { m_initialInstanceCountHasBeenSet = true; m_initialInstanceCount = value; }
150 
154  inline ProductionVariant& WithInitialInstanceCount(int value) { SetInitialInstanceCount(value); return *this;}
155 
156 
160  inline const ProductionVariantInstanceType& GetInstanceType() const{ return m_instanceType; }
161 
165  inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
166 
170  inline void SetInstanceType(const ProductionVariantInstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
171 
175  inline void SetInstanceType(ProductionVariantInstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
176 
180  inline ProductionVariant& WithInstanceType(const ProductionVariantInstanceType& value) { SetInstanceType(value); return *this;}
181 
185  inline ProductionVariant& WithInstanceType(ProductionVariantInstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
186 
187 
195  inline double GetInitialVariantWeight() const{ return m_initialVariantWeight; }
196 
204  inline bool InitialVariantWeightHasBeenSet() const { return m_initialVariantWeightHasBeenSet; }
205 
213  inline void SetInitialVariantWeight(double value) { m_initialVariantWeightHasBeenSet = true; m_initialVariantWeight = value; }
214 
222  inline ProductionVariant& WithInitialVariantWeight(double value) { SetInitialVariantWeight(value); return *this;}
223 
224 
232  inline const ProductionVariantAcceleratorType& GetAcceleratorType() const{ return m_acceleratorType; }
233 
241  inline bool AcceleratorTypeHasBeenSet() const { return m_acceleratorTypeHasBeenSet; }
242 
250  inline void SetAcceleratorType(const ProductionVariantAcceleratorType& value) { m_acceleratorTypeHasBeenSet = true; m_acceleratorType = value; }
251 
259  inline void SetAcceleratorType(ProductionVariantAcceleratorType&& value) { m_acceleratorTypeHasBeenSet = true; m_acceleratorType = std::move(value); }
260 
268  inline ProductionVariant& WithAcceleratorType(const ProductionVariantAcceleratorType& value) { SetAcceleratorType(value); return *this;}
269 
277  inline ProductionVariant& WithAcceleratorType(ProductionVariantAcceleratorType&& value) { SetAcceleratorType(std::move(value)); return *this;}
278 
279 
284  inline const ProductionVariantCoreDumpConfig& GetCoreDumpConfig() const{ return m_coreDumpConfig; }
285 
290  inline bool CoreDumpConfigHasBeenSet() const { return m_coreDumpConfigHasBeenSet; }
291 
296  inline void SetCoreDumpConfig(const ProductionVariantCoreDumpConfig& value) { m_coreDumpConfigHasBeenSet = true; m_coreDumpConfig = value; }
297 
302  inline void SetCoreDumpConfig(ProductionVariantCoreDumpConfig&& value) { m_coreDumpConfigHasBeenSet = true; m_coreDumpConfig = std::move(value); }
303 
308  inline ProductionVariant& WithCoreDumpConfig(const ProductionVariantCoreDumpConfig& value) { SetCoreDumpConfig(value); return *this;}
309 
314  inline ProductionVariant& WithCoreDumpConfig(ProductionVariantCoreDumpConfig&& value) { SetCoreDumpConfig(std::move(value)); return *this;}
315 
316  private:
317 
318  Aws::String m_variantName;
319  bool m_variantNameHasBeenSet;
320 
321  Aws::String m_modelName;
322  bool m_modelNameHasBeenSet;
323 
324  int m_initialInstanceCount;
325  bool m_initialInstanceCountHasBeenSet;
326 
327  ProductionVariantInstanceType m_instanceType;
328  bool m_instanceTypeHasBeenSet;
329 
330  double m_initialVariantWeight;
331  bool m_initialVariantWeightHasBeenSet;
332 
333  ProductionVariantAcceleratorType m_acceleratorType;
334  bool m_acceleratorTypeHasBeenSet;
335 
336  ProductionVariantCoreDumpConfig m_coreDumpConfig;
337  bool m_coreDumpConfigHasBeenSet;
338  };
339 
340 } // namespace Model
341 } // namespace SageMaker
342 } // namespace Aws
ProductionVariantInstanceType.h
Aws::SageMaker::Model::ProductionVariant::WithAcceleratorType
ProductionVariant & WithAcceleratorType(ProductionVariantAcceleratorType &&value)
Definition: ProductionVariant.h:277
Aws::SageMaker::Model::ProductionVariantAcceleratorType
ProductionVariantAcceleratorType
Definition: ProductionVariantAcceleratorType.h:17
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::ProductionVariant::WithAcceleratorType
ProductionVariant & WithAcceleratorType(const ProductionVariantAcceleratorType &value)
Definition: ProductionVariant.h:268
SageMaker_EXPORTS.h
Aws::SageMaker::Model::ProductionVariant::WithCoreDumpConfig
ProductionVariant & WithCoreDumpConfig(const ProductionVariantCoreDumpConfig &value)
Definition: ProductionVariant.h:308
Aws::SageMaker::Model::ProductionVariant::GetInitialInstanceCount
int GetInitialInstanceCount() const
Definition: ProductionVariant.h:139
Aws::SageMaker::Model::ProductionVariantCoreDumpConfig
Definition: ProductionVariantCoreDumpConfig.h:33
Aws::SageMaker::Model::ProductionVariant::WithInitialInstanceCount
ProductionVariant & WithInitialInstanceCount(int value)
Definition: ProductionVariant.h:154
ProductionVariantCoreDumpConfig.h
Aws::SageMaker::Model::ProductionVariant::operator=
ProductionVariant & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::ProductionVariant::SetAcceleratorType
void SetAcceleratorType(const ProductionVariantAcceleratorType &value)
Definition: ProductionVariant.h:250
Aws::SageMaker::Model::ProductionVariant::SetCoreDumpConfig
void SetCoreDumpConfig(const ProductionVariantCoreDumpConfig &value)
Definition: ProductionVariant.h:296
Aws::SageMaker::Model::ProductionVariant::SetModelName
void SetModelName(const char *value)
Definition: ProductionVariant.h:115
Aws::SageMaker::Model::ProductionVariant::AcceleratorTypeHasBeenSet
bool AcceleratorTypeHasBeenSet() const
Definition: ProductionVariant.h:241
Aws::SageMaker::Model::ProductionVariant::GetInstanceType
const ProductionVariantInstanceType & GetInstanceType() const
Definition: ProductionVariant.h:160
ProductionVariantAcceleratorType.h
Aws::SageMaker::Model::ProductionVariant::ProductionVariant
ProductionVariant()
Aws::SageMaker::Model::ProductionVariant::SetAcceleratorType
void SetAcceleratorType(ProductionVariantAcceleratorType &&value)
Definition: ProductionVariant.h:259
Aws::SageMaker::Model::ProductionVariant::SetModelName
void SetModelName(const Aws::String &value)
Definition: ProductionVariant.h:103
Aws::SageMaker::Model::ProductionVariant::ModelNameHasBeenSet
bool ModelNameHasBeenSet() const
Definition: ProductionVariant.h:97
Aws::SageMaker::Model::ProductionVariant
Definition: ProductionVariant.h:38
Aws::SageMaker::Model::ProductionVariant::GetCoreDumpConfig
const ProductionVariantCoreDumpConfig & GetCoreDumpConfig() const
Definition: ProductionVariant.h:284
Aws::SageMaker::Model::ProductionVariant::GetInitialVariantWeight
double GetInitialVariantWeight() const
Definition: ProductionVariant.h:195
Aws::SageMaker::Model::ProductionVariant::SetInitialVariantWeight
void SetInitialVariantWeight(double value)
Definition: ProductionVariant.h:213
Aws::SageMaker::Model::ProductionVariant::ProductionVariant
ProductionVariant(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::ProductionVariant::SetModelName
void SetModelName(Aws::String &&value)
Definition: ProductionVariant.h:109
Aws::SageMaker::Model::ProductionVariant::SetVariantName
void SetVariantName(const char *value)
Definition: ProductionVariant.h:69
Aws::SageMaker::Model::ProductionVariant::WithInstanceType
ProductionVariant & WithInstanceType(const ProductionVariantInstanceType &value)
Definition: ProductionVariant.h:180
Aws::SageMaker::Model::ProductionVariant::WithVariantName
ProductionVariant & WithVariantName(const Aws::String &value)
Definition: ProductionVariant.h:74
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::ProductionVariant::SetCoreDumpConfig
void SetCoreDumpConfig(ProductionVariantCoreDumpConfig &&value)
Definition: ProductionVariant.h:302
Aws::SageMaker::Model::ProductionVariant::WithCoreDumpConfig
ProductionVariant & WithCoreDumpConfig(ProductionVariantCoreDumpConfig &&value)
Definition: ProductionVariant.h:314
Aws::SageMaker::Model::ProductionVariant::CoreDumpConfigHasBeenSet
bool CoreDumpConfigHasBeenSet() const
Definition: ProductionVariant.h:290
Aws::SageMaker::Model::ProductionVariant::WithInitialVariantWeight
ProductionVariant & WithInitialVariantWeight(double value)
Definition: ProductionVariant.h:222
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SageMaker::Model::ProductionVariant::GetAcceleratorType
const ProductionVariantAcceleratorType & GetAcceleratorType() const
Definition: ProductionVariant.h:232
Aws::SageMaker::Model::ProductionVariant::SetInstanceType
void SetInstanceType(ProductionVariantInstanceType &&value)
Definition: ProductionVariant.h:175
Aws::SageMaker::Model::ProductionVariant::SetInstanceType
void SetInstanceType(const ProductionVariantInstanceType &value)
Definition: ProductionVariant.h:170
Aws::SageMaker::Model::ProductionVariant::InstanceTypeHasBeenSet
bool InstanceTypeHasBeenSet() const
Definition: ProductionVariant.h:165
Aws::SageMaker::Model::ProductionVariant::WithVariantName
ProductionVariant & WithVariantName(const char *value)
Definition: ProductionVariant.h:84
Aws::SageMaker::Model::ProductionVariant::InitialVariantWeightHasBeenSet
bool InitialVariantWeightHasBeenSet() const
Definition: ProductionVariant.h:204
Aws::SageMaker::Model::ProductionVariant::GetModelName
const Aws::String & GetModelName() const
Definition: ProductionVariant.h:91
Aws::SageMaker::Model::ProductionVariant::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SageMaker::Model::ProductionVariant::WithModelName
ProductionVariant & WithModelName(const char *value)
Definition: ProductionVariant.h:133
Aws::SageMaker::Model::ProductionVariant::VariantNameHasBeenSet
bool VariantNameHasBeenSet() const
Definition: ProductionVariant.h:54
Aws::SageMaker::Model::ProductionVariantInstanceType
ProductionVariantInstanceType
Definition: ProductionVariantInstanceType.h:17
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::ProductionVariant::WithInstanceType
ProductionVariant & WithInstanceType(ProductionVariantInstanceType &&value)
Definition: ProductionVariant.h:185
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::ProductionVariant::InitialInstanceCountHasBeenSet
bool InitialInstanceCountHasBeenSet() const
Definition: ProductionVariant.h:144
Aws::SageMaker::Model::ProductionVariant::SetInitialInstanceCount
void SetInitialInstanceCount(int value)
Definition: ProductionVariant.h:149
Aws::SageMaker::Model::ProductionVariant::WithModelName
ProductionVariant & WithModelName(const Aws::String &value)
Definition: ProductionVariant.h:121
Aws::SageMaker::Model::ProductionVariant::GetVariantName
const Aws::String & GetVariantName() const
Definition: ProductionVariant.h:49
Aws::SageMaker::Model::ProductionVariant::WithModelName
ProductionVariant & WithModelName(Aws::String &&value)
Definition: ProductionVariant.h:127
Aws::SageMaker::Model::ProductionVariant::SetVariantName
void SetVariantName(Aws::String &&value)
Definition: ProductionVariant.h:64
Aws::SageMaker::Model::ProductionVariant::WithVariantName
ProductionVariant & WithVariantName(Aws::String &&value)
Definition: ProductionVariant.h:79
Aws::SageMaker::Model::ProductionVariant::SetVariantName
void SetVariantName(const Aws::String &value)
Definition: ProductionVariant.h:59