AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricData.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_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 SageMaker
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SAGEMAKER_API MetricData();
37 AWS_SAGEMAKER_API MetricData(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SAGEMAKER_API MetricData& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SAGEMAKER_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 MetricData& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
52 inline MetricData& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
53 inline MetricData& WithMetricName(const char* value) { SetMetricName(value); return *this;}
55
57
60 inline double GetValue() const{ return m_value; }
61 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
62 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
63 inline MetricData& WithValue(double value) { SetValue(value); return *this;}
65
67
70 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
71 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
72 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
73 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
74 inline MetricData& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
75 inline MetricData& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
77 private:
78
79 Aws::String m_metricName;
80 bool m_metricNameHasBeenSet = false;
81
82 double m_value;
83 bool m_valueHasBeenSet = false;
84
85 Aws::Utils::DateTime m_timestamp;
86 bool m_timestampHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace SageMaker
91} // namespace Aws
const Aws::Utils::DateTime & GetTimestamp() const
Definition MetricData.h:70
AWS_SAGEMAKER_API MetricData()
void SetMetricName(Aws::String &&value)
Definition MetricData.h:49
void SetMetricName(const Aws::String &value)
Definition MetricData.h:48
void SetMetricName(const char *value)
Definition MetricData.h:50
AWS_SAGEMAKER_API MetricData(Aws::Utils::Json::JsonView jsonValue)
MetricData & WithTimestamp(Aws::Utils::DateTime &&value)
Definition MetricData.h:75
MetricData & WithMetricName(const char *value)
Definition MetricData.h:53
MetricData & WithMetricName(const Aws::String &value)
Definition MetricData.h:51
void SetTimestamp(const Aws::Utils::DateTime &value)
Definition MetricData.h:72
AWS_SAGEMAKER_API MetricData & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricData & WithValue(double value)
Definition MetricData.h:63
const Aws::String & GetMetricName() const
Definition MetricData.h:46
void SetTimestamp(Aws::Utils::DateTime &&value)
Definition MetricData.h:73
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
MetricData & WithTimestamp(const Aws::Utils::DateTime &value)
Definition MetricData.h:74
MetricData & WithMetricName(Aws::String &&value)
Definition MetricData.h:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue