AWS SDK for C++

AWS SDK for C++ Version 1.11.753

Loading...
Searching...
No Matches
HPOConfig.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/personalize/model/HPOObjective.h>
9#include <aws/personalize/model/HPOResourceConfig.h>
10#include <aws/personalize/model/HyperParameterRanges.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Personalize {
22namespace Model {
23
30class HPOConfig {
31 public:
32 AWS_PERSONALIZE_API HPOConfig() = default;
33 AWS_PERSONALIZE_API HPOConfig(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PERSONALIZE_API HPOConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const HPOObjective& GetHpoObjective() const { return m_hpoObjective; }
43 inline bool HpoObjectiveHasBeenSet() const { return m_hpoObjectiveHasBeenSet; }
44 template <typename HpoObjectiveT = HPOObjective>
45 void SetHpoObjective(HpoObjectiveT&& value) {
46 m_hpoObjectiveHasBeenSet = true;
47 m_hpoObjective = std::forward<HpoObjectiveT>(value);
48 }
49 template <typename HpoObjectiveT = HPOObjective>
50 HPOConfig& WithHpoObjective(HpoObjectiveT&& value) {
51 SetHpoObjective(std::forward<HpoObjectiveT>(value));
52 return *this;
53 }
55
57
60 inline const HPOResourceConfig& GetHpoResourceConfig() const { return m_hpoResourceConfig; }
61 inline bool HpoResourceConfigHasBeenSet() const { return m_hpoResourceConfigHasBeenSet; }
62 template <typename HpoResourceConfigT = HPOResourceConfig>
63 void SetHpoResourceConfig(HpoResourceConfigT&& value) {
64 m_hpoResourceConfigHasBeenSet = true;
65 m_hpoResourceConfig = std::forward<HpoResourceConfigT>(value);
66 }
67 template <typename HpoResourceConfigT = HPOResourceConfig>
68 HPOConfig& WithHpoResourceConfig(HpoResourceConfigT&& value) {
69 SetHpoResourceConfig(std::forward<HpoResourceConfigT>(value));
70 return *this;
71 }
73
75
78 inline const HyperParameterRanges& GetAlgorithmHyperParameterRanges() const { return m_algorithmHyperParameterRanges; }
79 inline bool AlgorithmHyperParameterRangesHasBeenSet() const { return m_algorithmHyperParameterRangesHasBeenSet; }
80 template <typename AlgorithmHyperParameterRangesT = HyperParameterRanges>
81 void SetAlgorithmHyperParameterRanges(AlgorithmHyperParameterRangesT&& value) {
82 m_algorithmHyperParameterRangesHasBeenSet = true;
83 m_algorithmHyperParameterRanges = std::forward<AlgorithmHyperParameterRangesT>(value);
84 }
85 template <typename AlgorithmHyperParameterRangesT = HyperParameterRanges>
86 HPOConfig& WithAlgorithmHyperParameterRanges(AlgorithmHyperParameterRangesT&& value) {
87 SetAlgorithmHyperParameterRanges(std::forward<AlgorithmHyperParameterRangesT>(value));
88 return *this;
89 }
91 private:
92 HPOObjective m_hpoObjective;
93
94 HPOResourceConfig m_hpoResourceConfig;
95
96 HyperParameterRanges m_algorithmHyperParameterRanges;
97 bool m_hpoObjectiveHasBeenSet = false;
98 bool m_hpoResourceConfigHasBeenSet = false;
99 bool m_algorithmHyperParameterRangesHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace Personalize
104} // namespace Aws
const HPOResourceConfig & GetHpoResourceConfig() const
Definition HPOConfig.h:60
void SetAlgorithmHyperParameterRanges(AlgorithmHyperParameterRangesT &&value)
Definition HPOConfig.h:81
HPOConfig & WithHpoResourceConfig(HpoResourceConfigT &&value)
Definition HPOConfig.h:68
HPOConfig & WithAlgorithmHyperParameterRanges(AlgorithmHyperParameterRangesT &&value)
Definition HPOConfig.h:86
void SetHpoResourceConfig(HpoResourceConfigT &&value)
Definition HPOConfig.h:63
const HyperParameterRanges & GetAlgorithmHyperParameterRanges() const
Definition HPOConfig.h:78
AWS_PERSONALIZE_API HPOConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_PERSONALIZE_API HPOConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
bool AlgorithmHyperParameterRangesHasBeenSet() const
Definition HPOConfig.h:79
AWS_PERSONALIZE_API HPOConfig()=default
HPOConfig & WithHpoObjective(HpoObjectiveT &&value)
Definition HPOConfig.h:50
void SetHpoObjective(HpoObjectiveT &&value)
Definition HPOConfig.h:45
const HPOObjective & GetHpoObjective() const
Definition HPOConfig.h:42
Aws::Utils::Json::JsonValue JsonValue