AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RDSDatabaseProjectedMetric.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/RDSDBMetricName.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.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 ComputeOptimizer
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_COMPUTEOPTIMIZER_API RDSDatabaseProjectedMetric();
40 AWS_COMPUTEOPTIMIZER_API RDSDatabaseProjectedMetric(Aws::Utils::Json::JsonView jsonValue);
42 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const RDSDBMetricName& GetName() const{ return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(const RDSDBMetricName& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(RDSDBMetricName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline RDSDatabaseProjectedMetric& WithName(const RDSDBMetricName& value) { SetName(value); return *this;}
54 inline RDSDatabaseProjectedMetric& WithName(RDSDBMetricName&& value) { SetName(std::move(value)); return *this;}
56
58
61 inline const Aws::Vector<Aws::Utils::DateTime>& GetTimestamps() const{ return m_timestamps; }
62 inline bool TimestampsHasBeenSet() const { return m_timestampsHasBeenSet; }
63 inline void SetTimestamps(const Aws::Vector<Aws::Utils::DateTime>& value) { m_timestampsHasBeenSet = true; m_timestamps = value; }
64 inline void SetTimestamps(Aws::Vector<Aws::Utils::DateTime>&& value) { m_timestampsHasBeenSet = true; m_timestamps = std::move(value); }
67 inline RDSDatabaseProjectedMetric& AddTimestamps(const Aws::Utils::DateTime& value) { m_timestampsHasBeenSet = true; m_timestamps.push_back(value); return *this; }
68 inline RDSDatabaseProjectedMetric& AddTimestamps(Aws::Utils::DateTime&& value) { m_timestampsHasBeenSet = true; m_timestamps.push_back(std::move(value)); return *this; }
70
72
75 inline const Aws::Vector<double>& GetValues() const{ return m_values; }
76 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
77 inline void SetValues(const Aws::Vector<double>& value) { m_valuesHasBeenSet = true; m_values = value; }
78 inline void SetValues(Aws::Vector<double>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
79 inline RDSDatabaseProjectedMetric& WithValues(const Aws::Vector<double>& value) { SetValues(value); return *this;}
80 inline RDSDatabaseProjectedMetric& WithValues(Aws::Vector<double>&& value) { SetValues(std::move(value)); return *this;}
81 inline RDSDatabaseProjectedMetric& AddValues(double value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
83 private:
84
85 RDSDBMetricName m_name;
86 bool m_nameHasBeenSet = false;
87
89 bool m_timestampsHasBeenSet = false;
90
91 Aws::Vector<double> m_values;
92 bool m_valuesHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace ComputeOptimizer
97} // namespace Aws
void SetTimestamps(Aws::Vector< Aws::Utils::DateTime > &&value)
RDSDatabaseProjectedMetric & WithName(RDSDBMetricName &&value)
AWS_COMPUTEOPTIMIZER_API RDSDatabaseProjectedMetric(Aws::Utils::Json::JsonView jsonValue)
RDSDatabaseProjectedMetric & WithValues(Aws::Vector< double > &&value)
RDSDatabaseProjectedMetric & AddTimestamps(Aws::Utils::DateTime &&value)
const Aws::Vector< Aws::Utils::DateTime > & GetTimestamps() const
void SetTimestamps(const Aws::Vector< Aws::Utils::DateTime > &value)
RDSDatabaseProjectedMetric & WithTimestamps(Aws::Vector< Aws::Utils::DateTime > &&value)
RDSDatabaseProjectedMetric & WithTimestamps(const Aws::Vector< Aws::Utils::DateTime > &value)
RDSDatabaseProjectedMetric & WithName(const RDSDBMetricName &value)
AWS_COMPUTEOPTIMIZER_API RDSDatabaseProjectedMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
RDSDatabaseProjectedMetric & AddTimestamps(const Aws::Utils::DateTime &value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
RDSDatabaseProjectedMetric & WithValues(const Aws::Vector< double > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue