AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
EdgeMetric.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-edge/SagemakerEdgeManager_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SagemakerEdgeManager {
21namespace Model {
22
29 public:
30 AWS_SAGEMAKEREDGEMANAGER_API EdgeMetric() = default;
31 AWS_SAGEMAKEREDGEMANAGER_API EdgeMetric(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SAGEMAKEREDGEMANAGER_API EdgeMetric& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SAGEMAKEREDGEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetDimension() const { return m_dimension; }
40 inline bool DimensionHasBeenSet() const { return m_dimensionHasBeenSet; }
41 template <typename DimensionT = Aws::String>
42 void SetDimension(DimensionT&& value) {
43 m_dimensionHasBeenSet = true;
44 m_dimension = std::forward<DimensionT>(value);
45 }
46 template <typename DimensionT = Aws::String>
47 EdgeMetric& WithDimension(DimensionT&& value) {
48 SetDimension(std::forward<DimensionT>(value));
49 return *this;
50 }
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) {
61 m_metricNameHasBeenSet = true;
62 m_metricName = std::forward<MetricNameT>(value);
63 }
64 template <typename MetricNameT = Aws::String>
65 EdgeMetric& WithMetricName(MetricNameT&& value) {
66 SetMetricName(std::forward<MetricNameT>(value));
67 return *this;
68 }
70
72
75 inline double GetValue() const { return m_value; }
76 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
77 inline void SetValue(double value) {
78 m_valueHasBeenSet = true;
79 m_value = value;
80 }
81 inline EdgeMetric& WithValue(double value) {
82 SetValue(value);
83 return *this;
84 }
86
88
91 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
92 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
93 template <typename TimestampT = Aws::Utils::DateTime>
94 void SetTimestamp(TimestampT&& value) {
95 m_timestampHasBeenSet = true;
96 m_timestamp = std::forward<TimestampT>(value);
97 }
98 template <typename TimestampT = Aws::Utils::DateTime>
99 EdgeMetric& WithTimestamp(TimestampT&& value) {
100 SetTimestamp(std::forward<TimestampT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_dimension;
106
107 Aws::String m_metricName;
108
109 double m_value{0.0};
110
111 Aws::Utils::DateTime m_timestamp{};
112 bool m_dimensionHasBeenSet = false;
113 bool m_metricNameHasBeenSet = false;
114 bool m_valueHasBeenSet = false;
115 bool m_timestampHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace SagemakerEdgeManager
120} // namespace Aws
const Aws::String & GetMetricName() const
Definition EdgeMetric.h:57
EdgeMetric & WithValue(double value)
Definition EdgeMetric.h:81
EdgeMetric & WithDimension(DimensionT &&value)
Definition EdgeMetric.h:47
const Aws::String & GetDimension() const
Definition EdgeMetric.h:39
void SetMetricName(MetricNameT &&value)
Definition EdgeMetric.h:60
EdgeMetric & WithTimestamp(TimestampT &&value)
Definition EdgeMetric.h:99
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:91
AWS_SAGEMAKEREDGEMANAGER_API EdgeMetric()=default
EdgeMetric & WithMetricName(MetricNameT &&value)
Definition EdgeMetric.h:65
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