AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TunedHPOParams.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Personalize
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_PERSONALIZE_API TunedHPOParams() = default;
38 AWS_PERSONALIZE_API TunedHPOParams(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PERSONALIZE_API TunedHPOParams& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Map<Aws::String, Aws::String>& GetAlgorithmHyperParameters() const { return m_algorithmHyperParameters; }
48 inline bool AlgorithmHyperParametersHasBeenSet() const { return m_algorithmHyperParametersHasBeenSet; }
49 template<typename AlgorithmHyperParametersT = Aws::Map<Aws::String, Aws::String>>
50 void SetAlgorithmHyperParameters(AlgorithmHyperParametersT&& value) { m_algorithmHyperParametersHasBeenSet = true; m_algorithmHyperParameters = std::forward<AlgorithmHyperParametersT>(value); }
51 template<typename AlgorithmHyperParametersT = Aws::Map<Aws::String, Aws::String>>
52 TunedHPOParams& WithAlgorithmHyperParameters(AlgorithmHyperParametersT&& value) { SetAlgorithmHyperParameters(std::forward<AlgorithmHyperParametersT>(value)); return *this;}
53 template<typename AlgorithmHyperParametersKeyT = Aws::String, typename AlgorithmHyperParametersValueT = Aws::String>
54 TunedHPOParams& AddAlgorithmHyperParameters(AlgorithmHyperParametersKeyT&& key, AlgorithmHyperParametersValueT&& value) {
55 m_algorithmHyperParametersHasBeenSet = true; m_algorithmHyperParameters.emplace(std::forward<AlgorithmHyperParametersKeyT>(key), std::forward<AlgorithmHyperParametersValueT>(value)); return *this;
56 }
58 private:
59
60 Aws::Map<Aws::String, Aws::String> m_algorithmHyperParameters;
61 bool m_algorithmHyperParametersHasBeenSet = false;
62 };
63
64} // namespace Model
65} // namespace Personalize
66} // namespace Aws
AWS_PERSONALIZE_API TunedHPOParams(Aws::Utils::Json::JsonView jsonValue)
void SetAlgorithmHyperParameters(AlgorithmHyperParametersT &&value)
TunedHPOParams & WithAlgorithmHyperParameters(AlgorithmHyperParametersT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAlgorithmHyperParameters() const
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PERSONALIZE_API TunedHPOParams()=default
AWS_PERSONALIZE_API TunedHPOParams & operator=(Aws::Utils::Json::JsonView jsonValue)
TunedHPOParams & AddAlgorithmHyperParameters(AlgorithmHyperParametersKeyT &&key, AlgorithmHyperParametersValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue