/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CloudSearchDomain { namespace Model { /** *

A container for the calculated facet values and counts.

See * Also:

AWS * API Reference

*/ class BucketInfo { public: AWS_CLOUDSEARCHDOMAIN_API BucketInfo(); AWS_CLOUDSEARCHDOMAIN_API BucketInfo(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDSEARCHDOMAIN_API BucketInfo& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDSEARCHDOMAIN_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A list of the calculated facet values and counts.

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

A list of the calculated facet values and counts.

*/ inline bool BucketsHasBeenSet() const { return m_bucketsHasBeenSet; } /** *

A list of the calculated facet values and counts.

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

A list of the calculated facet values and counts.

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

A list of the calculated facet values and counts.

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

A list of the calculated facet values and counts.

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

A list of the calculated facet values and counts.

*/ inline BucketInfo& AddBuckets(const Bucket& value) { m_bucketsHasBeenSet = true; m_buckets.push_back(value); return *this; } /** *

A list of the calculated facet values and counts.

*/ inline BucketInfo& AddBuckets(Bucket&& value) { m_bucketsHasBeenSet = true; m_buckets.push_back(std::move(value)); return *this; } private: Aws::Vector m_buckets; bool m_bucketsHasBeenSet = false; }; } // namespace Model } // namespace CloudSearchDomain } // namespace Aws