AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EdgeMetric.h
1
6#pragma once
7#include <aws/sagemaker-edge/SagemakerEdgeManager_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 SagemakerEdgeManager
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_SAGEMAKEREDGEMANAGER_API EdgeMetric() = default;
36 AWS_SAGEMAKEREDGEMANAGER_API EdgeMetric(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SAGEMAKEREDGEMANAGER_API EdgeMetric& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SAGEMAKEREDGEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetDimension() const { return m_dimension; }
46 inline bool DimensionHasBeenSet() const { return m_dimensionHasBeenSet; }
47 template<typename DimensionT = Aws::String>
48 void SetDimension(DimensionT&& value) { m_dimensionHasBeenSet = true; m_dimension = std::forward<DimensionT>(value); }
49 template<typename DimensionT = Aws::String>
50 EdgeMetric& WithDimension(DimensionT&& value) { SetDimension(std::forward<DimensionT>(value)); return *this;}
52
54
57 inline const Aws::String& GetMetricName() const { return m_metricName; }
58 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
59 template<typename MetricNameT = Aws::String>
60 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
61 template<typename MetricNameT = Aws::String>
62 EdgeMetric& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
64
66
69 inline double GetValue() const { return m_value; }
70 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
71 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
72 inline EdgeMetric& WithValue(double value) { SetValue(value); return *this;}
74
76
79 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
80 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
81 template<typename TimestampT = Aws::Utils::DateTime>
82 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
83 template<typename TimestampT = Aws::Utils::DateTime>
84 EdgeMetric& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
86 private:
87
88 Aws::String m_dimension;
89 bool m_dimensionHasBeenSet = false;
90
91 Aws::String m_metricName;
92 bool m_metricNameHasBeenSet = false;
93
94 double m_value{0.0};
95 bool m_valueHasBeenSet = false;
96
97 Aws::Utils::DateTime m_timestamp{};
98 bool m_timestampHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace SagemakerEdgeManager
103} // namespace Aws
const Aws::String & GetMetricName() const
Definition EdgeMetric.h:57
EdgeMetric & WithValue(double value)
Definition EdgeMetric.h:72
EdgeMetric & WithDimension(DimensionT &&value)
Definition EdgeMetric.h:50
const Aws::String & GetDimension() const
Definition EdgeMetric.h:45
void SetMetricName(MetricNameT &&value)
Definition EdgeMetric.h:60
EdgeMetric & WithTimestamp(TimestampT &&value)
Definition EdgeMetric.h:84
AWS_SAGEMAKEREDGEMANAGER_API EdgeMetric(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKEREDGEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetTimestamp() const
Definition EdgeMetric.h:79
AWS_SAGEMAKEREDGEMANAGER_API EdgeMetric()=default
EdgeMetric & WithMetricName(MetricNameT &&value)
Definition EdgeMetric.h:62
AWS_SAGEMAKEREDGEMANAGER_API EdgeMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue