AWS SDK for C++  1.9.123
AWS SDK for C++
GetBucketsAggregationResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
9 #include <aws/iot/model/Bucket.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace IoT
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
40  inline int GetTotalCount() const{ return m_totalCount; }
41 
46  inline void SetTotalCount(int value) { m_totalCount = value; }
47 
52  inline GetBucketsAggregationResult& WithTotalCount(int value) { SetTotalCount(value); return *this;}
53 
54 
61  inline const Aws::Vector<Bucket>& GetBuckets() const{ return m_buckets; }
62 
69  inline void SetBuckets(const Aws::Vector<Bucket>& value) { m_buckets = value; }
70 
77  inline void SetBuckets(Aws::Vector<Bucket>&& value) { m_buckets = std::move(value); }
78 
85  inline GetBucketsAggregationResult& WithBuckets(const Aws::Vector<Bucket>& value) { SetBuckets(value); return *this;}
86 
93  inline GetBucketsAggregationResult& WithBuckets(Aws::Vector<Bucket>&& value) { SetBuckets(std::move(value)); return *this;}
94 
101  inline GetBucketsAggregationResult& AddBuckets(const Bucket& value) { m_buckets.push_back(value); return *this; }
102 
109  inline GetBucketsAggregationResult& AddBuckets(Bucket&& value) { m_buckets.push_back(std::move(value)); return *this; }
110 
111  private:
112 
113  int m_totalCount;
114 
115  Aws::Vector<Bucket> m_buckets;
116  };
117 
118 } // namespace Model
119 } // namespace IoT
120 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::IoT::Model::GetBucketsAggregationResult::GetTotalCount
int GetTotalCount() const
Definition: GetBucketsAggregationResult.h:40
Aws::IoT::Model::GetBucketsAggregationResult
Definition: GetBucketsAggregationResult.h:29
Aws::IoT::Model::GetBucketsAggregationResult::AddBuckets
GetBucketsAggregationResult & AddBuckets(Bucket &&value)
Definition: GetBucketsAggregationResult.h:109
Bucket.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::GetBucketsAggregationResult::WithBuckets
GetBucketsAggregationResult & WithBuckets(const Aws::Vector< Bucket > &value)
Definition: GetBucketsAggregationResult.h:85
AWSVector.h
Aws::IoT::Model::GetBucketsAggregationResult::AddBuckets
GetBucketsAggregationResult & AddBuckets(const Bucket &value)
Definition: GetBucketsAggregationResult.h:101
Aws::IoT::Model::Bucket
Definition: Bucket.h:33
Aws::IoT::Model::GetBucketsAggregationResult::SetBuckets
void SetBuckets(Aws::Vector< Bucket > &&value)
Definition: GetBucketsAggregationResult.h:77
Aws::IoT::Model::GetBucketsAggregationResult::GetBucketsAggregationResult
GetBucketsAggregationResult()
Aws::IoT::Model::GetBucketsAggregationResult::WithTotalCount
GetBucketsAggregationResult & WithTotalCount(int value)
Definition: GetBucketsAggregationResult.h:52
Aws::IoT::Model::GetBucketsAggregationResult::GetBuckets
const Aws::Vector< Bucket > & GetBuckets() const
Definition: GetBucketsAggregationResult.h:61
Aws::IoT::Model::GetBucketsAggregationResult::SetTotalCount
void SetTotalCount(int value)
Definition: GetBucketsAggregationResult.h:46
Aws::IoT::Model::GetBucketsAggregationResult::operator=
GetBucketsAggregationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::GetBucketsAggregationResult::SetBuckets
void SetBuckets(const Aws::Vector< Bucket > &value)
Definition: GetBucketsAggregationResult.h:69
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::GetBucketsAggregationResult::GetBucketsAggregationResult
GetBucketsAggregationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::IoT::Model::GetBucketsAggregationResult::WithBuckets
GetBucketsAggregationResult & WithBuckets(Aws::Vector< Bucket > &&value)
Definition: GetBucketsAggregationResult.h:93
IoT_EXPORTS.h