AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeGuruProfiler
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODEGURUPROFILER_API FrameMetricDatum() = default;
37 AWS_CODEGURUPROFILER_API FrameMetricDatum(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEGURUPROFILER_API FrameMetricDatum& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
44 inline const FrameMetric& GetFrameMetric() const { return m_frameMetric; }
45 inline bool FrameMetricHasBeenSet() const { return m_frameMetricHasBeenSet; }
46 template<typename FrameMetricT = FrameMetric>
47 void SetFrameMetric(FrameMetricT&& value) { m_frameMetricHasBeenSet = true; m_frameMetric = std::forward<FrameMetricT>(value); }
48 template<typename FrameMetricT = FrameMetric>
49 FrameMetricDatum& WithFrameMetric(FrameMetricT&& value) { SetFrameMetric(std::forward<FrameMetricT>(value)); return *this;}
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) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
60 template<typename ValuesT = Aws::Vector<double>>
61 FrameMetricDatum& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
62 inline FrameMetricDatum& AddValues(double value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
64 private:
65
66 FrameMetric m_frameMetric;
67 bool m_frameMetricHasBeenSet = false;
68
69 Aws::Vector<double> m_values;
70 bool m_valuesHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace CodeGuruProfiler
75} // 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