AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetBucketsAggregationResult.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/model/Bucket.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace IoT
26{
27namespace Model
28{
30 {
31 public:
35
36
38
41 inline int GetTotalCount() const{ return m_totalCount; }
42 inline void SetTotalCount(int value) { m_totalCount = value; }
43 inline GetBucketsAggregationResult& WithTotalCount(int value) { SetTotalCount(value); return *this;}
45
47
53 inline const Aws::Vector<Bucket>& GetBuckets() const{ return m_buckets; }
54 inline void SetBuckets(const Aws::Vector<Bucket>& value) { m_buckets = value; }
55 inline void SetBuckets(Aws::Vector<Bucket>&& value) { m_buckets = std::move(value); }
56 inline GetBucketsAggregationResult& WithBuckets(const Aws::Vector<Bucket>& value) { SetBuckets(value); return *this;}
57 inline GetBucketsAggregationResult& WithBuckets(Aws::Vector<Bucket>&& value) { SetBuckets(std::move(value)); return *this;}
58 inline GetBucketsAggregationResult& AddBuckets(const Bucket& value) { m_buckets.push_back(value); return *this; }
59 inline GetBucketsAggregationResult& AddBuckets(Bucket&& value) { m_buckets.push_back(std::move(value)); return *this; }
61
63
64 inline const Aws::String& GetRequestId() const{ return m_requestId; }
65 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
66 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
67 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
68 inline GetBucketsAggregationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
69 inline GetBucketsAggregationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
70 inline GetBucketsAggregationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
72 private:
73
74 int m_totalCount;
75
76 Aws::Vector<Bucket> m_buckets;
77
78 Aws::String m_requestId;
79 };
80
81} // namespace Model
82} // namespace IoT
83} // namespace Aws
GetBucketsAggregationResult & AddBuckets(const Bucket &value)
GetBucketsAggregationResult & AddBuckets(Bucket &&value)
GetBucketsAggregationResult & WithTotalCount(int value)
void SetBuckets(const Aws::Vector< Bucket > &value)
GetBucketsAggregationResult & WithBuckets(const Aws::Vector< Bucket > &value)
GetBucketsAggregationResult & WithRequestId(const Aws::String &value)
GetBucketsAggregationResult & WithBuckets(Aws::Vector< Bucket > &&value)
GetBucketsAggregationResult & WithRequestId(const char *value)
AWS_IOT_API GetBucketsAggregationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Bucket > & GetBuckets() const
GetBucketsAggregationResult & WithRequestId(Aws::String &&value)
AWS_IOT_API GetBucketsAggregationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue