AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
FrameMetricDatum.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/codeguruprofiler/model/FrameMetric.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeGuruProfiler {
21namespace Model {
22
30 public:
31 AWS_CODEGURUPROFILER_API FrameMetricDatum() = default;
32 AWS_CODEGURUPROFILER_API FrameMetricDatum(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEGURUPROFILER_API FrameMetricDatum& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline const FrameMetric& GetFrameMetric() const { return m_frameMetric; }
39 inline bool FrameMetricHasBeenSet() const { return m_frameMetricHasBeenSet; }
40 template <typename FrameMetricT = FrameMetric>
41 void SetFrameMetric(FrameMetricT&& value) {
42 m_frameMetricHasBeenSet = true;
43 m_frameMetric = std::forward<FrameMetricT>(value);
44 }
45 template <typename FrameMetricT = FrameMetric>
46 FrameMetricDatum& WithFrameMetric(FrameMetricT&& value) {
47 SetFrameMetric(std::forward<FrameMetricT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Vector<double>& GetValues() const { return m_values; }
57 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
58 template <typename ValuesT = Aws::Vector<double>>
59 void SetValues(ValuesT&& value) {
60 m_valuesHasBeenSet = true;
61 m_values = std::forward<ValuesT>(value);
62 }
63 template <typename ValuesT = Aws::Vector<double>>
64 FrameMetricDatum& WithValues(ValuesT&& value) {
65 SetValues(std::forward<ValuesT>(value));
66 return *this;
67 }
68 inline FrameMetricDatum& AddValues(double value) {
69 m_valuesHasBeenSet = true;
70 m_values.push_back(value);
71 return *this;
72 }
74 private:
75 FrameMetric m_frameMetric;
76
77 Aws::Vector<double> m_values;
78 bool m_frameMetricHasBeenSet = false;
79 bool m_valuesHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace CodeGuruProfiler
84} // namespace Aws
AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEGURUPROFILER_API FrameMetricDatum & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEGURUPROFILER_API FrameMetricDatum(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< double > & GetValues() const
FrameMetricDatum & WithValues(ValuesT &&value)
AWS_CODEGURUPROFILER_API FrameMetricDatum()=default
FrameMetricDatum & AddValues(double value)
FrameMetricDatum & WithFrameMetric(FrameMetricT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue