AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
MetricKeyDataPoints.h
1
6#pragma once
7#include <aws/pi/PI_EXPORTS.h>
8#include <aws/pi/model/ResponseResourceMetricKey.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/pi/model/DataPoint.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace PI
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_PI_API MetricKeyDataPoints() = default;
41
42
44
47 inline const ResponseResourceMetricKey& GetKey() const { return m_key; }
48 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
49 template<typename KeyT = ResponseResourceMetricKey>
50 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
51 template<typename KeyT = ResponseResourceMetricKey>
52 MetricKeyDataPoints& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
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) { m_dataPointsHasBeenSet = true; m_dataPoints = std::forward<DataPointsT>(value); }
64 template<typename DataPointsT = Aws::Vector<DataPoint>>
65 MetricKeyDataPoints& WithDataPoints(DataPointsT&& value) { SetDataPoints(std::forward<DataPointsT>(value)); return *this;}
66 template<typename DataPointsT = DataPoint>
67 MetricKeyDataPoints& AddDataPoints(DataPointsT&& value) { m_dataPointsHasBeenSet = true; m_dataPoints.emplace_back(std::forward<DataPointsT>(value)); return *this; }
69 private:
70
72 bool m_keyHasBeenSet = false;
73
74 Aws::Vector<DataPoint> m_dataPoints;
75 bool m_dataPointsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace PI
80} // 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