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