AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RawMetricData.h
1
6#pragma once
7#include <aws/sagemaker-metrics/SageMakerMetrics_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 SageMakerMetrics
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SAGEMAKERMETRICS_API RawMetricData() = default;
37 AWS_SAGEMAKERMETRICS_API RawMetricData(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SAGEMAKERMETRICS_API RawMetricData& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SAGEMAKERMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetMetricName() const { return m_metricName; }
47 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
48 template<typename MetricNameT = Aws::String>
49 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
50 template<typename MetricNameT = Aws::String>
51 RawMetricData& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
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) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
62 template<typename TimestampT = Aws::Utils::DateTime>
63 RawMetricData& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
65
67
70 inline int GetStep() const { return m_step; }
71 inline bool StepHasBeenSet() const { return m_stepHasBeenSet; }
72 inline void SetStep(int value) { m_stepHasBeenSet = true; m_step = value; }
73 inline RawMetricData& WithStep(int value) { SetStep(value); return *this;}
75
77
80 inline double GetValue() const { return m_value; }
81 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
82 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
83 inline RawMetricData& WithValue(double value) { SetValue(value); return *this;}
85 private:
86
87 Aws::String m_metricName;
88 bool m_metricNameHasBeenSet = false;
89
90 Aws::Utils::DateTime m_timestamp{};
91 bool m_timestampHasBeenSet = false;
92
93 int m_step{0};
94 bool m_stepHasBeenSet = false;
95
96 double m_value{0.0};
97 bool m_valueHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace SageMakerMetrics
102} // 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