AWS SDK for C++  1.9.104
AWS SDK for C++
GetRelationalDatabaseMetricDataResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace Lightsail
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const RelationalDatabaseMetricName& GetMetricName() const{ return m_metricName; }
41 
45  inline void SetMetricName(const RelationalDatabaseMetricName& value) { m_metricName = value; }
46 
50  inline void SetMetricName(RelationalDatabaseMetricName&& value) { m_metricName = std::move(value); }
51 
55  inline GetRelationalDatabaseMetricDataResult& WithMetricName(const RelationalDatabaseMetricName& value) { SetMetricName(value); return *this;}
56 
60  inline GetRelationalDatabaseMetricDataResult& WithMetricName(RelationalDatabaseMetricName&& value) { SetMetricName(std::move(value)); return *this;}
61 
62 
66  inline const Aws::Vector<MetricDatapoint>& GetMetricData() const{ return m_metricData; }
67 
71  inline void SetMetricData(const Aws::Vector<MetricDatapoint>& value) { m_metricData = value; }
72 
76  inline void SetMetricData(Aws::Vector<MetricDatapoint>&& value) { m_metricData = std::move(value); }
77 
81  inline GetRelationalDatabaseMetricDataResult& WithMetricData(const Aws::Vector<MetricDatapoint>& value) { SetMetricData(value); return *this;}
82 
86  inline GetRelationalDatabaseMetricDataResult& WithMetricData(Aws::Vector<MetricDatapoint>&& value) { SetMetricData(std::move(value)); return *this;}
87 
91  inline GetRelationalDatabaseMetricDataResult& AddMetricData(const MetricDatapoint& value) { m_metricData.push_back(value); return *this; }
92 
96  inline GetRelationalDatabaseMetricDataResult& AddMetricData(MetricDatapoint&& value) { m_metricData.push_back(std::move(value)); return *this; }
97 
98  private:
99 
100  RelationalDatabaseMetricName m_metricName;
101 
102  Aws::Vector<MetricDatapoint> m_metricData;
103  };
104 
105 } // namespace Model
106 } // namespace Lightsail
107 } // namespace Aws
MetricDatapoint.h
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataResult
Definition: GetRelationalDatabaseMetricDataResult.h:30
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataResult::SetMetricData
void SetMetricData(Aws::Vector< MetricDatapoint > &&value)
Definition: GetRelationalDatabaseMetricDataResult.h:76
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataResult::GetRelationalDatabaseMetricDataResult
GetRelationalDatabaseMetricDataResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lightsail::Model::MetricDatapoint
Definition: MetricDatapoint.h:33
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataResult::WithMetricData
GetRelationalDatabaseMetricDataResult & WithMetricData(Aws::Vector< MetricDatapoint > &&value)
Definition: GetRelationalDatabaseMetricDataResult.h:86
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataResult::AddMetricData
GetRelationalDatabaseMetricDataResult & AddMetricData(MetricDatapoint &&value)
Definition: GetRelationalDatabaseMetricDataResult.h:96
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataResult::WithMetricData
GetRelationalDatabaseMetricDataResult & WithMetricData(const Aws::Vector< MetricDatapoint > &value)
Definition: GetRelationalDatabaseMetricDataResult.h:81
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataResult::SetMetricName
void SetMetricName(const RelationalDatabaseMetricName &value)
Definition: GetRelationalDatabaseMetricDataResult.h:45
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataResult::GetMetricName
const RelationalDatabaseMetricName & GetMetricName() const
Definition: GetRelationalDatabaseMetricDataResult.h:40
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataResult::AddMetricData
GetRelationalDatabaseMetricDataResult & AddMetricData(const MetricDatapoint &value)
Definition: GetRelationalDatabaseMetricDataResult.h:91
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataResult::GetMetricData
const Aws::Vector< MetricDatapoint > & GetMetricData() const
Definition: GetRelationalDatabaseMetricDataResult.h:66
Lightsail_EXPORTS.h
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataResult::GetRelationalDatabaseMetricDataResult
GetRelationalDatabaseMetricDataResult()
RelationalDatabaseMetricName.h
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataResult::SetMetricName
void SetMetricName(RelationalDatabaseMetricName &&value)
Definition: GetRelationalDatabaseMetricDataResult.h:50
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataResult::WithMetricName
GetRelationalDatabaseMetricDataResult & WithMetricName(RelationalDatabaseMetricName &&value)
Definition: GetRelationalDatabaseMetricDataResult.h:60
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataResult::SetMetricData
void SetMetricData(const Aws::Vector< MetricDatapoint > &value)
Definition: GetRelationalDatabaseMetricDataResult.h:71
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataResult::operator=
GetRelationalDatabaseMetricDataResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::RelationalDatabaseMetricName
RelationalDatabaseMetricName
Definition: RelationalDatabaseMetricName.h:17
Aws::Lightsail::Model::GetRelationalDatabaseMetricDataResult::WithMetricName
GetRelationalDatabaseMetricDataResult & WithMetricName(const RelationalDatabaseMetricName &value)
Definition: GetRelationalDatabaseMetricDataResult.h:55