AWS SDK for C++  1.9.132
AWS SDK for C++
EdgeMetric.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace SagemakerEdgeManager
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetDimension() const{ return m_dimension; }
45 
49  inline bool DimensionHasBeenSet() const { return m_dimensionHasBeenSet; }
50 
54  inline void SetDimension(const Aws::String& value) { m_dimensionHasBeenSet = true; m_dimension = value; }
55 
59  inline void SetDimension(Aws::String&& value) { m_dimensionHasBeenSet = true; m_dimension = std::move(value); }
60 
64  inline void SetDimension(const char* value) { m_dimensionHasBeenSet = true; m_dimension.assign(value); }
65 
69  inline EdgeMetric& WithDimension(const Aws::String& value) { SetDimension(value); return *this;}
70 
74  inline EdgeMetric& WithDimension(Aws::String&& value) { SetDimension(std::move(value)); return *this;}
75 
79  inline EdgeMetric& WithDimension(const char* value) { SetDimension(value); return *this;}
80 
81 
85  inline const Aws::String& GetMetricName() const{ return m_metricName; }
86 
90  inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
91 
95  inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
96 
100  inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
101 
105  inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
106 
110  inline EdgeMetric& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
111 
115  inline EdgeMetric& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
116 
120  inline EdgeMetric& WithMetricName(const char* value) { SetMetricName(value); return *this;}
121 
122 
126  inline double GetValue() const{ return m_value; }
127 
131  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
132 
136  inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
137 
141  inline EdgeMetric& WithValue(double value) { SetValue(value); return *this;}
142 
143 
147  inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
148 
152  inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
153 
157  inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
158 
162  inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
163 
167  inline EdgeMetric& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
168 
172  inline EdgeMetric& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
173 
174  private:
175 
176  Aws::String m_dimension;
177  bool m_dimensionHasBeenSet;
178 
179  Aws::String m_metricName;
180  bool m_metricNameHasBeenSet;
181 
182  double m_value;
183  bool m_valueHasBeenSet;
184 
185  Aws::Utils::DateTime m_timestamp;
186  bool m_timestampHasBeenSet;
187  };
188 
189 } // namespace Model
190 } // namespace SagemakerEdgeManager
191 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::SagemakerEdgeManager::Model::EdgeMetric::operator=
EdgeMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SagemakerEdgeManager::Model::EdgeMetric::SetTimestamp
void SetTimestamp(const Aws::Utils::DateTime &value)
Definition: EdgeMetric.h:157
Aws::SagemakerEdgeManager::Model::EdgeMetric::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SagemakerEdgeManager::Model::EdgeMetric::WithValue
EdgeMetric & WithValue(double value)
Definition: EdgeMetric.h:141
Aws::SagemakerEdgeManager::Model::EdgeMetric::MetricNameHasBeenSet
bool MetricNameHasBeenSet() const
Definition: EdgeMetric.h:90
Aws::SagemakerEdgeManager::Model::EdgeMetric::GetTimestamp
const Aws::Utils::DateTime & GetTimestamp() const
Definition: EdgeMetric.h:147
Aws::SagemakerEdgeManager::Model::EdgeMetric::SetValue
void SetValue(double value)
Definition: EdgeMetric.h:136
DateTime.h
Aws::SagemakerEdgeManager::Model::EdgeMetric::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: EdgeMetric.h:131
Aws::SagemakerEdgeManager::Model::EdgeMetric::SetDimension
void SetDimension(const char *value)
Definition: EdgeMetric.h:64
Aws::SagemakerEdgeManager::Model::EdgeMetric
Definition: EdgeMetric.h:33
Aws::SagemakerEdgeManager::Model::EdgeMetric::SetMetricName
void SetMetricName(const Aws::String &value)
Definition: EdgeMetric.h:95
Aws::SagemakerEdgeManager::Model::EdgeMetric::WithMetricName
EdgeMetric & WithMetricName(Aws::String &&value)
Definition: EdgeMetric.h:115
Aws::SagemakerEdgeManager::Model::EdgeMetric::GetValue
double GetValue() const
Definition: EdgeMetric.h:126
Aws::SagemakerEdgeManager::Model::EdgeMetric::EdgeMetric
EdgeMetric(Aws::Utils::Json::JsonView jsonValue)
Aws::SagemakerEdgeManager::Model::EdgeMetric::TimestampHasBeenSet
bool TimestampHasBeenSet() const
Definition: EdgeMetric.h:152
Aws::SagemakerEdgeManager::Model::EdgeMetric::SetTimestamp
void SetTimestamp(Aws::Utils::DateTime &&value)
Definition: EdgeMetric.h:162
Aws::SagemakerEdgeManager::Model::EdgeMetric::WithTimestamp
EdgeMetric & WithTimestamp(Aws::Utils::DateTime &&value)
Definition: EdgeMetric.h:172
Aws::SagemakerEdgeManager::Model::EdgeMetric::GetDimension
const Aws::String & GetDimension() const
Definition: EdgeMetric.h:44
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
SagemakerEdgeManager_EXPORTS.h
Aws::SagemakerEdgeManager::Model::EdgeMetric::SetMetricName
void SetMetricName(Aws::String &&value)
Definition: EdgeMetric.h:100
Aws::SagemakerEdgeManager::Model::Model
Definition: Model.h:36
Aws::SagemakerEdgeManager::Model::EdgeMetric::SetMetricName
void SetMetricName(const char *value)
Definition: EdgeMetric.h:105
Aws::SagemakerEdgeManager::Model::EdgeMetric::SetDimension
void SetDimension(const Aws::String &value)
Definition: EdgeMetric.h:54
Aws::SagemakerEdgeManager::Model::EdgeMetric::WithDimension
EdgeMetric & WithDimension(const Aws::String &value)
Definition: EdgeMetric.h:69
Aws::SagemakerEdgeManager::Model::EdgeMetric::GetMetricName
const Aws::String & GetMetricName() const
Definition: EdgeMetric.h:85
Aws::SagemakerEdgeManager::Model::EdgeMetric::WithMetricName
EdgeMetric & WithMetricName(const char *value)
Definition: EdgeMetric.h:120
AWS_SAGEMAKEREDGEMANAGER_API
#define AWS_SAGEMAKEREDGEMANAGER_API
Definition: SagemakerEdgeManager_EXPORTS.h:28
Aws::SagemakerEdgeManager::Model::EdgeMetric::WithDimension
EdgeMetric & WithDimension(const char *value)
Definition: EdgeMetric.h:79
Aws
Definition: AccessManagementClient.h:15
Aws::SagemakerEdgeManager::Model::EdgeMetric::SetDimension
void SetDimension(Aws::String &&value)
Definition: EdgeMetric.h:59
Aws::SagemakerEdgeManager::Model::EdgeMetric::WithTimestamp
EdgeMetric & WithTimestamp(const Aws::Utils::DateTime &value)
Definition: EdgeMetric.h:167
Aws::SagemakerEdgeManager::Model::EdgeMetric::WithMetricName
EdgeMetric & WithMetricName(const Aws::String &value)
Definition: EdgeMetric.h:110
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SagemakerEdgeManager::Model::EdgeMetric::WithDimension
EdgeMetric & WithDimension(Aws::String &&value)
Definition: EdgeMetric.h:74
Aws::SagemakerEdgeManager::Model::EdgeMetric::EdgeMetric
EdgeMetric()
Aws::SagemakerEdgeManager::Model::EdgeMetric::DimensionHasBeenSet
bool DimensionHasBeenSet() const
Definition: EdgeMetric.h:49