AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
52 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
53
54
56
61 inline const TrainingInstanceType& GetInstanceType() const{ return m_instanceType; }
62 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
63 inline void SetInstanceType(const TrainingInstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
64 inline void SetInstanceType(TrainingInstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
68
70
76 inline int GetInstanceCount() const{ return m_instanceCount; }
77 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
78 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
79 inline HyperParameterTuningResourceConfig& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
81
83
97 inline int GetVolumeSizeInGB() const{ return m_volumeSizeInGB; }
98 inline bool VolumeSizeInGBHasBeenSet() const { return m_volumeSizeInGBHasBeenSet; }
99 inline void SetVolumeSizeInGB(int value) { m_volumeSizeInGBHasBeenSet = true; m_volumeSizeInGB = value; }
102
104
122 inline const Aws::String& GetVolumeKmsKeyId() const{ return m_volumeKmsKeyId; }
123 inline bool VolumeKmsKeyIdHasBeenSet() const { return m_volumeKmsKeyIdHasBeenSet; }
124 inline void SetVolumeKmsKeyId(const Aws::String& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = value; }
125 inline void SetVolumeKmsKeyId(Aws::String&& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = std::move(value); }
126 inline void SetVolumeKmsKeyId(const char* value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId.assign(value); }
128 inline HyperParameterTuningResourceConfig& WithVolumeKmsKeyId(Aws::String&& value) { SetVolumeKmsKeyId(std::move(value)); return *this;}
129 inline HyperParameterTuningResourceConfig& WithVolumeKmsKeyId(const char* value) { SetVolumeKmsKeyId(value); return *this;}
131
133
137 inline const HyperParameterTuningAllocationStrategy& GetAllocationStrategy() const{ return m_allocationStrategy; }
138 inline bool AllocationStrategyHasBeenSet() const { return m_allocationStrategyHasBeenSet; }
139 inline void SetAllocationStrategy(const HyperParameterTuningAllocationStrategy& value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = value; }
140 inline void SetAllocationStrategy(HyperParameterTuningAllocationStrategy&& value) { m_allocationStrategyHasBeenSet = true; m_allocationStrategy = std::move(value); }
144
146
160 inline const Aws::Vector<HyperParameterTuningInstanceConfig>& GetInstanceConfigs() const{ return m_instanceConfigs; }
161 inline bool InstanceConfigsHasBeenSet() const { return m_instanceConfigsHasBeenSet; }
162 inline void SetInstanceConfigs(const Aws::Vector<HyperParameterTuningInstanceConfig>& value) { m_instanceConfigsHasBeenSet = true; m_instanceConfigs = value; }
163 inline void SetInstanceConfigs(Aws::Vector<HyperParameterTuningInstanceConfig>&& value) { m_instanceConfigsHasBeenSet = true; m_instanceConfigs = std::move(value); }
166 inline HyperParameterTuningResourceConfig& AddInstanceConfigs(const HyperParameterTuningInstanceConfig& value) { m_instanceConfigsHasBeenSet = true; m_instanceConfigs.push_back(value); return *this; }
167 inline HyperParameterTuningResourceConfig& AddInstanceConfigs(HyperParameterTuningInstanceConfig&& value) { m_instanceConfigsHasBeenSet = true; m_instanceConfigs.push_back(std::move(value)); return *this; }
169 private:
170
171 TrainingInstanceType m_instanceType;
172 bool m_instanceTypeHasBeenSet = false;
173
174 int m_instanceCount;
175 bool m_instanceCountHasBeenSet = false;
176
177 int m_volumeSizeInGB;
178 bool m_volumeSizeInGBHasBeenSet = false;
179
180 Aws::String m_volumeKmsKeyId;
181 bool m_volumeKmsKeyIdHasBeenSet = false;
182
183 HyperParameterTuningAllocationStrategy m_allocationStrategy;
184 bool m_allocationStrategyHasBeenSet = false;
185
187 bool m_instanceConfigsHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace SageMaker
192} // namespace Aws
void SetAllocationStrategy(HyperParameterTuningAllocationStrategy &&value)
void SetInstanceConfigs(Aws::Vector< HyperParameterTuningInstanceConfig > &&value)
HyperParameterTuningResourceConfig & AddInstanceConfigs(HyperParameterTuningInstanceConfig &&value)
void SetAllocationStrategy(const HyperParameterTuningAllocationStrategy &value)
AWS_SAGEMAKER_API HyperParameterTuningResourceConfig(Aws::Utils::Json::JsonView jsonValue)
HyperParameterTuningResourceConfig & WithAllocationStrategy(const HyperParameterTuningAllocationStrategy &value)
AWS_SAGEMAKER_API HyperParameterTuningResourceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const HyperParameterTuningAllocationStrategy & GetAllocationStrategy() const
HyperParameterTuningResourceConfig & WithInstanceType(const TrainingInstanceType &value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
HyperParameterTuningResourceConfig & WithAllocationStrategy(HyperParameterTuningAllocationStrategy &&value)
HyperParameterTuningResourceConfig & AddInstanceConfigs(const HyperParameterTuningInstanceConfig &value)
const Aws::Vector< HyperParameterTuningInstanceConfig > & GetInstanceConfigs() const
HyperParameterTuningResourceConfig & WithVolumeKmsKeyId(const char *value)
HyperParameterTuningResourceConfig & WithInstanceConfigs(const Aws::Vector< HyperParameterTuningInstanceConfig > &value)
HyperParameterTuningResourceConfig & WithInstanceConfigs(Aws::Vector< HyperParameterTuningInstanceConfig > &&value)
HyperParameterTuningResourceConfig & WithVolumeKmsKeyId(Aws::String &&value)
HyperParameterTuningResourceConfig & WithInstanceType(TrainingInstanceType &&value)
HyperParameterTuningResourceConfig & WithVolumeKmsKeyId(const Aws::String &value)
void SetInstanceConfigs(const Aws::Vector< HyperParameterTuningInstanceConfig > &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