AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
MetricData.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
30 public:
31 AWS_SAGEMAKER_API MetricData() = default;
32 AWS_SAGEMAKER_API MetricData(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SAGEMAKER_API MetricData& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetMetricName() const { return m_metricName; }
41 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
42 template <typename MetricNameT = Aws::String>
43 void SetMetricName(MetricNameT&& value) {
44 m_metricNameHasBeenSet = true;
45 m_metricName = std::forward<MetricNameT>(value);
46 }
47 template <typename MetricNameT = Aws::String>
48 MetricData& WithMetricName(MetricNameT&& value) {
49 SetMetricName(std::forward<MetricNameT>(value));
50 return *this;
51 }
53
55
58 inline double GetValue() const { return m_value; }
59 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
60 inline void SetValue(double value) {
61 m_valueHasBeenSet = true;
62 m_value = value;
63 }
64 inline MetricData& WithValue(double value) {
65 SetValue(value);
66 return *this;
67 }
69
71
74 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
75 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
76 template <typename TimestampT = Aws::Utils::DateTime>
77 void SetTimestamp(TimestampT&& value) {
78 m_timestampHasBeenSet = true;
79 m_timestamp = std::forward<TimestampT>(value);
80 }
81 template <typename TimestampT = Aws::Utils::DateTime>
82 MetricData& WithTimestamp(TimestampT&& value) {
83 SetTimestamp(std::forward<TimestampT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_metricName;
89
90 double m_value{0.0};
91
92 Aws::Utils::DateTime m_timestamp{};
93 bool m_metricNameHasBeenSet = false;
94 bool m_valueHasBeenSet = false;
95 bool m_timestampHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace SageMaker
100} // namespace Aws
const Aws::Utils::DateTime & GetTimestamp() const
Definition MetricData.h:74
AWS_SAGEMAKER_API MetricData(Aws::Utils::Json::JsonView jsonValue)
MetricData & WithMetricName(MetricNameT &&value)
Definition MetricData.h:48
AWS_SAGEMAKER_API MetricData & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricData & WithValue(double value)
Definition MetricData.h:64
const Aws::String & GetMetricName() const
Definition MetricData.h:40
MetricData & WithTimestamp(TimestampT &&value)
Definition MetricData.h:82
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMetricName(MetricNameT &&value)
Definition MetricData.h:43
void SetTimestamp(TimestampT &&value)
Definition MetricData.h:77
AWS_SAGEMAKER_API MetricData()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue