/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace IoT { namespace Model { class GetBucketsAggregationResult { public: AWS_IOT_API GetBucketsAggregationResult(); AWS_IOT_API GetBucketsAggregationResult(const Aws::AmazonWebServiceResult& result); AWS_IOT_API GetBucketsAggregationResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The total number of things that fit the query string criteria.

*/ inline int GetTotalCount() const{ return m_totalCount; } /** *

The total number of things that fit the query string criteria.

*/ inline void SetTotalCount(int value) { m_totalCount = value; } /** *

The total number of things that fit the query string criteria.

*/ inline GetBucketsAggregationResult& WithTotalCount(int value) { SetTotalCount(value); return *this;} /** *

The main part of the response with a list of buckets. Each bucket contains a * keyValue and a count.

keyValue: * The aggregation field value counted for the particular bucket.

* count: The number of documents that have that value.

*/ inline const Aws::Vector& GetBuckets() const{ return m_buckets; } /** *

The main part of the response with a list of buckets. Each bucket contains a * keyValue and a count.

keyValue: * The aggregation field value counted for the particular bucket.

* count: The number of documents that have that value.

*/ inline void SetBuckets(const Aws::Vector& value) { m_buckets = value; } /** *

The main part of the response with a list of buckets. Each bucket contains a * keyValue and a count.

keyValue: * The aggregation field value counted for the particular bucket.

* count: The number of documents that have that value.

*/ inline void SetBuckets(Aws::Vector&& value) { m_buckets = std::move(value); } /** *

The main part of the response with a list of buckets. Each bucket contains a * keyValue and a count.

keyValue: * The aggregation field value counted for the particular bucket.

* count: The number of documents that have that value.

*/ inline GetBucketsAggregationResult& WithBuckets(const Aws::Vector& value) { SetBuckets(value); return *this;} /** *

The main part of the response with a list of buckets. Each bucket contains a * keyValue and a count.

keyValue: * The aggregation field value counted for the particular bucket.

* count: The number of documents that have that value.

*/ inline GetBucketsAggregationResult& WithBuckets(Aws::Vector&& value) { SetBuckets(std::move(value)); return *this;} /** *

The main part of the response with a list of buckets. Each bucket contains a * keyValue and a count.

keyValue: * The aggregation field value counted for the particular bucket.

* count: The number of documents that have that value.

*/ inline GetBucketsAggregationResult& AddBuckets(const Bucket& value) { m_buckets.push_back(value); return *this; } /** *

The main part of the response with a list of buckets. Each bucket contains a * keyValue and a count.

keyValue: * The aggregation field value counted for the particular bucket.

* count: The number of documents that have that value.

*/ inline GetBucketsAggregationResult& AddBuckets(Bucket&& value) { m_buckets.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetBucketsAggregationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetBucketsAggregationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetBucketsAggregationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: int m_totalCount; Aws::Vector m_buckets; Aws::String m_requestId; }; } // namespace Model } // namespace IoT } // namespace Aws