AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
HyperParameterTuningResourceConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/TrainingInstanceType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker/model/HyperParameterTuningAllocationStrategy.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/sagemaker/model/HyperParameterTuningInstanceConfig.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SageMaker
26{
27namespace Model
28{
29
47 {
48 public:
49 AWS_SAGEMAKER_API HyperParameterTuningResourceConfig() = default;
52 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
53
54
56
61 inline TrainingInstanceType GetInstanceType() const { return m_instanceType; }
62 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
63 inline void SetInstanceType(TrainingInstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
66
68
74 inline int GetInstanceCount() const { return m_instanceCount; }
75 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
76 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
77 inline HyperParameterTuningResourceConfig& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
79
81
95 inline int GetVolumeSizeInGB() const { return m_volumeSizeInGB; }
96 inline bool VolumeSizeInGBHasBeenSet() const { return m_volumeSizeInGBHasBeenSet; }
97 inline void SetVolumeSizeInGB(int value) { m_volumeSizeInGBHasBeenSet = true; m_volumeSizeInGB = value; }
100
102
120 inline const Aws::String& GetVolumeKmsKeyId() const { return m_volumeKmsKeyId; }
121 inline bool VolumeKmsKeyIdHasBeenSet() const { return m_volumeKmsKeyIdHasBeenSet; }
122 template<typename VolumeKmsKeyIdT = Aws::String>
123 void SetVolumeKmsKeyId(VolumeKmsKeyIdT&& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = std::forward<VolumeKmsKeyIdT>(value); }
124 template<typename VolumeKmsKeyIdT = Aws::String>
125 HyperParameterTuningResourceConfig& WithVolumeKmsKeyId(VolumeKmsKeyIdT&& value) { SetVolumeKmsKeyId(std::forward<VolumeKmsKeyIdT>(value)); return *this;}
127
129
133 inline HyperParameterTuningAllocationStrategy GetAllocationStrategy() const { return m_allocationStrategy; }
134 inline bool AllocationStrategyHasBeenSet() const { return m_allocationStrategyHasBeenSet; }
135 inline void SetAllocationStrategy(HyperParameterTuningAllocationStrategy value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = value; }
138
140
154 inline const Aws::Vector<HyperParameterTuningInstanceConfig>& GetInstanceConfigs() const { return m_instanceConfigs; }
155 inline bool InstanceConfigsHasBeenSet() const { return m_instanceConfigsHasBeenSet; }
156 template<typename InstanceConfigsT = Aws::Vector<HyperParameterTuningInstanceConfig>>
157 void SetInstanceConfigs(InstanceConfigsT&& value) { m_instanceConfigsHasBeenSet = true; m_instanceConfigs = std::forward<InstanceConfigsT>(value); }
158 template<typename InstanceConfigsT = Aws::Vector<HyperParameterTuningInstanceConfig>>
159 HyperParameterTuningResourceConfig& WithInstanceConfigs(InstanceConfigsT&& value) { SetInstanceConfigs(std::forward<InstanceConfigsT>(value)); return *this;}
160 template<typename InstanceConfigsT = HyperParameterTuningInstanceConfig>
161 HyperParameterTuningResourceConfig& AddInstanceConfigs(InstanceConfigsT&& value) { m_instanceConfigsHasBeenSet = true; m_instanceConfigs.emplace_back(std::forward<InstanceConfigsT>(value)); return *this; }
163 private:
164
166 bool m_instanceTypeHasBeenSet = false;
167
168 int m_instanceCount{0};
169 bool m_instanceCountHasBeenSet = false;
170
171 int m_volumeSizeInGB{0};
172 bool m_volumeSizeInGBHasBeenSet = false;
173
174 Aws::String m_volumeKmsKeyId;
175 bool m_volumeKmsKeyIdHasBeenSet = false;
176
178 bool m_allocationStrategyHasBeenSet = false;
179
181 bool m_instanceConfigsHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace SageMaker
186} // 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