/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The facet values for the documents in the response.See Also:
* AWS
* API Reference
The key for the facet values. This is the same as the
* DocumentAttributeKey
provided in the query.
The key for the facet values. This is the same as the
* DocumentAttributeKey
provided in the query.
The key for the facet values. This is the same as the
* DocumentAttributeKey
provided in the query.
The key for the facet values. This is the same as the
* DocumentAttributeKey
provided in the query.
The key for the facet values. This is the same as the
* DocumentAttributeKey
provided in the query.
The key for the facet values. This is the same as the
* DocumentAttributeKey
provided in the query.
The key for the facet values. This is the same as the
* DocumentAttributeKey
provided in the query.
The key for the facet values. This is the same as the
* DocumentAttributeKey
provided in the query.
The data type of the facet value. This is the same as the type defined for * the index field when it was created.
*/ inline const DocumentAttributeValueType& GetDocumentAttributeValueType() const{ return m_documentAttributeValueType; } /** *The data type of the facet value. This is the same as the type defined for * the index field when it was created.
*/ inline bool DocumentAttributeValueTypeHasBeenSet() const { return m_documentAttributeValueTypeHasBeenSet; } /** *The data type of the facet value. This is the same as the type defined for * the index field when it was created.
*/ inline void SetDocumentAttributeValueType(const DocumentAttributeValueType& value) { m_documentAttributeValueTypeHasBeenSet = true; m_documentAttributeValueType = value; } /** *The data type of the facet value. This is the same as the type defined for * the index field when it was created.
*/ inline void SetDocumentAttributeValueType(DocumentAttributeValueType&& value) { m_documentAttributeValueTypeHasBeenSet = true; m_documentAttributeValueType = std::move(value); } /** *The data type of the facet value. This is the same as the type defined for * the index field when it was created.
*/ inline FacetResult& WithDocumentAttributeValueType(const DocumentAttributeValueType& value) { SetDocumentAttributeValueType(value); return *this;} /** *The data type of the facet value. This is the same as the type defined for * the index field when it was created.
*/ inline FacetResult& WithDocumentAttributeValueType(DocumentAttributeValueType&& value) { SetDocumentAttributeValueType(std::move(value)); return *this;} /** *An array of key/value pairs, where the key is the value of the attribute and * the count is the number of documents that share the key value.
*/ inline const Aws::VectorAn array of key/value pairs, where the key is the value of the attribute and * the count is the number of documents that share the key value.
*/ inline bool DocumentAttributeValueCountPairsHasBeenSet() const { return m_documentAttributeValueCountPairsHasBeenSet; } /** *An array of key/value pairs, where the key is the value of the attribute and * the count is the number of documents that share the key value.
*/ inline void SetDocumentAttributeValueCountPairs(const Aws::VectorAn array of key/value pairs, where the key is the value of the attribute and * the count is the number of documents that share the key value.
*/ inline void SetDocumentAttributeValueCountPairs(Aws::VectorAn array of key/value pairs, where the key is the value of the attribute and * the count is the number of documents that share the key value.
*/ inline FacetResult& WithDocumentAttributeValueCountPairs(const Aws::VectorAn array of key/value pairs, where the key is the value of the attribute and * the count is the number of documents that share the key value.
*/ inline FacetResult& WithDocumentAttributeValueCountPairs(Aws::VectorAn array of key/value pairs, where the key is the value of the attribute and * the count is the number of documents that share the key value.
*/ inline FacetResult& AddDocumentAttributeValueCountPairs(const DocumentAttributeValueCountPair& value) { m_documentAttributeValueCountPairsHasBeenSet = true; m_documentAttributeValueCountPairs.push_back(value); return *this; } /** *An array of key/value pairs, where the key is the value of the attribute and * the count is the number of documents that share the key value.
*/ inline FacetResult& AddDocumentAttributeValueCountPairs(DocumentAttributeValueCountPair&& value) { m_documentAttributeValueCountPairsHasBeenSet = true; m_documentAttributeValueCountPairs.push_back(std::move(value)); return *this; } private: Aws::String m_documentAttributeKey; bool m_documentAttributeKeyHasBeenSet = false; DocumentAttributeValueType m_documentAttributeValueType; bool m_documentAttributeValueTypeHasBeenSet = false; Aws::Vector