/** * 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 RetrieveResult { public: AWS_KENDRA_API RetrieveResult(); AWS_KENDRA_API RetrieveResult(const Aws::AmazonWebServiceResult& result); AWS_KENDRA_API RetrieveResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The identifier of query used for the search. You also use * QueryId to identify the search when using the Submitfeedback * API.

*/ inline const Aws::String& GetQueryId() const{ return m_queryId; } /** *

The identifier of query used for the search. You also use * QueryId to identify the search when using the Submitfeedback * API.

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

The identifier of query used for the search. You also use * QueryId to identify the search when using the Submitfeedback * API.

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

The identifier of query used for the search. You also use * QueryId to identify the search when using the Submitfeedback * API.

*/ inline void SetQueryId(const char* value) { m_queryId.assign(value); } /** *

The identifier of query used for the search. You also use * QueryId to identify the search when using the Submitfeedback * API.

*/ inline RetrieveResult& WithQueryId(const Aws::String& value) { SetQueryId(value); return *this;} /** *

The identifier of query used for the search. You also use * QueryId to identify the search when using the Submitfeedback * API.

*/ inline RetrieveResult& WithQueryId(Aws::String&& value) { SetQueryId(std::move(value)); return *this;} /** *

The identifier of query used for the search. You also use * QueryId to identify the search when using the Submitfeedback * API.

*/ inline RetrieveResult& WithQueryId(const char* value) { SetQueryId(value); return *this;} /** *

The results of the retrieved relevant passages for the search.

*/ inline const Aws::Vector& GetResultItems() const{ return m_resultItems; } /** *

The results of the retrieved relevant passages for the search.

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

The results of the retrieved relevant passages for the search.

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

The results of the retrieved relevant passages for the search.

*/ inline RetrieveResult& WithResultItems(const Aws::Vector& value) { SetResultItems(value); return *this;} /** *

The results of the retrieved relevant passages for the search.

*/ inline RetrieveResult& WithResultItems(Aws::Vector&& value) { SetResultItems(std::move(value)); return *this;} /** *

The results of the retrieved relevant passages for the search.

*/ inline RetrieveResult& AddResultItems(const RetrieveResultItem& value) { m_resultItems.push_back(value); return *this; } /** *

The results of the retrieved relevant passages for the search.

*/ inline RetrieveResult& AddResultItems(RetrieveResultItem&& value) { m_resultItems.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 RetrieveResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline RetrieveResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline RetrieveResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_queryId; Aws::Vector m_resultItems; Aws::String m_requestId; }; } // namespace Model } // namespace kendra } // namespace Aws