/** * 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 namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace kendra { namespace Model { class DescribeQuerySuggestionsConfigResult { public: AWS_KENDRA_API DescribeQuerySuggestionsConfigResult(); AWS_KENDRA_API DescribeQuerySuggestionsConfigResult(const Aws::AmazonWebServiceResult& result); AWS_KENDRA_API DescribeQuerySuggestionsConfigResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Whether query suggestions are currently in ENABLED mode or * LEARN_ONLY mode.

By default, Amazon Kendra enables query * suggestions.LEARN_ONLY turns off query suggestions for your users. * You can change the mode using the UpdateQuerySuggestionsConfig * API.

*/ inline const Mode& GetMode() const{ return m_mode; } /** *

Whether query suggestions are currently in ENABLED mode or * LEARN_ONLY mode.

By default, Amazon Kendra enables query * suggestions.LEARN_ONLY turns off query suggestions for your users. * You can change the mode using the UpdateQuerySuggestionsConfig * API.

*/ inline void SetMode(const Mode& value) { m_mode = value; } /** *

Whether query suggestions are currently in ENABLED mode or * LEARN_ONLY mode.

By default, Amazon Kendra enables query * suggestions.LEARN_ONLY turns off query suggestions for your users. * You can change the mode using the UpdateQuerySuggestionsConfig * API.

*/ inline void SetMode(Mode&& value) { m_mode = std::move(value); } /** *

Whether query suggestions are currently in ENABLED mode or * LEARN_ONLY mode.

By default, Amazon Kendra enables query * suggestions.LEARN_ONLY turns off query suggestions for your users. * You can change the mode using the UpdateQuerySuggestionsConfig * API.

*/ inline DescribeQuerySuggestionsConfigResult& WithMode(const Mode& value) { SetMode(value); return *this;} /** *

Whether query suggestions are currently in ENABLED mode or * LEARN_ONLY mode.

By default, Amazon Kendra enables query * suggestions.LEARN_ONLY turns off query suggestions for your users. * You can change the mode using the UpdateQuerySuggestionsConfig * API.

*/ inline DescribeQuerySuggestionsConfigResult& WithMode(Mode&& value) { SetMode(std::move(value)); return *this;} /** *

Whether the status of query suggestions settings is currently * ACTIVE or UPDATING.

Active means the current * settings apply and Updating means your changed settings are in the process of * applying.

*/ inline const QuerySuggestionsStatus& GetStatus() const{ return m_status; } /** *

Whether the status of query suggestions settings is currently * ACTIVE or UPDATING.

Active means the current * settings apply and Updating means your changed settings are in the process of * applying.

*/ inline void SetStatus(const QuerySuggestionsStatus& value) { m_status = value; } /** *

Whether the status of query suggestions settings is currently * ACTIVE or UPDATING.

Active means the current * settings apply and Updating means your changed settings are in the process of * applying.

*/ inline void SetStatus(QuerySuggestionsStatus&& value) { m_status = std::move(value); } /** *

Whether the status of query suggestions settings is currently * ACTIVE or UPDATING.

Active means the current * settings apply and Updating means your changed settings are in the process of * applying.

*/ inline DescribeQuerySuggestionsConfigResult& WithStatus(const QuerySuggestionsStatus& value) { SetStatus(value); return *this;} /** *

Whether the status of query suggestions settings is currently * ACTIVE or UPDATING.

Active means the current * settings apply and Updating means your changed settings are in the process of * applying.

*/ inline DescribeQuerySuggestionsConfigResult& WithStatus(QuerySuggestionsStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

How recent your queries are in your query log time window (in days).

*/ inline int GetQueryLogLookBackWindowInDays() const{ return m_queryLogLookBackWindowInDays; } /** *

How recent your queries are in your query log time window (in days).

*/ inline void SetQueryLogLookBackWindowInDays(int value) { m_queryLogLookBackWindowInDays = value; } /** *

How recent your queries are in your query log time window (in days).

*/ inline DescribeQuerySuggestionsConfigResult& WithQueryLogLookBackWindowInDays(int value) { SetQueryLogLookBackWindowInDays(value); return *this;} /** *

TRUE to use all queries, otherwise use only queries that * include user information to generate the query suggestions.

*/ inline bool GetIncludeQueriesWithoutUserInformation() const{ return m_includeQueriesWithoutUserInformation; } /** *

TRUE to use all queries, otherwise use only queries that * include user information to generate the query suggestions.

*/ inline void SetIncludeQueriesWithoutUserInformation(bool value) { m_includeQueriesWithoutUserInformation = value; } /** *

TRUE to use all queries, otherwise use only queries that * include user information to generate the query suggestions.

*/ inline DescribeQuerySuggestionsConfigResult& WithIncludeQueriesWithoutUserInformation(bool value) { SetIncludeQueriesWithoutUserInformation(value); return *this;} /** *

The minimum number of unique users who must search a query in order for the * query to be eligible to suggest to your users.

*/ inline int GetMinimumNumberOfQueryingUsers() const{ return m_minimumNumberOfQueryingUsers; } /** *

The minimum number of unique users who must search a query in order for the * query to be eligible to suggest to your users.

*/ inline void SetMinimumNumberOfQueryingUsers(int value) { m_minimumNumberOfQueryingUsers = value; } /** *

The minimum number of unique users who must search a query in order for the * query to be eligible to suggest to your users.

*/ inline DescribeQuerySuggestionsConfigResult& WithMinimumNumberOfQueryingUsers(int value) { SetMinimumNumberOfQueryingUsers(value); return *this;} /** *

The minimum number of times a query must be searched in order for the query * to be eligible to suggest to your users.

*/ inline int GetMinimumQueryCount() const{ return m_minimumQueryCount; } /** *

The minimum number of times a query must be searched in order for the query * to be eligible to suggest to your users.

*/ inline void SetMinimumQueryCount(int value) { m_minimumQueryCount = value; } /** *

The minimum number of times a query must be searched in order for the query * to be eligible to suggest to your users.

*/ inline DescribeQuerySuggestionsConfigResult& WithMinimumQueryCount(int value) { SetMinimumQueryCount(value); return *this;} /** *

The Unix timestamp when query suggestions for an index was last updated.

*

Amazon Kendra automatically updates suggestions every 24 hours, after you * change a setting or after you apply a block * list.

*/ inline const Aws::Utils::DateTime& GetLastSuggestionsBuildTime() const{ return m_lastSuggestionsBuildTime; } /** *

The Unix timestamp when query suggestions for an index was last updated.

*

Amazon Kendra automatically updates suggestions every 24 hours, after you * change a setting or after you apply a block * list.

*/ inline void SetLastSuggestionsBuildTime(const Aws::Utils::DateTime& value) { m_lastSuggestionsBuildTime = value; } /** *

The Unix timestamp when query suggestions for an index was last updated.

*

Amazon Kendra automatically updates suggestions every 24 hours, after you * change a setting or after you apply a block * list.

*/ inline void SetLastSuggestionsBuildTime(Aws::Utils::DateTime&& value) { m_lastSuggestionsBuildTime = std::move(value); } /** *

The Unix timestamp when query suggestions for an index was last updated.

*

Amazon Kendra automatically updates suggestions every 24 hours, after you * change a setting or after you apply a block * list.

*/ inline DescribeQuerySuggestionsConfigResult& WithLastSuggestionsBuildTime(const Aws::Utils::DateTime& value) { SetLastSuggestionsBuildTime(value); return *this;} /** *

The Unix timestamp when query suggestions for an index was last updated.

*

Amazon Kendra automatically updates suggestions every 24 hours, after you * change a setting or after you apply a block * list.

*/ inline DescribeQuerySuggestionsConfigResult& WithLastSuggestionsBuildTime(Aws::Utils::DateTime&& value) { SetLastSuggestionsBuildTime(std::move(value)); return *this;} /** *

The Unix timestamp when query suggestions for an index was last cleared.

*

After you clear suggestions, Amazon Kendra learns new suggestions based on * new queries added to the query log from the time you cleared suggestions. Amazon * Kendra only considers re-occurences of a query from the time you cleared * suggestions.

*/ inline const Aws::Utils::DateTime& GetLastClearTime() const{ return m_lastClearTime; } /** *

The Unix timestamp when query suggestions for an index was last cleared.

*

After you clear suggestions, Amazon Kendra learns new suggestions based on * new queries added to the query log from the time you cleared suggestions. Amazon * Kendra only considers re-occurences of a query from the time you cleared * suggestions.

*/ inline void SetLastClearTime(const Aws::Utils::DateTime& value) { m_lastClearTime = value; } /** *

The Unix timestamp when query suggestions for an index was last cleared.

*

After you clear suggestions, Amazon Kendra learns new suggestions based on * new queries added to the query log from the time you cleared suggestions. Amazon * Kendra only considers re-occurences of a query from the time you cleared * suggestions.

*/ inline void SetLastClearTime(Aws::Utils::DateTime&& value) { m_lastClearTime = std::move(value); } /** *

The Unix timestamp when query suggestions for an index was last cleared.

*

After you clear suggestions, Amazon Kendra learns new suggestions based on * new queries added to the query log from the time you cleared suggestions. Amazon * Kendra only considers re-occurences of a query from the time you cleared * suggestions.

*/ inline DescribeQuerySuggestionsConfigResult& WithLastClearTime(const Aws::Utils::DateTime& value) { SetLastClearTime(value); return *this;} /** *

The Unix timestamp when query suggestions for an index was last cleared.

*

After you clear suggestions, Amazon Kendra learns new suggestions based on * new queries added to the query log from the time you cleared suggestions. Amazon * Kendra only considers re-occurences of a query from the time you cleared * suggestions.

*/ inline DescribeQuerySuggestionsConfigResult& WithLastClearTime(Aws::Utils::DateTime&& value) { SetLastClearTime(std::move(value)); return *this;} /** *

The current total count of query suggestions for an index.

This count * can change when you update your query suggestions settings, if you filter out * certain queries from suggestions using a block list, and as the query log * accumulates more queries for Amazon Kendra to learn from.

If the count is * much lower than you expected, it could be because Amazon Kendra needs more * queries in the query history to learn from or your current query suggestions * settings are too strict.

*/ inline int GetTotalSuggestionsCount() const{ return m_totalSuggestionsCount; } /** *

The current total count of query suggestions for an index.

This count * can change when you update your query suggestions settings, if you filter out * certain queries from suggestions using a block list, and as the query log * accumulates more queries for Amazon Kendra to learn from.

If the count is * much lower than you expected, it could be because Amazon Kendra needs more * queries in the query history to learn from or your current query suggestions * settings are too strict.

*/ inline void SetTotalSuggestionsCount(int value) { m_totalSuggestionsCount = value; } /** *

The current total count of query suggestions for an index.

This count * can change when you update your query suggestions settings, if you filter out * certain queries from suggestions using a block list, and as the query log * accumulates more queries for Amazon Kendra to learn from.

If the count is * much lower than you expected, it could be because Amazon Kendra needs more * queries in the query history to learn from or your current query suggestions * settings are too strict.

*/ inline DescribeQuerySuggestionsConfigResult& WithTotalSuggestionsCount(int value) { SetTotalSuggestionsCount(value); return *this;} /** *

Configuration information for the document fields/attributes that you want to * base query suggestions on.

*/ inline const AttributeSuggestionsDescribeConfig& GetAttributeSuggestionsConfig() const{ return m_attributeSuggestionsConfig; } /** *

Configuration information for the document fields/attributes that you want to * base query suggestions on.

*/ inline void SetAttributeSuggestionsConfig(const AttributeSuggestionsDescribeConfig& value) { m_attributeSuggestionsConfig = value; } /** *

Configuration information for the document fields/attributes that you want to * base query suggestions on.

*/ inline void SetAttributeSuggestionsConfig(AttributeSuggestionsDescribeConfig&& value) { m_attributeSuggestionsConfig = std::move(value); } /** *

Configuration information for the document fields/attributes that you want to * base query suggestions on.

*/ inline DescribeQuerySuggestionsConfigResult& WithAttributeSuggestionsConfig(const AttributeSuggestionsDescribeConfig& value) { SetAttributeSuggestionsConfig(value); return *this;} /** *

Configuration information for the document fields/attributes that you want to * base query suggestions on.

*/ inline DescribeQuerySuggestionsConfigResult& WithAttributeSuggestionsConfig(AttributeSuggestionsDescribeConfig&& value) { SetAttributeSuggestionsConfig(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeQuerySuggestionsConfigResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeQuerySuggestionsConfigResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeQuerySuggestionsConfigResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Mode m_mode; QuerySuggestionsStatus m_status; int m_queryLogLookBackWindowInDays; bool m_includeQueriesWithoutUserInformation; int m_minimumNumberOfQueryingUsers; int m_minimumQueryCount; Aws::Utils::DateTime m_lastSuggestionsBuildTime; Aws::Utils::DateTime m_lastClearTime; int m_totalSuggestionsCount; AttributeSuggestionsDescribeConfig m_attributeSuggestionsConfig; Aws::String m_requestId; }; } // namespace Model } // namespace kendra } // namespace Aws