AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDimension(const Aws::String& value) { m_dimensionHasBeenSet = true; m_dimension = value; }
48 inline void SetDimension(Aws::String&& value) { m_dimensionHasBeenSet = true; m_dimension = std::move(value); }
49 inline void SetDimension(const char* value) { m_dimensionHasBeenSet = true; m_dimension.assign(value); }
50 inline EdgeMetric& WithDimension(const Aws::String& value) { SetDimension(value); return *this;}
51 inline EdgeMetric& WithDimension(Aws::String&& value) { SetDimension(std::move(value)); return *this;}
52 inline EdgeMetric& WithDimension(const char* value) { SetDimension(value); return *this;}
54
56
59 inline const Aws::String& GetMetricName() const{ return m_metricName; }
60 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
61 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
62 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
63 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
64 inline EdgeMetric& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
65 inline EdgeMetric& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
66 inline EdgeMetric& WithMetricName(const char* value) { SetMetricName(value); return *this;}
68
70
73 inline double GetValue() const{ return m_value; }
74 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
75 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
76 inline EdgeMetric& WithValue(double value) { SetValue(value); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
84 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
85 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
86 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
87 inline EdgeMetric& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
88 inline EdgeMetric& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
90 private:
91
92 Aws::String m_dimension;
93 bool m_dimensionHasBeenSet = false;
94
95 Aws::String m_metricName;
96 bool m_metricNameHasBeenSet = false;
97
98 double m_value;
99 bool m_valueHasBeenSet = false;
100
101 Aws::Utils::DateTime m_timestamp;
102 bool m_timestampHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace SagemakerEdgeManager
107} // namespace Aws
EdgeMetric & WithDimension(const Aws::String &value)
Definition EdgeMetric.h:50
const Aws::String & GetMetricName() const
Definition EdgeMetric.h:59
EdgeMetric & WithValue(double value)
Definition EdgeMetric.h:76
void SetMetricName(Aws::String &&value)
Definition EdgeMetric.h:62
void SetMetricName(const Aws::String &value)
Definition EdgeMetric.h:61
EdgeMetric & WithDimension(const char *value)
Definition EdgeMetric.h:52
const Aws::String & GetDimension() const
Definition EdgeMetric.h:45
EdgeMetric & WithDimension(Aws::String &&value)
Definition EdgeMetric.h:51
void SetDimension(Aws::String &&value)
Definition EdgeMetric.h:48
void SetTimestamp(const Aws::Utils::DateTime &value)
Definition EdgeMetric.h:85
void SetTimestamp(Aws::Utils::DateTime &&value)
Definition EdgeMetric.h:86
EdgeMetric & WithMetricName(Aws::String &&value)
Definition EdgeMetric.h:65
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:83
void SetDimension(const Aws::String &value)
Definition EdgeMetric.h:47
EdgeMetric & WithMetricName(const Aws::String &value)
Definition EdgeMetric.h:64
EdgeMetric & WithTimestamp(Aws::Utils::DateTime &&value)
Definition EdgeMetric.h:88
EdgeMetric & WithTimestamp(const Aws::Utils::DateTime &value)
Definition EdgeMetric.h:87
AWS_SAGEMAKEREDGEMANAGER_API EdgeMetric()
AWS_SAGEMAKEREDGEMANAGER_API EdgeMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
EdgeMetric & WithMetricName(const char *value)
Definition EdgeMetric.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue