/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace kendra { namespace Model { /** */ class QueryRequest : public KendraRequest { public: AWS_KENDRA_API QueryRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "Query"; } AWS_KENDRA_API Aws::String SerializePayload() const override; AWS_KENDRA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The identifier of the index for the search.

*/ inline const Aws::String& GetIndexId() const{ return m_indexId; } /** *

The identifier of the index for the search.

*/ inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; } /** *

The identifier of the index for the search.

*/ inline void SetIndexId(const Aws::String& value) { m_indexIdHasBeenSet = true; m_indexId = value; } /** *

The identifier of the index for the search.

*/ inline void SetIndexId(Aws::String&& value) { m_indexIdHasBeenSet = true; m_indexId = std::move(value); } /** *

The identifier of the index for the search.

*/ inline void SetIndexId(const char* value) { m_indexIdHasBeenSet = true; m_indexId.assign(value); } /** *

The identifier of the index for the search.

*/ inline QueryRequest& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;} /** *

The identifier of the index for the search.

*/ inline QueryRequest& WithIndexId(Aws::String&& value) { SetIndexId(std::move(value)); return *this;} /** *

The identifier of the index for the search.

*/ inline QueryRequest& WithIndexId(const char* value) { SetIndexId(value); return *this;} /** *

The input query text for the search. Amazon Kendra truncates queries at 30 * token words, which excludes punctuation and stop words. Truncation still applies * if you use Boolean or more advanced, complex queries.

*/ inline const Aws::String& GetQueryText() const{ return m_queryText; } /** *

The input query text for the search. Amazon Kendra truncates queries at 30 * token words, which excludes punctuation and stop words. Truncation still applies * if you use Boolean or more advanced, complex queries.

*/ inline bool QueryTextHasBeenSet() const { return m_queryTextHasBeenSet; } /** *

The input query text for the search. Amazon Kendra truncates queries at 30 * token words, which excludes punctuation and stop words. Truncation still applies * if you use Boolean or more advanced, complex queries.

*/ inline void SetQueryText(const Aws::String& value) { m_queryTextHasBeenSet = true; m_queryText = value; } /** *

The input query text for the search. Amazon Kendra truncates queries at 30 * token words, which excludes punctuation and stop words. Truncation still applies * if you use Boolean or more advanced, complex queries.

*/ inline void SetQueryText(Aws::String&& value) { m_queryTextHasBeenSet = true; m_queryText = std::move(value); } /** *

The input query text for the search. Amazon Kendra truncates queries at 30 * token words, which excludes punctuation and stop words. Truncation still applies * if you use Boolean or more advanced, complex queries.

*/ inline void SetQueryText(const char* value) { m_queryTextHasBeenSet = true; m_queryText.assign(value); } /** *

The input query text for the search. Amazon Kendra truncates queries at 30 * token words, which excludes punctuation and stop words. Truncation still applies * if you use Boolean or more advanced, complex queries.

*/ inline QueryRequest& WithQueryText(const Aws::String& value) { SetQueryText(value); return *this;} /** *

The input query text for the search. Amazon Kendra truncates queries at 30 * token words, which excludes punctuation and stop words. Truncation still applies * if you use Boolean or more advanced, complex queries.

*/ inline QueryRequest& WithQueryText(Aws::String&& value) { SetQueryText(std::move(value)); return *this;} /** *

The input query text for the search. Amazon Kendra truncates queries at 30 * token words, which excludes punctuation and stop words. Truncation still applies * if you use Boolean or more advanced, complex queries.

*/ inline QueryRequest& WithQueryText(const char* value) { SetQueryText(value); return *this;} /** *

Filters search results by document fields/attributes. You can only provide * one attribute filter; however, the AndAllFilters, * NotFilter, and OrAllFilters parameters contain a list * of other filters.

The AttributeFilter parameter means you * can create a set of filtering rules that a document must satisfy to be included * in the query results.

*/ inline const AttributeFilter& GetAttributeFilter() const{ return m_attributeFilter; } /** *

Filters search results by document fields/attributes. You can only provide * one attribute filter; however, the AndAllFilters, * NotFilter, and OrAllFilters parameters contain a list * of other filters.

The AttributeFilter parameter means you * can create a set of filtering rules that a document must satisfy to be included * in the query results.

*/ inline bool AttributeFilterHasBeenSet() const { return m_attributeFilterHasBeenSet; } /** *

Filters search results by document fields/attributes. You can only provide * one attribute filter; however, the AndAllFilters, * NotFilter, and OrAllFilters parameters contain a list * of other filters.

The AttributeFilter parameter means you * can create a set of filtering rules that a document must satisfy to be included * in the query results.

*/ inline void SetAttributeFilter(const AttributeFilter& value) { m_attributeFilterHasBeenSet = true; m_attributeFilter = value; } /** *

Filters search results by document fields/attributes. You can only provide * one attribute filter; however, the AndAllFilters, * NotFilter, and OrAllFilters parameters contain a list * of other filters.

The AttributeFilter parameter means you * can create a set of filtering rules that a document must satisfy to be included * in the query results.

*/ inline void SetAttributeFilter(AttributeFilter&& value) { m_attributeFilterHasBeenSet = true; m_attributeFilter = std::move(value); } /** *

Filters search results by document fields/attributes. You can only provide * one attribute filter; however, the AndAllFilters, * NotFilter, and OrAllFilters parameters contain a list * of other filters.

The AttributeFilter parameter means you * can create a set of filtering rules that a document must satisfy to be included * in the query results.

*/ inline QueryRequest& WithAttributeFilter(const AttributeFilter& value) { SetAttributeFilter(value); return *this;} /** *

Filters search results by document fields/attributes. You can only provide * one attribute filter; however, the AndAllFilters, * NotFilter, and OrAllFilters parameters contain a list * of other filters.

The AttributeFilter parameter means you * can create a set of filtering rules that a document must satisfy to be included * in the query results.

*/ inline QueryRequest& WithAttributeFilter(AttributeFilter&& value) { SetAttributeFilter(std::move(value)); return *this;} /** *

An array of documents fields/attributes for faceted search. Amazon Kendra * returns a count for each field key specified. This helps your users narrow their * search.

*/ inline const Aws::Vector& GetFacets() const{ return m_facets; } /** *

An array of documents fields/attributes for faceted search. Amazon Kendra * returns a count for each field key specified. This helps your users narrow their * search.

*/ inline bool FacetsHasBeenSet() const { return m_facetsHasBeenSet; } /** *

An array of documents fields/attributes for faceted search. Amazon Kendra * returns a count for each field key specified. This helps your users narrow their * search.

*/ inline void SetFacets(const Aws::Vector& value) { m_facetsHasBeenSet = true; m_facets = value; } /** *

An array of documents fields/attributes for faceted search. Amazon Kendra * returns a count for each field key specified. This helps your users narrow their * search.

*/ inline void SetFacets(Aws::Vector&& value) { m_facetsHasBeenSet = true; m_facets = std::move(value); } /** *

An array of documents fields/attributes for faceted search. Amazon Kendra * returns a count for each field key specified. This helps your users narrow their * search.

*/ inline QueryRequest& WithFacets(const Aws::Vector& value) { SetFacets(value); return *this;} /** *

An array of documents fields/attributes for faceted search. Amazon Kendra * returns a count for each field key specified. This helps your users narrow their * search.

*/ inline QueryRequest& WithFacets(Aws::Vector&& value) { SetFacets(std::move(value)); return *this;} /** *

An array of documents fields/attributes for faceted search. Amazon Kendra * returns a count for each field key specified. This helps your users narrow their * search.

*/ inline QueryRequest& AddFacets(const Facet& value) { m_facetsHasBeenSet = true; m_facets.push_back(value); return *this; } /** *

An array of documents fields/attributes for faceted search. Amazon Kendra * returns a count for each field key specified. This helps your users narrow their * search.

*/ inline QueryRequest& AddFacets(Facet&& value) { m_facetsHasBeenSet = true; m_facets.push_back(std::move(value)); return *this; } /** *

An array of document fields/attributes to include in the response. You can * limit the response to include certain document fields. By default, all document * attributes are included in the response.

*/ inline const Aws::Vector& GetRequestedDocumentAttributes() const{ return m_requestedDocumentAttributes; } /** *

An array of document fields/attributes to include in the response. You can * limit the response to include certain document fields. By default, all document * attributes are included in the response.

*/ inline bool RequestedDocumentAttributesHasBeenSet() const { return m_requestedDocumentAttributesHasBeenSet; } /** *

An array of document fields/attributes to include in the response. You can * limit the response to include certain document fields. By default, all document * attributes are included in the response.

*/ inline void SetRequestedDocumentAttributes(const Aws::Vector& value) { m_requestedDocumentAttributesHasBeenSet = true; m_requestedDocumentAttributes = value; } /** *

An array of document fields/attributes to include in the response. You can * limit the response to include certain document fields. By default, all document * attributes are included in the response.

*/ inline void SetRequestedDocumentAttributes(Aws::Vector&& value) { m_requestedDocumentAttributesHasBeenSet = true; m_requestedDocumentAttributes = std::move(value); } /** *

An array of document fields/attributes to include in the response. You can * limit the response to include certain document fields. By default, all document * attributes are included in the response.

*/ inline QueryRequest& WithRequestedDocumentAttributes(const Aws::Vector& value) { SetRequestedDocumentAttributes(value); return *this;} /** *

An array of document fields/attributes to include in the response. You can * limit the response to include certain document fields. By default, all document * attributes are included in the response.

*/ inline QueryRequest& WithRequestedDocumentAttributes(Aws::Vector&& value) { SetRequestedDocumentAttributes(std::move(value)); return *this;} /** *

An array of document fields/attributes to include in the response. You can * limit the response to include certain document fields. By default, all document * attributes are included in the response.

*/ inline QueryRequest& AddRequestedDocumentAttributes(const Aws::String& value) { m_requestedDocumentAttributesHasBeenSet = true; m_requestedDocumentAttributes.push_back(value); return *this; } /** *

An array of document fields/attributes to include in the response. You can * limit the response to include certain document fields. By default, all document * attributes are included in the response.

*/ inline QueryRequest& AddRequestedDocumentAttributes(Aws::String&& value) { m_requestedDocumentAttributesHasBeenSet = true; m_requestedDocumentAttributes.push_back(std::move(value)); return *this; } /** *

An array of document fields/attributes to include in the response. You can * limit the response to include certain document fields. By default, all document * attributes are included in the response.

*/ inline QueryRequest& AddRequestedDocumentAttributes(const char* value) { m_requestedDocumentAttributesHasBeenSet = true; m_requestedDocumentAttributes.push_back(value); return *this; } /** *

Sets the type of query result or response. Only results for the specified * type are returned.

*/ inline const QueryResultType& GetQueryResultTypeFilter() const{ return m_queryResultTypeFilter; } /** *

Sets the type of query result or response. Only results for the specified * type are returned.

*/ inline bool QueryResultTypeFilterHasBeenSet() const { return m_queryResultTypeFilterHasBeenSet; } /** *

Sets the type of query result or response. Only results for the specified * type are returned.

*/ inline void SetQueryResultTypeFilter(const QueryResultType& value) { m_queryResultTypeFilterHasBeenSet = true; m_queryResultTypeFilter = value; } /** *

Sets the type of query result or response. Only results for the specified * type are returned.

*/ inline void SetQueryResultTypeFilter(QueryResultType&& value) { m_queryResultTypeFilterHasBeenSet = true; m_queryResultTypeFilter = std::move(value); } /** *

Sets the type of query result or response. Only results for the specified * type are returned.

*/ inline QueryRequest& WithQueryResultTypeFilter(const QueryResultType& value) { SetQueryResultTypeFilter(value); return *this;} /** *

Sets the type of query result or response. Only results for the specified * type are returned.

*/ inline QueryRequest& WithQueryResultTypeFilter(QueryResultType&& value) { SetQueryResultTypeFilter(std::move(value)); return *this;} /** *

Overrides relevance tuning configurations of fields/attributes set at the * index level.

If you use this API to override the relevance tuning * configured at the index level, but there is no relevance tuning configured at * the index level, then Amazon Kendra does not apply any relevance tuning.

*

If there is relevance tuning configured for fields at the index level, and * you use this API to override only some of these fields, then for the fields you * did not override, the importance is set to 1.

*/ inline const Aws::Vector& GetDocumentRelevanceOverrideConfigurations() const{ return m_documentRelevanceOverrideConfigurations; } /** *

Overrides relevance tuning configurations of fields/attributes set at the * index level.

If you use this API to override the relevance tuning * configured at the index level, but there is no relevance tuning configured at * the index level, then Amazon Kendra does not apply any relevance tuning.

*

If there is relevance tuning configured for fields at the index level, and * you use this API to override only some of these fields, then for the fields you * did not override, the importance is set to 1.

*/ inline bool DocumentRelevanceOverrideConfigurationsHasBeenSet() const { return m_documentRelevanceOverrideConfigurationsHasBeenSet; } /** *

Overrides relevance tuning configurations of fields/attributes set at the * index level.

If you use this API to override the relevance tuning * configured at the index level, but there is no relevance tuning configured at * the index level, then Amazon Kendra does not apply any relevance tuning.

*

If there is relevance tuning configured for fields at the index level, and * you use this API to override only some of these fields, then for the fields you * did not override, the importance is set to 1.

*/ inline void SetDocumentRelevanceOverrideConfigurations(const Aws::Vector& value) { m_documentRelevanceOverrideConfigurationsHasBeenSet = true; m_documentRelevanceOverrideConfigurations = value; } /** *

Overrides relevance tuning configurations of fields/attributes set at the * index level.

If you use this API to override the relevance tuning * configured at the index level, but there is no relevance tuning configured at * the index level, then Amazon Kendra does not apply any relevance tuning.

*

If there is relevance tuning configured for fields at the index level, and * you use this API to override only some of these fields, then for the fields you * did not override, the importance is set to 1.

*/ inline void SetDocumentRelevanceOverrideConfigurations(Aws::Vector&& value) { m_documentRelevanceOverrideConfigurationsHasBeenSet = true; m_documentRelevanceOverrideConfigurations = std::move(value); } /** *

Overrides relevance tuning configurations of fields/attributes set at the * index level.

If you use this API to override the relevance tuning * configured at the index level, but there is no relevance tuning configured at * the index level, then Amazon Kendra does not apply any relevance tuning.

*

If there is relevance tuning configured for fields at the index level, and * you use this API to override only some of these fields, then for the fields you * did not override, the importance is set to 1.

*/ inline QueryRequest& WithDocumentRelevanceOverrideConfigurations(const Aws::Vector& value) { SetDocumentRelevanceOverrideConfigurations(value); return *this;} /** *

Overrides relevance tuning configurations of fields/attributes set at the * index level.

If you use this API to override the relevance tuning * configured at the index level, but there is no relevance tuning configured at * the index level, then Amazon Kendra does not apply any relevance tuning.

*

If there is relevance tuning configured for fields at the index level, and * you use this API to override only some of these fields, then for the fields you * did not override, the importance is set to 1.

*/ inline QueryRequest& WithDocumentRelevanceOverrideConfigurations(Aws::Vector&& value) { SetDocumentRelevanceOverrideConfigurations(std::move(value)); return *this;} /** *

Overrides relevance tuning configurations of fields/attributes set at the * index level.

If you use this API to override the relevance tuning * configured at the index level, but there is no relevance tuning configured at * the index level, then Amazon Kendra does not apply any relevance tuning.

*

If there is relevance tuning configured for fields at the index level, and * you use this API to override only some of these fields, then for the fields you * did not override, the importance is set to 1.

*/ inline QueryRequest& AddDocumentRelevanceOverrideConfigurations(const DocumentRelevanceConfiguration& value) { m_documentRelevanceOverrideConfigurationsHasBeenSet = true; m_documentRelevanceOverrideConfigurations.push_back(value); return *this; } /** *

Overrides relevance tuning configurations of fields/attributes set at the * index level.

If you use this API to override the relevance tuning * configured at the index level, but there is no relevance tuning configured at * the index level, then Amazon Kendra does not apply any relevance tuning.

*

If there is relevance tuning configured for fields at the index level, and * you use this API to override only some of these fields, then for the fields you * did not override, the importance is set to 1.

*/ inline QueryRequest& AddDocumentRelevanceOverrideConfigurations(DocumentRelevanceConfiguration&& value) { m_documentRelevanceOverrideConfigurationsHasBeenSet = true; m_documentRelevanceOverrideConfigurations.push_back(std::move(value)); return *this; } /** *

Query results are returned in pages the size of the PageSize * parameter. By default, Amazon Kendra returns the first page of results. Use this * parameter to get result pages after the first one.

*/ inline int GetPageNumber() const{ return m_pageNumber; } /** *

Query results are returned in pages the size of the PageSize * parameter. By default, Amazon Kendra returns the first page of results. Use this * parameter to get result pages after the first one.

*/ inline bool PageNumberHasBeenSet() const { return m_pageNumberHasBeenSet; } /** *

Query results are returned in pages the size of the PageSize * parameter. By default, Amazon Kendra returns the first page of results. Use this * parameter to get result pages after the first one.

*/ inline void SetPageNumber(int value) { m_pageNumberHasBeenSet = true; m_pageNumber = value; } /** *

Query results are returned in pages the size of the PageSize * parameter. By default, Amazon Kendra returns the first page of results. Use this * parameter to get result pages after the first one.

*/ inline QueryRequest& WithPageNumber(int value) { SetPageNumber(value); return *this;} /** *

Sets the number of results that are returned in each page of results. The * default page size is 10. The maximum number of results returned is 100. If you * ask for more than 100 results, only 100 are returned.

*/ inline int GetPageSize() const{ return m_pageSize; } /** *

Sets the number of results that are returned in each page of results. The * default page size is 10. The maximum number of results returned is 100. If you * ask for more than 100 results, only 100 are returned.

*/ inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; } /** *

Sets the number of results that are returned in each page of results. The * default page size is 10. The maximum number of results returned is 100. If you * ask for more than 100 results, only 100 are returned.

*/ inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; } /** *

Sets the number of results that are returned in each page of results. The * default page size is 10. The maximum number of results returned is 100. If you * ask for more than 100 results, only 100 are returned.

*/ inline QueryRequest& WithPageSize(int value) { SetPageSize(value); return *this;} /** *

Provides information that determines how the results of the query are sorted. * You can set the field that Amazon Kendra should sort the results on, and specify * whether the results should be sorted in ascending or descending order. In the * case of ties in sorting the results, the results are sorted by relevance.

*

If you don't provide sorting configuration, the results are sorted by the * relevance that Amazon Kendra determines for the result.

*/ inline const SortingConfiguration& GetSortingConfiguration() const{ return m_sortingConfiguration; } /** *

Provides information that determines how the results of the query are sorted. * You can set the field that Amazon Kendra should sort the results on, and specify * whether the results should be sorted in ascending or descending order. In the * case of ties in sorting the results, the results are sorted by relevance.

*

If you don't provide sorting configuration, the results are sorted by the * relevance that Amazon Kendra determines for the result.

*/ inline bool SortingConfigurationHasBeenSet() const { return m_sortingConfigurationHasBeenSet; } /** *

Provides information that determines how the results of the query are sorted. * You can set the field that Amazon Kendra should sort the results on, and specify * whether the results should be sorted in ascending or descending order. In the * case of ties in sorting the results, the results are sorted by relevance.

*

If you don't provide sorting configuration, the results are sorted by the * relevance that Amazon Kendra determines for the result.

*/ inline void SetSortingConfiguration(const SortingConfiguration& value) { m_sortingConfigurationHasBeenSet = true; m_sortingConfiguration = value; } /** *

Provides information that determines how the results of the query are sorted. * You can set the field that Amazon Kendra should sort the results on, and specify * whether the results should be sorted in ascending or descending order. In the * case of ties in sorting the results, the results are sorted by relevance.

*

If you don't provide sorting configuration, the results are sorted by the * relevance that Amazon Kendra determines for the result.

*/ inline void SetSortingConfiguration(SortingConfiguration&& value) { m_sortingConfigurationHasBeenSet = true; m_sortingConfiguration = std::move(value); } /** *

Provides information that determines how the results of the query are sorted. * You can set the field that Amazon Kendra should sort the results on, and specify * whether the results should be sorted in ascending or descending order. In the * case of ties in sorting the results, the results are sorted by relevance.

*

If you don't provide sorting configuration, the results are sorted by the * relevance that Amazon Kendra determines for the result.

*/ inline QueryRequest& WithSortingConfiguration(const SortingConfiguration& value) { SetSortingConfiguration(value); return *this;} /** *

Provides information that determines how the results of the query are sorted. * You can set the field that Amazon Kendra should sort the results on, and specify * whether the results should be sorted in ascending or descending order. In the * case of ties in sorting the results, the results are sorted by relevance.

*

If you don't provide sorting configuration, the results are sorted by the * relevance that Amazon Kendra determines for the result.

*/ inline QueryRequest& WithSortingConfiguration(SortingConfiguration&& value) { SetSortingConfiguration(std::move(value)); return *this;} /** *

The user context token or user and group information.

*/ inline const UserContext& GetUserContext() const{ return m_userContext; } /** *

The user context token or user and group information.

*/ inline bool UserContextHasBeenSet() const { return m_userContextHasBeenSet; } /** *

The user context token or user and group information.

*/ inline void SetUserContext(const UserContext& value) { m_userContextHasBeenSet = true; m_userContext = value; } /** *

The user context token or user and group information.

*/ inline void SetUserContext(UserContext&& value) { m_userContextHasBeenSet = true; m_userContext = std::move(value); } /** *

The user context token or user and group information.

*/ inline QueryRequest& WithUserContext(const UserContext& value) { SetUserContext(value); return *this;} /** *

The user context token or user and group information.

*/ inline QueryRequest& WithUserContext(UserContext&& value) { SetUserContext(std::move(value)); return *this;} /** *

Provides an identifier for a specific user. The VisitorId should * be a unique identifier, such as a GUID. Don't use personally identifiable * information, such as the user's email address, as the * VisitorId.

*/ inline const Aws::String& GetVisitorId() const{ return m_visitorId; } /** *

Provides an identifier for a specific user. The VisitorId should * be a unique identifier, such as a GUID. Don't use personally identifiable * information, such as the user's email address, as the * VisitorId.

*/ inline bool VisitorIdHasBeenSet() const { return m_visitorIdHasBeenSet; } /** *

Provides an identifier for a specific user. The VisitorId should * be a unique identifier, such as a GUID. Don't use personally identifiable * information, such as the user's email address, as the * VisitorId.

*/ inline void SetVisitorId(const Aws::String& value) { m_visitorIdHasBeenSet = true; m_visitorId = value; } /** *

Provides an identifier for a specific user. The VisitorId should * be a unique identifier, such as a GUID. Don't use personally identifiable * information, such as the user's email address, as the * VisitorId.

*/ inline void SetVisitorId(Aws::String&& value) { m_visitorIdHasBeenSet = true; m_visitorId = std::move(value); } /** *

Provides an identifier for a specific user. The VisitorId should * be a unique identifier, such as a GUID. Don't use personally identifiable * information, such as the user's email address, as the * VisitorId.

*/ inline void SetVisitorId(const char* value) { m_visitorIdHasBeenSet = true; m_visitorId.assign(value); } /** *

Provides an identifier for a specific user. The VisitorId should * be a unique identifier, such as a GUID. Don't use personally identifiable * information, such as the user's email address, as the * VisitorId.

*/ inline QueryRequest& WithVisitorId(const Aws::String& value) { SetVisitorId(value); return *this;} /** *

Provides an identifier for a specific user. The VisitorId should * be a unique identifier, such as a GUID. Don't use personally identifiable * information, such as the user's email address, as the * VisitorId.

*/ inline QueryRequest& WithVisitorId(Aws::String&& value) { SetVisitorId(std::move(value)); return *this;} /** *

Provides an identifier for a specific user. The VisitorId should * be a unique identifier, such as a GUID. Don't use personally identifiable * information, such as the user's email address, as the * VisitorId.

*/ inline QueryRequest& WithVisitorId(const char* value) { SetVisitorId(value); return *this;} /** *

Enables suggested spell corrections for queries.

*/ inline const SpellCorrectionConfiguration& GetSpellCorrectionConfiguration() const{ return m_spellCorrectionConfiguration; } /** *

Enables suggested spell corrections for queries.

*/ inline bool SpellCorrectionConfigurationHasBeenSet() const { return m_spellCorrectionConfigurationHasBeenSet; } /** *

Enables suggested spell corrections for queries.

*/ inline void SetSpellCorrectionConfiguration(const SpellCorrectionConfiguration& value) { m_spellCorrectionConfigurationHasBeenSet = true; m_spellCorrectionConfiguration = value; } /** *

Enables suggested spell corrections for queries.

*/ inline void SetSpellCorrectionConfiguration(SpellCorrectionConfiguration&& value) { m_spellCorrectionConfigurationHasBeenSet = true; m_spellCorrectionConfiguration = std::move(value); } /** *

Enables suggested spell corrections for queries.

*/ inline QueryRequest& WithSpellCorrectionConfiguration(const SpellCorrectionConfiguration& value) { SetSpellCorrectionConfiguration(value); return *this;} /** *

Enables suggested spell corrections for queries.

*/ inline QueryRequest& WithSpellCorrectionConfiguration(SpellCorrectionConfiguration&& value) { SetSpellCorrectionConfiguration(std::move(value)); return *this;} private: Aws::String m_indexId; bool m_indexIdHasBeenSet = false; Aws::String m_queryText; bool m_queryTextHasBeenSet = false; AttributeFilter m_attributeFilter; bool m_attributeFilterHasBeenSet = false; Aws::Vector m_facets; bool m_facetsHasBeenSet = false; Aws::Vector m_requestedDocumentAttributes; bool m_requestedDocumentAttributesHasBeenSet = false; QueryResultType m_queryResultTypeFilter; bool m_queryResultTypeFilterHasBeenSet = false; Aws::Vector m_documentRelevanceOverrideConfigurations; bool m_documentRelevanceOverrideConfigurationsHasBeenSet = false; int m_pageNumber; bool m_pageNumberHasBeenSet = false; int m_pageSize; bool m_pageSizeHasBeenSet = false; SortingConfiguration m_sortingConfiguration; bool m_sortingConfigurationHasBeenSet = false; UserContext m_userContext; bool m_userContextHasBeenSet = false; Aws::String m_visitorId; bool m_visitorIdHasBeenSet = false; SpellCorrectionConfiguration m_spellCorrectionConfiguration; bool m_spellCorrectionConfigurationHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws