AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TrialComponentMetricSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SageMaker {
21namespace Model {
22
29 public:
30 AWS_SAGEMAKER_API TrialComponentMetricSummary() = default;
33 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetMetricName() const { return m_metricName; }
40 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
41 template <typename MetricNameT = Aws::String>
42 void SetMetricName(MetricNameT&& value) {
43 m_metricNameHasBeenSet = true;
44 m_metricName = std::forward<MetricNameT>(value);
45 }
46 template <typename MetricNameT = Aws::String>
48 SetMetricName(std::forward<MetricNameT>(value));
49 return *this;
50 }
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) {
61 m_sourceArnHasBeenSet = true;
62 m_sourceArn = std::forward<SourceArnT>(value);
63 }
64 template <typename SourceArnT = Aws::String>
66 SetSourceArn(std::forward<SourceArnT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Utils::DateTime& GetTimeStamp() const { return m_timeStamp; }
76 inline bool TimeStampHasBeenSet() const { return m_timeStampHasBeenSet; }
77 template <typename TimeStampT = Aws::Utils::DateTime>
78 void SetTimeStamp(TimeStampT&& value) {
79 m_timeStampHasBeenSet = true;
80 m_timeStamp = std::forward<TimeStampT>(value);
81 }
82 template <typename TimeStampT = Aws::Utils::DateTime>
84 SetTimeStamp(std::forward<TimeStampT>(value));
85 return *this;
86 }
88
90
93 inline double GetMax() const { return m_max; }
94 inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
95 inline void SetMax(double value) {
96 m_maxHasBeenSet = true;
97 m_max = value;
98 }
99 inline TrialComponentMetricSummary& WithMax(double value) {
100 SetMax(value);
101 return *this;
102 }
104
106
109 inline double GetMin() const { return m_min; }
110 inline bool MinHasBeenSet() const { return m_minHasBeenSet; }
111 inline void SetMin(double value) {
112 m_minHasBeenSet = true;
113 m_min = value;
114 }
115 inline TrialComponentMetricSummary& WithMin(double value) {
116 SetMin(value);
117 return *this;
118 }
120
122
125 inline double GetLast() const { return m_last; }
126 inline bool LastHasBeenSet() const { return m_lastHasBeenSet; }
127 inline void SetLast(double value) {
128 m_lastHasBeenSet = true;
129 m_last = value;
130 }
131 inline TrialComponentMetricSummary& WithLast(double value) {
132 SetLast(value);
133 return *this;
134 }
136
138
141 inline int GetCount() const { return m_count; }
142 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
143 inline void SetCount(int value) {
144 m_countHasBeenSet = true;
145 m_count = value;
146 }
148 SetCount(value);
149 return *this;
150 }
152
154
157 inline double GetAvg() const { return m_avg; }
158 inline bool AvgHasBeenSet() const { return m_avgHasBeenSet; }
159 inline void SetAvg(double value) {
160 m_avgHasBeenSet = true;
161 m_avg = value;
162 }
163 inline TrialComponentMetricSummary& WithAvg(double value) {
164 SetAvg(value);
165 return *this;
166 }
168
170
173 inline double GetStdDev() const { return m_stdDev; }
174 inline bool StdDevHasBeenSet() const { return m_stdDevHasBeenSet; }
175 inline void SetStdDev(double value) {
176 m_stdDevHasBeenSet = true;
177 m_stdDev = value;
178 }
180 SetStdDev(value);
181 return *this;
182 }
184 private:
185 Aws::String m_metricName;
186
187 Aws::String m_sourceArn;
188
189 Aws::Utils::DateTime m_timeStamp{};
190
191 double m_max{0.0};
192
193 double m_min{0.0};
194
195 double m_last{0.0};
196
197 int m_count{0};
198
199 double m_avg{0.0};
200
201 double m_stdDev{0.0};
202 bool m_metricNameHasBeenSet = false;
203 bool m_sourceArnHasBeenSet = false;
204 bool m_timeStampHasBeenSet = false;
205 bool m_maxHasBeenSet = false;
206 bool m_minHasBeenSet = false;
207 bool m_lastHasBeenSet = false;
208 bool m_countHasBeenSet = false;
209 bool m_avgHasBeenSet = false;
210 bool m_stdDevHasBeenSet = false;
211};
212
213} // namespace Model
214} // namespace SageMaker
215} // 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