AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricDatum.h
1
6#pragma once
7#include <aws/mwaa/MWAA_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/mwaa/model/Unit.h>
12#include <aws/mwaa/model/StatisticSet.h>
13#include <aws/mwaa/model/Dimension.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace MWAA
27{
28namespace Model
29{
30
40 {
41 public:
42 AWS_MWAA_API MetricDatum();
43 AWS_MWAA_API MetricDatum(Aws::Utils::Json::JsonView jsonValue);
46
47
49
52 inline const Aws::String& GetMetricName() const{ return m_metricName; }
53 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
54 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
55 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
56 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
57 inline MetricDatum& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
58 inline MetricDatum& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
59 inline MetricDatum& WithMetricName(const char* value) { SetMetricName(value); return *this;}
61
63
66 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
67 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
68 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
69 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
70 inline MetricDatum& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
71 inline MetricDatum& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
73
75
78 inline const Aws::Vector<Dimension>& GetDimensions() const{ return m_dimensions; }
79 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
80 inline void SetDimensions(const Aws::Vector<Dimension>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
81 inline void SetDimensions(Aws::Vector<Dimension>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
82 inline MetricDatum& WithDimensions(const Aws::Vector<Dimension>& value) { SetDimensions(value); return *this;}
83 inline MetricDatum& WithDimensions(Aws::Vector<Dimension>&& value) { SetDimensions(std::move(value)); return *this;}
84 inline MetricDatum& AddDimensions(const Dimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
85 inline MetricDatum& AddDimensions(Dimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; }
87
89
92 inline double GetValue() const{ return m_value; }
93 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
94 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
95 inline MetricDatum& WithValue(double value) { SetValue(value); return *this;}
97
99
102 inline const Unit& GetUnit() const{ return m_unit; }
103 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
104 inline void SetUnit(const Unit& value) { m_unitHasBeenSet = true; m_unit = value; }
105 inline void SetUnit(Unit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
106 inline MetricDatum& WithUnit(const Unit& value) { SetUnit(value); return *this;}
107 inline MetricDatum& WithUnit(Unit&& value) { SetUnit(std::move(value)); return *this;}
109
111
114 inline const StatisticSet& GetStatisticValues() const{ return m_statisticValues; }
115 inline bool StatisticValuesHasBeenSet() const { return m_statisticValuesHasBeenSet; }
116 inline void SetStatisticValues(const StatisticSet& value) { m_statisticValuesHasBeenSet = true; m_statisticValues = value; }
117 inline void SetStatisticValues(StatisticSet&& value) { m_statisticValuesHasBeenSet = true; m_statisticValues = std::move(value); }
118 inline MetricDatum& WithStatisticValues(const StatisticSet& value) { SetStatisticValues(value); return *this;}
119 inline MetricDatum& WithStatisticValues(StatisticSet&& value) { SetStatisticValues(std::move(value)); return *this;}
121 private:
122
123 Aws::String m_metricName;
124 bool m_metricNameHasBeenSet = false;
125
126 Aws::Utils::DateTime m_timestamp;
127 bool m_timestampHasBeenSet = false;
128
129 Aws::Vector<Dimension> m_dimensions;
130 bool m_dimensionsHasBeenSet = false;
131
132 double m_value;
133 bool m_valueHasBeenSet = false;
134
135 Unit m_unit;
136 bool m_unitHasBeenSet = false;
137
138 StatisticSet m_statisticValues;
139 bool m_statisticValuesHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace MWAA
144} // namespace Aws
MetricDatum & WithStatisticValues(StatisticSet &&value)
void SetMetricName(const char *value)
Definition MetricDatum.h:56
MetricDatum & WithDimensions(const Aws::Vector< Dimension > &value)
Definition MetricDatum.h:82
void SetValue(double value)
Definition MetricDatum.h:94
void SetUnit(const Unit &value)
MetricDatum & WithMetricName(const Aws::String &value)
Definition MetricDatum.h:57
void SetStatisticValues(StatisticSet &&value)
MetricDatum & WithValue(double value)
Definition MetricDatum.h:95
MetricDatum & WithMetricName(Aws::String &&value)
Definition MetricDatum.h:58
MetricDatum & WithTimestamp(const Aws::Utils::DateTime &value)
Definition MetricDatum.h:70
bool StatisticValuesHasBeenSet() const
void SetTimestamp(Aws::Utils::DateTime &&value)
Definition MetricDatum.h:69
MetricDatum & WithUnit(const Unit &value)
AWS_MWAA_API MetricDatum & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricDatum & AddDimensions(const Dimension &value)
Definition MetricDatum.h:84
MetricDatum & WithStatisticValues(const StatisticSet &value)
void SetUnit(Unit &&value)
const Aws::String & GetMetricName() const
Definition MetricDatum.h:52
void SetTimestamp(const Aws::Utils::DateTime &value)
Definition MetricDatum.h:68
MetricDatum & WithUnit(Unit &&value)
const Unit & GetUnit() const
void SetMetricName(const Aws::String &value)
Definition MetricDatum.h:54
MetricDatum & WithMetricName(const char *value)
Definition MetricDatum.h:59
const StatisticSet & GetStatisticValues() const
void SetDimensions(const Aws::Vector< Dimension > &value)
Definition MetricDatum.h:80
void SetStatisticValues(const StatisticSet &value)
AWS_MWAA_API MetricDatum(Aws::Utils::Json::JsonView jsonValue)
MetricDatum & AddDimensions(Dimension &&value)
Definition MetricDatum.h:85
MetricDatum & WithDimensions(Aws::Vector< Dimension > &&value)
Definition MetricDatum.h:83
const Aws::Vector< Dimension > & GetDimensions() const
Definition MetricDatum.h:78
void SetMetricName(Aws::String &&value)
Definition MetricDatum.h:55
void SetDimensions(Aws::Vector< Dimension > &&value)
Definition MetricDatum.h:81
AWS_MWAA_API Aws::Utils::Json::JsonValue Jsonize() const
MetricDatum & WithTimestamp(Aws::Utils::DateTime &&value)
Definition MetricDatum.h:71
const Aws::Utils::DateTime & GetTimestamp() const
Definition MetricDatum.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue