AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
HyperParameterTuningResourceConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/HyperParameterTuningAllocationStrategy.h>
11#include <aws/sagemaker/model/HyperParameterTuningInstanceConfig.h>
12#include <aws/sagemaker/model/TrainingInstanceType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMaker {
24namespace Model {
25
43 public:
44 AWS_SAGEMAKER_API HyperParameterTuningResourceConfig() = default;
47 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
48
50
55 inline TrainingInstanceType GetInstanceType() const { return m_instanceType; }
56 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
58 m_instanceTypeHasBeenSet = true;
59 m_instanceType = value;
60 }
62 SetInstanceType(value);
63 return *this;
64 }
66
68
74 inline int GetInstanceCount() const { return m_instanceCount; }
75 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
76 inline void SetInstanceCount(int value) {
77 m_instanceCountHasBeenSet = true;
78 m_instanceCount = value;
79 }
81 SetInstanceCount(value);
82 return *this;
83 }
85
87
101 inline int GetVolumeSizeInGB() const { return m_volumeSizeInGB; }
102 inline bool VolumeSizeInGBHasBeenSet() const { return m_volumeSizeInGBHasBeenSet; }
103 inline void SetVolumeSizeInGB(int value) {
104 m_volumeSizeInGBHasBeenSet = true;
105 m_volumeSizeInGB = value;
106 }
108 SetVolumeSizeInGB(value);
109 return *this;
110 }
112
114
132 inline const Aws::String& GetVolumeKmsKeyId() const { return m_volumeKmsKeyId; }
133 inline bool VolumeKmsKeyIdHasBeenSet() const { return m_volumeKmsKeyIdHasBeenSet; }
134 template <typename VolumeKmsKeyIdT = Aws::String>
135 void SetVolumeKmsKeyId(VolumeKmsKeyIdT&& value) {
136 m_volumeKmsKeyIdHasBeenSet = true;
137 m_volumeKmsKeyId = std::forward<VolumeKmsKeyIdT>(value);
138 }
139 template <typename VolumeKmsKeyIdT = Aws::String>
141 SetVolumeKmsKeyId(std::forward<VolumeKmsKeyIdT>(value));
142 return *this;
143 }
145
147
151 inline HyperParameterTuningAllocationStrategy GetAllocationStrategy() const { return m_allocationStrategy; }
152 inline bool AllocationStrategyHasBeenSet() const { return m_allocationStrategyHasBeenSet; }
154 m_allocationStrategyHasBeenSet = true;
155 m_allocationStrategy = value;
156 }
159 return *this;
160 }
162
164
178 inline const Aws::Vector<HyperParameterTuningInstanceConfig>& GetInstanceConfigs() const { return m_instanceConfigs; }
179 inline bool InstanceConfigsHasBeenSet() const { return m_instanceConfigsHasBeenSet; }
180 template <typename InstanceConfigsT = Aws::Vector<HyperParameterTuningInstanceConfig>>
181 void SetInstanceConfigs(InstanceConfigsT&& value) {
182 m_instanceConfigsHasBeenSet = true;
183 m_instanceConfigs = std::forward<InstanceConfigsT>(value);
184 }
185 template <typename InstanceConfigsT = Aws::Vector<HyperParameterTuningInstanceConfig>>
187 SetInstanceConfigs(std::forward<InstanceConfigsT>(value));
188 return *this;
189 }
190 template <typename InstanceConfigsT = HyperParameterTuningInstanceConfig>
192 m_instanceConfigsHasBeenSet = true;
193 m_instanceConfigs.emplace_back(std::forward<InstanceConfigsT>(value));
194 return *this;
195 }
197 private:
199
200 int m_instanceCount{0};
201
202 int m_volumeSizeInGB{0};
203
204 Aws::String m_volumeKmsKeyId;
205
207
209 bool m_instanceTypeHasBeenSet = false;
210 bool m_instanceCountHasBeenSet = false;
211 bool m_volumeSizeInGBHasBeenSet = false;
212 bool m_volumeKmsKeyIdHasBeenSet = false;
213 bool m_allocationStrategyHasBeenSet = false;
214 bool m_instanceConfigsHasBeenSet = false;
215};
216
217} // namespace Model
218} // namespace SageMaker
219} // namespace Aws
void SetAllocationStrategy(HyperParameterTuningAllocationStrategy value)
HyperParameterTuningResourceConfig & WithInstanceType(TrainingInstanceType value)
AWS_SAGEMAKER_API HyperParameterTuningResourceConfig(Aws::Utils::Json::JsonView jsonValue)
HyperParameterTuningResourceConfig & WithVolumeKmsKeyId(VolumeKmsKeyIdT &&value)
AWS_SAGEMAKER_API HyperParameterTuningResourceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
HyperParameterTuningResourceConfig & WithInstanceConfigs(InstanceConfigsT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
HyperParameterTuningResourceConfig & WithAllocationStrategy(HyperParameterTuningAllocationStrategy value)
AWS_SAGEMAKER_API HyperParameterTuningResourceConfig()=default
const Aws::Vector< HyperParameterTuningInstanceConfig > & GetInstanceConfigs() const
HyperParameterTuningResourceConfig & AddInstanceConfigs(InstanceConfigsT &&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