AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/customer-profiles/CustomerProfiles_EXPORTS.h>
10#include <aws/customer-profiles/model/TrainingMetricName.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CustomerProfiles {
22namespace Model {
23
31 public:
32 AWS_CUSTOMERPROFILES_API TrainingMetrics() = default;
33 AWS_CUSTOMERPROFILES_API TrainingMetrics(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CUSTOMERPROFILES_API TrainingMetrics& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Utils::DateTime& GetTime() const { return m_time; }
42 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
43 template <typename TimeT = Aws::Utils::DateTime>
44 void SetTime(TimeT&& value) {
45 m_timeHasBeenSet = true;
46 m_time = std::forward<TimeT>(value);
47 }
48 template <typename TimeT = Aws::Utils::DateTime>
49 TrainingMetrics& WithTime(TimeT&& value) {
50 SetTime(std::forward<TimeT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Map<TrainingMetricName, double>& GetMetrics() const { return m_metrics; }
61 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
62 template <typename MetricsT = Aws::Map<TrainingMetricName, double>>
63 void SetMetrics(MetricsT&& value) {
64 m_metricsHasBeenSet = true;
65 m_metrics = std::forward<MetricsT>(value);
66 }
67 template <typename MetricsT = Aws::Map<TrainingMetricName, double>>
68 TrainingMetrics& WithMetrics(MetricsT&& value) {
69 SetMetrics(std::forward<MetricsT>(value));
70 return *this;
71 }
72 inline TrainingMetrics& AddMetrics(TrainingMetricName key, double value) {
73 m_metricsHasBeenSet = true;
74 m_metrics.emplace(key, value);
75 return *this;
76 }
78 private:
79 Aws::Utils::DateTime m_time{};
80
82 bool m_timeHasBeenSet = false;
83 bool m_metricsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace CustomerProfiles
88} // namespace Aws
AWS_CUSTOMERPROFILES_API TrainingMetrics()=default
const Aws::Map< TrainingMetricName, double > & GetMetrics() const
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
Aws::Utils::Json::JsonValue JsonValue