/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 GetQuerySuggestionsResult { public: AWS_KENDRA_API GetQuerySuggestionsResult(); AWS_KENDRA_API GetQuerySuggestionsResult(const Aws::AmazonWebServiceResult& result); AWS_KENDRA_API GetQuerySuggestionsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The identifier for a list of query suggestions for an index.

*/ inline const Aws::String& GetQuerySuggestionsId() const{ return m_querySuggestionsId; } /** *

The identifier for a list of query suggestions for an index.

*/ inline void SetQuerySuggestionsId(const Aws::String& value) { m_querySuggestionsId = value; } /** *

The identifier for a list of query suggestions for an index.

*/ inline void SetQuerySuggestionsId(Aws::String&& value) { m_querySuggestionsId = std::move(value); } /** *

The identifier for a list of query suggestions for an index.

*/ inline void SetQuerySuggestionsId(const char* value) { m_querySuggestionsId.assign(value); } /** *

The identifier for a list of query suggestions for an index.

*/ inline GetQuerySuggestionsResult& WithQuerySuggestionsId(const Aws::String& value) { SetQuerySuggestionsId(value); return *this;} /** *

The identifier for a list of query suggestions for an index.

*/ inline GetQuerySuggestionsResult& WithQuerySuggestionsId(Aws::String&& value) { SetQuerySuggestionsId(std::move(value)); return *this;} /** *

The identifier for a list of query suggestions for an index.

*/ inline GetQuerySuggestionsResult& WithQuerySuggestionsId(const char* value) { SetQuerySuggestionsId(value); return *this;} /** *

A list of query suggestions for an index.

*/ inline const Aws::Vector& GetSuggestions() const{ return m_suggestions; } /** *

A list of query suggestions for an index.

*/ inline void SetSuggestions(const Aws::Vector& value) { m_suggestions = value; } /** *

A list of query suggestions for an index.

*/ inline void SetSuggestions(Aws::Vector&& value) { m_suggestions = std::move(value); } /** *

A list of query suggestions for an index.

*/ inline GetQuerySuggestionsResult& WithSuggestions(const Aws::Vector& value) { SetSuggestions(value); return *this;} /** *

A list of query suggestions for an index.

*/ inline GetQuerySuggestionsResult& WithSuggestions(Aws::Vector&& value) { SetSuggestions(std::move(value)); return *this;} /** *

A list of query suggestions for an index.

*/ inline GetQuerySuggestionsResult& AddSuggestions(const Suggestion& value) { m_suggestions.push_back(value); return *this; } /** *

A list of query suggestions for an index.

*/ inline GetQuerySuggestionsResult& AddSuggestions(Suggestion&& value) { m_suggestions.push_back(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 GetQuerySuggestionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetQuerySuggestionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetQuerySuggestionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_querySuggestionsId; Aws::Vector m_suggestions; Aws::String m_requestId; }; } // namespace Model } // namespace kendra } // namespace Aws