AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Personalize
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_PERSONALIZE_API HPOConfig() = default;
38 AWS_PERSONALIZE_API HPOConfig(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PERSONALIZE_API HPOConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const HPOObjective& GetHpoObjective() const { return m_hpoObjective; }
49 inline bool HpoObjectiveHasBeenSet() const { return m_hpoObjectiveHasBeenSet; }
50 template<typename HpoObjectiveT = HPOObjective>
51 void SetHpoObjective(HpoObjectiveT&& value) { m_hpoObjectiveHasBeenSet = true; m_hpoObjective = std::forward<HpoObjectiveT>(value); }
52 template<typename HpoObjectiveT = HPOObjective>
53 HPOConfig& WithHpoObjective(HpoObjectiveT&& value) { SetHpoObjective(std::forward<HpoObjectiveT>(value)); return *this;}
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) { m_hpoResourceConfigHasBeenSet = true; m_hpoResourceConfig = std::forward<HpoResourceConfigT>(value); }
64 template<typename HpoResourceConfigT = HPOResourceConfig>
65 HPOConfig& WithHpoResourceConfig(HpoResourceConfigT&& value) { SetHpoResourceConfig(std::forward<HpoResourceConfigT>(value)); return *this;}
67
69
72 inline const HyperParameterRanges& GetAlgorithmHyperParameterRanges() const { return m_algorithmHyperParameterRanges; }
73 inline bool AlgorithmHyperParameterRangesHasBeenSet() const { return m_algorithmHyperParameterRangesHasBeenSet; }
74 template<typename AlgorithmHyperParameterRangesT = HyperParameterRanges>
75 void SetAlgorithmHyperParameterRanges(AlgorithmHyperParameterRangesT&& value) { m_algorithmHyperParameterRangesHasBeenSet = true; m_algorithmHyperParameterRanges = std::forward<AlgorithmHyperParameterRangesT>(value); }
76 template<typename AlgorithmHyperParameterRangesT = HyperParameterRanges>
77 HPOConfig& WithAlgorithmHyperParameterRanges(AlgorithmHyperParameterRangesT&& value) { SetAlgorithmHyperParameterRanges(std::forward<AlgorithmHyperParameterRangesT>(value)); return *this;}
79 private:
80
81 HPOObjective m_hpoObjective;
82 bool m_hpoObjectiveHasBeenSet = false;
83
84 HPOResourceConfig m_hpoResourceConfig;
85 bool m_hpoResourceConfigHasBeenSet = false;
86
87 HyperParameterRanges m_algorithmHyperParameterRanges;
88 bool m_algorithmHyperParameterRangesHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace Personalize
93} // namespace Aws
const HPOResourceConfig & GetHpoResourceConfig() const
Definition HPOConfig.h:60
void SetAlgorithmHyperParameterRanges(AlgorithmHyperParameterRangesT &&value)
Definition HPOConfig.h:75
HPOConfig & WithHpoResourceConfig(HpoResourceConfigT &&value)
Definition HPOConfig.h:65
HPOConfig & WithAlgorithmHyperParameterRanges(AlgorithmHyperParameterRangesT &&value)
Definition HPOConfig.h:77
void SetHpoResourceConfig(HpoResourceConfigT &&value)
Definition HPOConfig.h:63
const HyperParameterRanges & GetAlgorithmHyperParameterRanges() const
Definition HPOConfig.h:72
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:73
AWS_PERSONALIZE_API HPOConfig()=default
HPOConfig & WithHpoObjective(HpoObjectiveT &&value)
Definition HPOConfig.h:53
void SetHpoObjective(HpoObjectiveT &&value)
Definition HPOConfig.h:51
const HPOObjective & GetHpoObjective() const
Definition HPOConfig.h:48
Aws::Utils::Json::JsonValue JsonValue