/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies the document attribute to use to sort the response to a Amazon
* Kendra query. You can specify a single attribute for sorting. The attribute must
* have the You can sort attributes of the following
* types. Date value Long value String value You can't sort attributes of the following
* type. String list valueSortable
flag set to true
, otherwise Amazon
* Kendra returns an exception.
See Also:
* AWS
* API Reference
The name of the document attribute used to sort the response. You can use any
* field that has the Sortable
flag set to true.
You can also * sort by any of the following built-in attributes:
_category
*_created_at
_last_updated_at
_version
_view_count
The name of the document attribute used to sort the response. You can use any
* field that has the Sortable
flag set to true.
You can also * sort by any of the following built-in attributes:
_category
*_created_at
_last_updated_at
_version
_view_count
The name of the document attribute used to sort the response. You can use any
* field that has the Sortable
flag set to true.
You can also * sort by any of the following built-in attributes:
_category
*_created_at
_last_updated_at
_version
_view_count
The name of the document attribute used to sort the response. You can use any
* field that has the Sortable
flag set to true.
You can also * sort by any of the following built-in attributes:
_category
*_created_at
_last_updated_at
_version
_view_count
The name of the document attribute used to sort the response. You can use any
* field that has the Sortable
flag set to true.
You can also * sort by any of the following built-in attributes:
_category
*_created_at
_last_updated_at
_version
_view_count
The name of the document attribute used to sort the response. You can use any
* field that has the Sortable
flag set to true.
You can also * sort by any of the following built-in attributes:
_category
*_created_at
_last_updated_at
_version
_view_count
The name of the document attribute used to sort the response. You can use any
* field that has the Sortable
flag set to true.
You can also * sort by any of the following built-in attributes:
_category
*_created_at
_last_updated_at
_version
_view_count
The name of the document attribute used to sort the response. You can use any
* field that has the Sortable
flag set to true.
You can also * sort by any of the following built-in attributes:
_category
*_created_at
_last_updated_at
_version
_view_count
The order that the results should be returned in. In case of ties, the * relevance assigned to the result by Amazon Kendra is used as the * tie-breaker.
*/ inline const SortOrder& GetSortOrder() const{ return m_sortOrder; } /** *The order that the results should be returned in. In case of ties, the * relevance assigned to the result by Amazon Kendra is used as the * tie-breaker.
*/ inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; } /** *The order that the results should be returned in. In case of ties, the * relevance assigned to the result by Amazon Kendra is used as the * tie-breaker.
*/ inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; } /** *The order that the results should be returned in. In case of ties, the * relevance assigned to the result by Amazon Kendra is used as the * tie-breaker.
*/ inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); } /** *The order that the results should be returned in. In case of ties, the * relevance assigned to the result by Amazon Kendra is used as the * tie-breaker.
*/ inline SortingConfiguration& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;} /** *The order that the results should be returned in. In case of ties, the * relevance assigned to the result by Amazon Kendra is used as the * tie-breaker.
*/ inline SortingConfiguration& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;} private: Aws::String m_documentAttributeKey; bool m_documentAttributeKeyHasBeenSet = false; SortOrder m_sortOrder; bool m_sortOrderHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws