AWS SDK for C++

AWS SDK for C++ Version 1.11.860

Loading...
Searching...
No Matches
TrainingMetrics.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
11#include <aws/customer-profiles/model/TrainingMetricName.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CustomerProfiles {
23namespace Model {
24
32 public:
33 AWS_CUSTOMERPROFILES_API TrainingMetrics() = default;
34 AWS_CUSTOMERPROFILES_API TrainingMetrics(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CUSTOMERPROFILES_API TrainingMetrics& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Utils::DateTime& GetTime() const { return m_time; }
43 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
44 template <typename TimeT = Aws::Utils::DateTime>
45 void SetTime(TimeT&& value) {
46 m_timeHasBeenSet = true;
47 m_time = std::forward<TimeT>(value);
48 }
49 template <typename TimeT = Aws::Utils::DateTime>
50 TrainingMetrics& WithTime(TimeT&& value) {
51 SetTime(std::forward<TimeT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::Map<TrainingMetricName, double>& GetMetrics() const { return m_metrics; }
62 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
63 template <typename MetricsT = Aws::Map<TrainingMetricName, double>>
64 void SetMetrics(MetricsT&& value) {
65 m_metricsHasBeenSet = true;
66 m_metrics = std::forward<MetricsT>(value);
67 }
68 template <typename MetricsT = Aws::Map<TrainingMetricName, double>>
69 TrainingMetrics& WithMetrics(MetricsT&& value) {
70 SetMetrics(std::forward<MetricsT>(value));
71 return *this;
72 }
73 inline TrainingMetrics& AddMetrics(TrainingMetricName key, double value) {
74 m_metricsHasBeenSet = true;
75 m_metrics.emplace(key, value);
76 return *this;
77 }
79
81
84 inline const Aws::String& GetRecommenderVersionName() const { return m_recommenderVersionName; }
85 inline bool RecommenderVersionNameHasBeenSet() const { return m_recommenderVersionNameHasBeenSet; }
86 template <typename RecommenderVersionNameT = Aws::String>
87 void SetRecommenderVersionName(RecommenderVersionNameT&& value) {
88 m_recommenderVersionNameHasBeenSet = true;
89 m_recommenderVersionName = std::forward<RecommenderVersionNameT>(value);
90 }
91 template <typename RecommenderVersionNameT = Aws::String>
92 TrainingMetrics& WithRecommenderVersionName(RecommenderVersionNameT&& value) {
93 SetRecommenderVersionName(std::forward<RecommenderVersionNameT>(value));
94 return *this;
95 }
97 private:
98 Aws::Utils::DateTime m_time{};
99
101
102 Aws::String m_recommenderVersionName;
103 bool m_timeHasBeenSet = false;
104 bool m_metricsHasBeenSet = false;
105 bool m_recommenderVersionNameHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace CustomerProfiles
110} // namespace Aws
AWS_CUSTOMERPROFILES_API TrainingMetrics()=default
TrainingMetrics & WithRecommenderVersionName(RecommenderVersionNameT &&value)
const Aws::String & GetRecommenderVersionName() const
const Aws::Map< TrainingMetricName, double > & GetMetrics() const
void SetRecommenderVersionName(RecommenderVersionNameT &&value)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CUSTOMERPROFILES_API TrainingMetrics(Aws::Utils::Json::JsonView jsonValue)
TrainingMetrics & AddMetrics(TrainingMetricName key, double value)
TrainingMetrics & WithMetrics(MetricsT &&value)
AWS_CUSTOMERPROFILES_API TrainingMetrics & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetTime() const
TrainingMetrics & WithTime(TimeT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue