AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
49 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
50 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
51 inline RawMetricData& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
52 inline RawMetricData& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
53 inline RawMetricData& WithMetricName(const char* value) { SetMetricName(value); return *this;}
55
57
60 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
61 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
62 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
63 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
64 inline RawMetricData& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
65 inline RawMetricData& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
67
69
72 inline int GetStep() const{ return m_step; }
73 inline bool StepHasBeenSet() const { return m_stepHasBeenSet; }
74 inline void SetStep(int value) { m_stepHasBeenSet = true; m_step = value; }
75 inline RawMetricData& WithStep(int value) { SetStep(value); return *this;}
77
79
82 inline double GetValue() const{ return m_value; }
83 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
84 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
85 inline RawMetricData& WithValue(double value) { SetValue(value); return *this;}
87 private:
88
89 Aws::String m_metricName;
90 bool m_metricNameHasBeenSet = false;
91
92 Aws::Utils::DateTime m_timestamp;
93 bool m_timestampHasBeenSet = false;
94
95 int m_step;
96 bool m_stepHasBeenSet = false;
97
98 double m_value;
99 bool m_valueHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace SageMakerMetrics
104} // namespace Aws
RawMetricData & WithMetricName(Aws::String &&value)
AWS_SAGEMAKERMETRICS_API RawMetricData()
RawMetricData & WithTimestamp(const Aws::Utils::DateTime &value)
RawMetricData & WithValue(double value)
RawMetricData & WithTimestamp(Aws::Utils::DateTime &&value)
void SetTimestamp(Aws::Utils::DateTime &&value)
RawMetricData & WithMetricName(const Aws::String &value)
void SetTimestamp(const Aws::Utils::DateTime &value)
AWS_SAGEMAKERMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetMetricName() const
void SetMetricName(const Aws::String &value)
AWS_SAGEMAKERMETRICS_API RawMetricData & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetTimestamp() const
RawMetricData & WithMetricName(const char *value)
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