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