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