AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
TrialComponentMetricSummary.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.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 SageMaker
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_SAGEMAKER_API TrialComponentMetricSummary() = default;
38 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetMetricName() const { return m_metricName; }
46 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
47 template<typename MetricNameT = Aws::String>
48 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
49 template<typename MetricNameT = Aws::String>
50 TrialComponentMetricSummary& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
58 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
59 template<typename SourceArnT = Aws::String>
60 void SetSourceArn(SourceArnT&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::forward<SourceArnT>(value); }
61 template<typename SourceArnT = Aws::String>
62 TrialComponentMetricSummary& WithSourceArn(SourceArnT&& value) { SetSourceArn(std::forward<SourceArnT>(value)); return *this;}
64
66
69 inline const Aws::Utils::DateTime& GetTimeStamp() const { return m_timeStamp; }
70 inline bool TimeStampHasBeenSet() const { return m_timeStampHasBeenSet; }
71 template<typename TimeStampT = Aws::Utils::DateTime>
72 void SetTimeStamp(TimeStampT&& value) { m_timeStampHasBeenSet = true; m_timeStamp = std::forward<TimeStampT>(value); }
73 template<typename TimeStampT = Aws::Utils::DateTime>
74 TrialComponentMetricSummary& WithTimeStamp(TimeStampT&& value) { SetTimeStamp(std::forward<TimeStampT>(value)); return *this;}
76
78
81 inline double GetMax() const { return m_max; }
82 inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
83 inline void SetMax(double value) { m_maxHasBeenSet = true; m_max = value; }
84 inline TrialComponentMetricSummary& WithMax(double value) { SetMax(value); return *this;}
86
88
91 inline double GetMin() const { return m_min; }
92 inline bool MinHasBeenSet() const { return m_minHasBeenSet; }
93 inline void SetMin(double value) { m_minHasBeenSet = true; m_min = value; }
94 inline TrialComponentMetricSummary& WithMin(double value) { SetMin(value); return *this;}
96
98
101 inline double GetLast() const { return m_last; }
102 inline bool LastHasBeenSet() const { return m_lastHasBeenSet; }
103 inline void SetLast(double value) { m_lastHasBeenSet = true; m_last = value; }
104 inline TrialComponentMetricSummary& WithLast(double value) { SetLast(value); return *this;}
106
108
111 inline int GetCount() const { return m_count; }
112 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
113 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
114 inline TrialComponentMetricSummary& WithCount(int value) { SetCount(value); return *this;}
116
118
121 inline double GetAvg() const { return m_avg; }
122 inline bool AvgHasBeenSet() const { return m_avgHasBeenSet; }
123 inline void SetAvg(double value) { m_avgHasBeenSet = true; m_avg = value; }
124 inline TrialComponentMetricSummary& WithAvg(double value) { SetAvg(value); return *this;}
126
128
131 inline double GetStdDev() const { return m_stdDev; }
132 inline bool StdDevHasBeenSet() const { return m_stdDevHasBeenSet; }
133 inline void SetStdDev(double value) { m_stdDevHasBeenSet = true; m_stdDev = value; }
134 inline TrialComponentMetricSummary& WithStdDev(double value) { SetStdDev(value); return *this;}
136 private:
137
138 Aws::String m_metricName;
139 bool m_metricNameHasBeenSet = false;
140
141 Aws::String m_sourceArn;
142 bool m_sourceArnHasBeenSet = false;
143
144 Aws::Utils::DateTime m_timeStamp{};
145 bool m_timeStampHasBeenSet = false;
146
147 double m_max{0.0};
148 bool m_maxHasBeenSet = false;
149
150 double m_min{0.0};
151 bool m_minHasBeenSet = false;
152
153 double m_last{0.0};
154 bool m_lastHasBeenSet = false;
155
156 int m_count{0};
157 bool m_countHasBeenSet = false;
158
159 double m_avg{0.0};
160 bool m_avgHasBeenSet = false;
161
162 double m_stdDev{0.0};
163 bool m_stdDevHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace SageMaker
168} // namespace Aws
TrialComponentMetricSummary & WithMin(double value)
TrialComponentMetricSummary & WithSourceArn(SourceArnT &&value)
AWS_SAGEMAKER_API TrialComponentMetricSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API TrialComponentMetricSummary()=default
TrialComponentMetricSummary & WithLast(double value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
TrialComponentMetricSummary & WithAvg(double value)
TrialComponentMetricSummary & WithMetricName(MetricNameT &&value)
TrialComponentMetricSummary & WithStdDev(double value)
TrialComponentMetricSummary & WithMax(double value)
TrialComponentMetricSummary & WithTimeStamp(TimeStampT &&value)
AWS_SAGEMAKER_API TrialComponentMetricSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue