AWS SDK for C++

AWS SDK for C++ Version 1.11.911

Loading...
Searching...
No Matches
Data.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/pi/PI_EXPORTS.h>
9#include <aws/pi/model/PerformanceInsightsMetric.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace PI {
20namespace Model {
21
31class Data {
32 public:
33 AWS_PI_API Data() = default;
34 AWS_PI_API Data(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_PI_API Data& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_PI_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
44 inline const PerformanceInsightsMetric& GetPerformanceInsightsMetric() const { return m_performanceInsightsMetric; }
45 inline bool PerformanceInsightsMetricHasBeenSet() const { return m_performanceInsightsMetricHasBeenSet; }
46 template <typename PerformanceInsightsMetricT = PerformanceInsightsMetric>
47 void SetPerformanceInsightsMetric(PerformanceInsightsMetricT&& value) {
48 m_performanceInsightsMetricHasBeenSet = true;
49 m_performanceInsightsMetric = std::forward<PerformanceInsightsMetricT>(value);
50 }
51 template <typename PerformanceInsightsMetricT = PerformanceInsightsMetric>
52 Data& WithPerformanceInsightsMetric(PerformanceInsightsMetricT&& value) {
53 SetPerformanceInsightsMetric(std::forward<PerformanceInsightsMetricT>(value));
54 return *this;
55 }
57 private:
58 PerformanceInsightsMetric m_performanceInsightsMetric;
59 bool m_performanceInsightsMetricHasBeenSet = false;
60};
61
62} // namespace Model
63} // namespace PI
64} // namespace Aws
const PerformanceInsightsMetric & GetPerformanceInsightsMetric() const
Definition Data.h:44
Data & WithPerformanceInsightsMetric(PerformanceInsightsMetricT &&value)
Definition Data.h:52
void SetPerformanceInsightsMetric(PerformanceInsightsMetricT &&value)
Definition Data.h:47
AWS_PI_API Data()=default
bool PerformanceInsightsMetricHasBeenSet() const
Definition Data.h:45
AWS_PI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_PI_API Data & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_PI_API Data(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)