AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
HyperParameterTuningInstanceConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/TrainingInstanceType.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SageMaker {
20namespace Model {
21
32 public:
33 AWS_SAGEMAKER_API HyperParameterTuningInstanceConfig() = default;
36 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
48 inline TrainingInstanceType GetInstanceType() const { return m_instanceType; }
49 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
51 m_instanceTypeHasBeenSet = true;
52 m_instanceType = value;
53 }
55 SetInstanceType(value);
56 return *this;
57 }
59
61
69 inline int GetInstanceCount() const { return m_instanceCount; }
70 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
71 inline void SetInstanceCount(int value) {
72 m_instanceCountHasBeenSet = true;
73 m_instanceCount = value;
74 }
76 SetInstanceCount(value);
77 return *this;
78 }
80
82
86 inline int GetVolumeSizeInGB() const { return m_volumeSizeInGB; }
87 inline bool VolumeSizeInGBHasBeenSet() const { return m_volumeSizeInGBHasBeenSet; }
88 inline void SetVolumeSizeInGB(int value) {
89 m_volumeSizeInGBHasBeenSet = true;
90 m_volumeSizeInGB = value;
91 }
93 SetVolumeSizeInGB(value);
94 return *this;
95 }
97 private:
99
100 int m_instanceCount{0};
101
102 int m_volumeSizeInGB{0};
103 bool m_instanceTypeHasBeenSet = false;
104 bool m_instanceCountHasBeenSet = false;
105 bool m_volumeSizeInGBHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace SageMaker
110} // namespace Aws
AWS_SAGEMAKER_API HyperParameterTuningInstanceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API HyperParameterTuningInstanceConfig()=default
AWS_SAGEMAKER_API HyperParameterTuningInstanceConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
HyperParameterTuningInstanceConfig & WithInstanceType(TrainingInstanceType value)
Aws::Utils::Json::JsonValue JsonValue