AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
HyperbandStrategyConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace SageMaker {
17namespace Model {
18
31 public:
32 AWS_SAGEMAKER_API HyperbandStrategyConfig() = default;
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
44 inline int GetMinResource() const { return m_minResource; }
45 inline bool MinResourceHasBeenSet() const { return m_minResourceHasBeenSet; }
46 inline void SetMinResource(int value) {
47 m_minResourceHasBeenSet = true;
48 m_minResource = value;
49 }
51 SetMinResource(value);
52 return *this;
53 }
55
57
80 inline int GetMaxResource() const { return m_maxResource; }
81 inline bool MaxResourceHasBeenSet() const { return m_maxResourceHasBeenSet; }
82 inline void SetMaxResource(int value) {
83 m_maxResourceHasBeenSet = true;
84 m_maxResource = value;
85 }
87 SetMaxResource(value);
88 return *this;
89 }
91 private:
92 int m_minResource{0};
93
94 int m_maxResource{0};
95 bool m_minResourceHasBeenSet = false;
96 bool m_maxResourceHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace SageMaker
101} // namespace Aws
HyperbandStrategyConfig & WithMinResource(int value)
AWS_SAGEMAKER_API HyperbandStrategyConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API HyperbandStrategyConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API HyperbandStrategyConfig()=default
HyperbandStrategyConfig & WithMaxResource(int value)
Aws::Utils::Json::JsonValue JsonValue