AWS SDK for C++  1.9.176
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 
39  inline int GetTotalCount() const{ return m_totalCount; }
40 
44  inline void SetTotalCount(int value) { m_totalCount = value; }
45 
49  inline GetBucketsAggregationResult& WithTotalCount(int value) { SetTotalCount(value); return *this;}
50 
51 
58  inline const Aws::Vector<Bucket>& GetBuckets() const{ return m_buckets; }
59 
66  inline void SetBuckets(const Aws::Vector<Bucket>& value) { m_buckets = value; }
67 
74  inline void SetBuckets(Aws::Vector<Bucket>&& value) { m_buckets = std::move(value); }
75 
82  inline GetBucketsAggregationResult& WithBuckets(const Aws::Vector<Bucket>& value) { SetBuckets(value); return *this;}
83 
90  inline GetBucketsAggregationResult& WithBuckets(Aws::Vector<Bucket>&& value) { SetBuckets(std::move(value)); return *this;}
91 
98  inline GetBucketsAggregationResult& AddBuckets(const Bucket& value) { m_buckets.push_back(value); return *this; }
99 
106  inline GetBucketsAggregationResult& AddBuckets(Bucket&& value) { m_buckets.push_back(std::move(value)); return *this; }
107 
108  private:
109 
110  int m_totalCount;
111 
112  Aws::Vector<Bucket> m_buckets;
113  };
114 
115 } // namespace Model
116 } // namespace IoT
117 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::IoT::Model::GetBucketsAggregationResult::GetTotalCount
int GetTotalCount() const
Definition: GetBucketsAggregationResult.h:39
Aws::IoT::Model::GetBucketsAggregationResult
Definition: GetBucketsAggregationResult.h:29
Aws::IoT::Model::GetBucketsAggregationResult::AddBuckets
GetBucketsAggregationResult & AddBuckets(Bucket &&value)
Definition: GetBucketsAggregationResult.h:106
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:82
AWSVector.h
Aws::IoT::Model::GetBucketsAggregationResult::AddBuckets
GetBucketsAggregationResult & AddBuckets(const Bucket &value)
Definition: GetBucketsAggregationResult.h:98
Aws::IoT::Model::Bucket
Definition: Bucket.h:33
Aws::IoT::Model::GetBucketsAggregationResult::SetBuckets
void SetBuckets(Aws::Vector< Bucket > &&value)
Definition: GetBucketsAggregationResult.h:74
Aws::IoT::Model::GetBucketsAggregationResult::GetBucketsAggregationResult
GetBucketsAggregationResult()
Aws::IoT::Model::GetBucketsAggregationResult::WithTotalCount
GetBucketsAggregationResult & WithTotalCount(int value)
Definition: GetBucketsAggregationResult.h:49
Aws::IoT::Model::GetBucketsAggregationResult::GetBuckets
const Aws::Vector< Bucket > & GetBuckets() const
Definition: GetBucketsAggregationResult.h:58
Aws::IoT::Model::GetBucketsAggregationResult::SetTotalCount
void SetTotalCount(int value)
Definition: GetBucketsAggregationResult.h:44
Aws::IoT::Model::GetBucketsAggregationResult::operator=
GetBucketsAggregationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::GetBucketsAggregationResult::SetBuckets
void SetBuckets(const Aws::Vector< Bucket > &value)
Definition: GetBucketsAggregationResult.h:66
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:90
IoT_EXPORTS.h