AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
MetricKeyDataPoints.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/pi/PI_EXPORTS.h>
9#include <aws/pi/model/DataPoint.h>
10#include <aws/pi/model/ResponseResourceMetricKey.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace PI {
22namespace Model {
23
31 public:
32 AWS_PI_API MetricKeyDataPoints() = default;
36
38
41 inline const ResponseResourceMetricKey& GetKey() const { return m_key; }
42 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
43 template <typename KeyT = ResponseResourceMetricKey>
44 void SetKey(KeyT&& value) {
45 m_keyHasBeenSet = true;
46 m_key = std::forward<KeyT>(value);
47 }
48 template <typename KeyT = ResponseResourceMetricKey>
50 SetKey(std::forward<KeyT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<DataPoint>& GetDataPoints() const { return m_dataPoints; }
61 inline bool DataPointsHasBeenSet() const { return m_dataPointsHasBeenSet; }
62 template <typename DataPointsT = Aws::Vector<DataPoint>>
63 void SetDataPoints(DataPointsT&& value) {
64 m_dataPointsHasBeenSet = true;
65 m_dataPoints = std::forward<DataPointsT>(value);
66 }
67 template <typename DataPointsT = Aws::Vector<DataPoint>>
68 MetricKeyDataPoints& WithDataPoints(DataPointsT&& value) {
69 SetDataPoints(std::forward<DataPointsT>(value));
70 return *this;
71 }
72 template <typename DataPointsT = DataPoint>
73 MetricKeyDataPoints& AddDataPoints(DataPointsT&& value) {
74 m_dataPointsHasBeenSet = true;
75 m_dataPoints.emplace_back(std::forward<DataPointsT>(value));
76 return *this;
77 }
79 private:
81
82 Aws::Vector<DataPoint> m_dataPoints;
83 bool m_keyHasBeenSet = false;
84 bool m_dataPointsHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace PI
89} // namespace Aws
AWS_PI_API MetricKeyDataPoints(Aws::Utils::Json::JsonView jsonValue)
MetricKeyDataPoints & WithKey(KeyT &&value)
MetricKeyDataPoints & WithDataPoints(DataPointsT &&value)
AWS_PI_API MetricKeyDataPoints()=default
AWS_PI_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PI_API MetricKeyDataPoints & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricKeyDataPoints & AddDataPoints(DataPointsT &&value)
const Aws::Vector< DataPoint > & GetDataPoints() const
void SetDataPoints(DataPointsT &&value)
const ResponseResourceMetricKey & GetKey() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue