AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
RawMetricData.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-metrics/SageMakerMetrics_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SageMakerMetrics {
21namespace Model {
22
30 public:
31 AWS_SAGEMAKERMETRICS_API RawMetricData() = default;
32 AWS_SAGEMAKERMETRICS_API RawMetricData(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SAGEMAKERMETRICS_API RawMetricData& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SAGEMAKERMETRICS_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 RawMetricData& WithMetricName(MetricNameT&& value) {
49 SetMetricName(std::forward<MetricNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
59 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
60 template <typename TimestampT = Aws::Utils::DateTime>
61 void SetTimestamp(TimestampT&& value) {
62 m_timestampHasBeenSet = true;
63 m_timestamp = std::forward<TimestampT>(value);
64 }
65 template <typename TimestampT = Aws::Utils::DateTime>
66 RawMetricData& WithTimestamp(TimestampT&& value) {
67 SetTimestamp(std::forward<TimestampT>(value));
68 return *this;
69 }
71
73
76 inline int GetStep() const { return m_step; }
77 inline bool StepHasBeenSet() const { return m_stepHasBeenSet; }
78 inline void SetStep(int value) {
79 m_stepHasBeenSet = true;
80 m_step = value;
81 }
82 inline RawMetricData& WithStep(int value) {
83 SetStep(value);
84 return *this;
85 }
87
89
92 inline double GetValue() const { return m_value; }
93 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
94 inline void SetValue(double value) {
95 m_valueHasBeenSet = true;
96 m_value = value;
97 }
98 inline RawMetricData& WithValue(double value) {
99 SetValue(value);
100 return *this;
101 }
103 private:
104 Aws::String m_metricName;
105
106 Aws::Utils::DateTime m_timestamp{};
107
108 int m_step{0};
109
110 double m_value{0.0};
111 bool m_metricNameHasBeenSet = false;
112 bool m_timestampHasBeenSet = false;
113 bool m_stepHasBeenSet = false;
114 bool m_valueHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace SageMakerMetrics
119} // namespace Aws
RawMetricData & WithValue(double value)
RawMetricData & WithMetricName(MetricNameT &&value)
RawMetricData & WithTimestamp(TimestampT &&value)
AWS_SAGEMAKERMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetMetricName() const
AWS_SAGEMAKERMETRICS_API RawMetricData & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKERMETRICS_API RawMetricData()=default
const Aws::Utils::DateTime & GetTimestamp() const
AWS_SAGEMAKERMETRICS_API RawMetricData(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue