/** * 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 kendra { namespace Model { /** *

Provides the count of documents that match a particular attribute when doing * a faceted search.

See Also:

AWS * API Reference

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

The value of the attribute. For example, "HR."

*/ inline const DocumentAttributeValue& GetDocumentAttributeValue() const{ return m_documentAttributeValue; } /** *

The value of the attribute. For example, "HR."

*/ inline bool DocumentAttributeValueHasBeenSet() const { return m_documentAttributeValueHasBeenSet; } /** *

The value of the attribute. For example, "HR."

*/ inline void SetDocumentAttributeValue(const DocumentAttributeValue& value) { m_documentAttributeValueHasBeenSet = true; m_documentAttributeValue = value; } /** *

The value of the attribute. For example, "HR."

*/ inline void SetDocumentAttributeValue(DocumentAttributeValue&& value) { m_documentAttributeValueHasBeenSet = true; m_documentAttributeValue = std::move(value); } /** *

The value of the attribute. For example, "HR."

*/ inline DocumentAttributeValueCountPair& WithDocumentAttributeValue(const DocumentAttributeValue& value) { SetDocumentAttributeValue(value); return *this;} /** *

The value of the attribute. For example, "HR."

*/ inline DocumentAttributeValueCountPair& WithDocumentAttributeValue(DocumentAttributeValue&& value) { SetDocumentAttributeValue(std::move(value)); return *this;} /** *

The number of documents in the response that have the attribute value for the * key.

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

The number of documents in the response that have the attribute value for the * key.

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

The number of documents in the response that have the attribute value for the * key.

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

The number of documents in the response that have the attribute value for the * key.

*/ inline DocumentAttributeValueCountPair& WithCount(int value) { SetCount(value); return *this;} private: DocumentAttributeValue m_documentAttributeValue; bool m_documentAttributeValueHasBeenSet; int m_count; bool m_countHasBeenSet; }; } // namespace Model } // namespace kendra } // namespace Aws