AWS SDK for C++

AWS SDK for C++ Version 1.11.755

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