AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFrameMetric(const FrameMetric& value) { m_frameMetricHasBeenSet = true; m_frameMetric = value; }
47 inline void SetFrameMetric(FrameMetric&& value) { m_frameMetricHasBeenSet = true; m_frameMetric = std::move(value); }
48 inline FrameMetricDatum& WithFrameMetric(const FrameMetric& value) { SetFrameMetric(value); return *this;}
49 inline FrameMetricDatum& WithFrameMetric(FrameMetric&& value) { SetFrameMetric(std::move(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 inline void SetValues(const Aws::Vector<double>& value) { m_valuesHasBeenSet = true; m_values = value; }
59 inline void SetValues(Aws::Vector<double>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
60 inline FrameMetricDatum& WithValues(const Aws::Vector<double>& value) { SetValues(value); return *this;}
61 inline FrameMetricDatum& WithValues(Aws::Vector<double>&& value) { SetValues(std::move(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 FrameMetricDatum()
void SetFrameMetric(const FrameMetric &value)
AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEGURUPROFILER_API FrameMetricDatum & operator=(Aws::Utils::Json::JsonView jsonValue)
FrameMetricDatum & WithFrameMetric(FrameMetric &&value)
FrameMetricDatum & WithValues(Aws::Vector< double > &&value)
FrameMetricDatum & WithFrameMetric(const FrameMetric &value)
AWS_CODEGURUPROFILER_API FrameMetricDatum(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< double > & GetValues() const
void SetValues(Aws::Vector< double > &&value)
FrameMetricDatum & AddValues(double value)
void SetValues(const Aws::Vector< double > &value)
FrameMetricDatum & WithValues(const Aws::Vector< double > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue