AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
41
42
44
47 inline const ResponseResourceMetricKey& GetKey() const{ return m_key; }
48 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
49 inline void SetKey(const ResponseResourceMetricKey& value) { m_keyHasBeenSet = true; m_key = value; }
50 inline void SetKey(ResponseResourceMetricKey&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
51 inline MetricKeyDataPoints& WithKey(const ResponseResourceMetricKey& value) { SetKey(value); return *this;}
52 inline MetricKeyDataPoints& WithKey(ResponseResourceMetricKey&& value) { SetKey(std::move(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 inline void SetDataPoints(const Aws::Vector<DataPoint>& value) { m_dataPointsHasBeenSet = true; m_dataPoints = value; }
63 inline void SetDataPoints(Aws::Vector<DataPoint>&& value) { m_dataPointsHasBeenSet = true; m_dataPoints = std::move(value); }
64 inline MetricKeyDataPoints& WithDataPoints(const Aws::Vector<DataPoint>& value) { SetDataPoints(value); return *this;}
65 inline MetricKeyDataPoints& WithDataPoints(Aws::Vector<DataPoint>&& value) { SetDataPoints(std::move(value)); return *this;}
66 inline MetricKeyDataPoints& AddDataPoints(const DataPoint& value) { m_dataPointsHasBeenSet = true; m_dataPoints.push_back(value); return *this; }
67 inline MetricKeyDataPoints& AddDataPoints(DataPoint&& value) { m_dataPointsHasBeenSet = true; m_dataPoints.push_back(std::move(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
MetricKeyDataPoints & AddDataPoints(DataPoint &&value)
AWS_PI_API MetricKeyDataPoints(Aws::Utils::Json::JsonView jsonValue)
MetricKeyDataPoints & WithDataPoints(Aws::Vector< DataPoint > &&value)
MetricKeyDataPoints & WithDataPoints(const Aws::Vector< DataPoint > &value)
MetricKeyDataPoints & WithKey(ResponseResourceMetricKey &&value)
AWS_PI_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PI_API MetricKeyDataPoints & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetKey(ResponseResourceMetricKey &&value)
void SetDataPoints(const Aws::Vector< DataPoint > &value)
void SetKey(const ResponseResourceMetricKey &value)
const Aws::Vector< DataPoint > & GetDataPoints() const
MetricKeyDataPoints & AddDataPoints(const DataPoint &value)
MetricKeyDataPoints & WithKey(const ResponseResourceMetricKey &value)
const ResponseResourceMetricKey & GetKey() const
void SetDataPoints(Aws::Vector< DataPoint > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue