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