AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_SAGEMAKER_API HyperParameterTuningInstanceConfig() = default;
41 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
54 inline TrainingInstanceType GetInstanceType() const { return m_instanceType; }
55 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
56 inline void SetInstanceType(TrainingInstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
59
61
69 inline int GetInstanceCount() const { return m_instanceCount; }
70 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
71 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
72 inline HyperParameterTuningInstanceConfig& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
74
76
80 inline int GetVolumeSizeInGB() const { return m_volumeSizeInGB; }
81 inline bool VolumeSizeInGBHasBeenSet() const { return m_volumeSizeInGBHasBeenSet; }
82 inline void SetVolumeSizeInGB(int value) { m_volumeSizeInGBHasBeenSet = true; m_volumeSizeInGB = value; }
85 private:
86
88 bool m_instanceTypeHasBeenSet = false;
89
90 int m_instanceCount{0};
91 bool m_instanceCountHasBeenSet = false;
92
93 int m_volumeSizeInGB{0};
94 bool m_volumeSizeInGBHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace SageMaker
99} // 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