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

A container for facet information.

See Also:

AWS * API Reference

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

The facet value being counted.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The facet value being counted.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The facet value being counted.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The facet value being counted.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The facet value being counted.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The facet value being counted.

*/ inline Bucket& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The facet value being counted.

*/ inline Bucket& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The facet value being counted.

*/ inline Bucket& WithValue(const char* value) { SetValue(value); return *this;} /** *

The number of hits that contain the facet value in the specified facet * field.

*/ inline long long GetCount() const{ return m_count; } /** *

The number of hits that contain the facet value in the specified facet * field.

*/ inline bool CountHasBeenSet() const { return m_countHasBeenSet; } /** *

The number of hits that contain the facet value in the specified facet * field.

*/ inline void SetCount(long long value) { m_countHasBeenSet = true; m_count = value; } /** *

The number of hits that contain the facet value in the specified facet * field.

*/ inline Bucket& WithCount(long long value) { SetCount(value); return *this;} private: Aws::String m_value; bool m_valueHasBeenSet = false; long long m_count; bool m_countHasBeenSet = false; }; } // namespace Model } // namespace CloudSearchDomain } // namespace Aws