AWS SDK for C++  1.9.20
AWS SDK for C++
GetInstanceMetricDataResult.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 InstanceMetricName& GetMetricName() const{ return m_metricName; }
41 
45  inline void SetMetricName(const InstanceMetricName& value) { m_metricName = value; }
46 
50  inline void SetMetricName(InstanceMetricName&& value) { m_metricName = std::move(value); }
51 
55  inline GetInstanceMetricDataResult& WithMetricName(const InstanceMetricName& value) { SetMetricName(value); return *this;}
56 
60  inline GetInstanceMetricDataResult& WithMetricName(InstanceMetricName&& 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 GetInstanceMetricDataResult& WithMetricData(const Aws::Vector<MetricDatapoint>& value) { SetMetricData(value); return *this;}
82 
86  inline GetInstanceMetricDataResult& WithMetricData(Aws::Vector<MetricDatapoint>&& value) { SetMetricData(std::move(value)); return *this;}
87 
91  inline GetInstanceMetricDataResult& AddMetricData(const MetricDatapoint& value) { m_metricData.push_back(value); return *this; }
92 
96  inline GetInstanceMetricDataResult& AddMetricData(MetricDatapoint&& value) { m_metricData.push_back(std::move(value)); return *this; }
97 
98  private:
99 
100  InstanceMetricName m_metricName;
101 
102  Aws::Vector<MetricDatapoint> m_metricData;
103  };
104 
105 } // namespace Model
106 } // namespace Lightsail
107 } // namespace Aws
MetricDatapoint.h
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Lightsail::Model::GetInstanceMetricDataResult::SetMetricName
void SetMetricName(const InstanceMetricName &value)
Definition: GetInstanceMetricDataResult.h:45
Aws::Lightsail::Model::MetricDatapoint
Definition: MetricDatapoint.h:33
Aws::Lightsail::Model::GetInstanceMetricDataResult::WithMetricData
GetInstanceMetricDataResult & WithMetricData(Aws::Vector< MetricDatapoint > &&value)
Definition: GetInstanceMetricDataResult.h:86
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
InstanceMetricName.h
AWSVector.h
Aws::Lightsail::Model::GetInstanceMetricDataResult::GetInstanceMetricDataResult
GetInstanceMetricDataResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lightsail::Model::GetInstanceMetricDataResult::operator=
GetInstanceMetricDataResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lightsail::Model::GetInstanceMetricDataResult::WithMetricData
GetInstanceMetricDataResult & WithMetricData(const Aws::Vector< MetricDatapoint > &value)
Definition: GetInstanceMetricDataResult.h:81
Aws::Lightsail::Model::GetInstanceMetricDataResult::GetInstanceMetricDataResult
GetInstanceMetricDataResult()
Aws::Lightsail::Model::GetInstanceMetricDataResult::AddMetricData
GetInstanceMetricDataResult & AddMetricData(const MetricDatapoint &value)
Definition: GetInstanceMetricDataResult.h:91
Aws::Lightsail::Model::GetInstanceMetricDataResult::WithMetricName
GetInstanceMetricDataResult & WithMetricName(const InstanceMetricName &value)
Definition: GetInstanceMetricDataResult.h:55
Aws::Lightsail::Model::GetInstanceMetricDataResult
Definition: GetInstanceMetricDataResult.h:30
Aws::Lightsail::Model::GetInstanceMetricDataResult::SetMetricName
void SetMetricName(InstanceMetricName &&value)
Definition: GetInstanceMetricDataResult.h:50
Lightsail_EXPORTS.h
Aws::Lightsail::Model::GetInstanceMetricDataResult::WithMetricName
GetInstanceMetricDataResult & WithMetricName(InstanceMetricName &&value)
Definition: GetInstanceMetricDataResult.h:60
Aws::Lightsail::Model::GetInstanceMetricDataResult::AddMetricData
GetInstanceMetricDataResult & AddMetricData(MetricDatapoint &&value)
Definition: GetInstanceMetricDataResult.h:96
Aws::Lightsail::Model::GetInstanceMetricDataResult::GetMetricData
const Aws::Vector< MetricDatapoint > & GetMetricData() const
Definition: GetInstanceMetricDataResult.h:66
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::GetInstanceMetricDataResult::SetMetricData
void SetMetricData(const Aws::Vector< MetricDatapoint > &value)
Definition: GetInstanceMetricDataResult.h:71
Aws::Lightsail::Model::GetInstanceMetricDataResult::GetMetricName
const InstanceMetricName & GetMetricName() const
Definition: GetInstanceMetricDataResult.h:40
Aws::Lightsail::Model::GetInstanceMetricDataResult::SetMetricData
void SetMetricData(Aws::Vector< MetricDatapoint > &&value)
Definition: GetInstanceMetricDataResult.h:76
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::InstanceMetricName
InstanceMetricName
Definition: InstanceMetricName.h:17