/** * 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 PersonalizeRuntime { namespace Model { class GetRecommendationsResult { public: AWS_PERSONALIZERUNTIME_API GetRecommendationsResult(); AWS_PERSONALIZERUNTIME_API GetRecommendationsResult(const Aws::AmazonWebServiceResult& result); AWS_PERSONALIZERUNTIME_API GetRecommendationsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A list of recommendations sorted in descending order by prediction score. * There can be a maximum of 500 items in the list.

*/ inline const Aws::Vector& GetItemList() const{ return m_itemList; } /** *

A list of recommendations sorted in descending order by prediction score. * There can be a maximum of 500 items in the list.

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

A list of recommendations sorted in descending order by prediction score. * There can be a maximum of 500 items in the list.

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

A list of recommendations sorted in descending order by prediction score. * There can be a maximum of 500 items in the list.

*/ inline GetRecommendationsResult& WithItemList(const Aws::Vector& value) { SetItemList(value); return *this;} /** *

A list of recommendations sorted in descending order by prediction score. * There can be a maximum of 500 items in the list.

*/ inline GetRecommendationsResult& WithItemList(Aws::Vector&& value) { SetItemList(std::move(value)); return *this;} /** *

A list of recommendations sorted in descending order by prediction score. * There can be a maximum of 500 items in the list.

*/ inline GetRecommendationsResult& AddItemList(const PredictedItem& value) { m_itemList.push_back(value); return *this; } /** *

A list of recommendations sorted in descending order by prediction score. * There can be a maximum of 500 items in the list.

*/ inline GetRecommendationsResult& AddItemList(PredictedItem&& value) { m_itemList.push_back(std::move(value)); return *this; } /** *

The ID of the recommendation.

*/ inline const Aws::String& GetRecommendationId() const{ return m_recommendationId; } /** *

The ID of the recommendation.

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

The ID of the recommendation.

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

The ID of the recommendation.

*/ inline void SetRecommendationId(const char* value) { m_recommendationId.assign(value); } /** *

The ID of the recommendation.

*/ inline GetRecommendationsResult& WithRecommendationId(const Aws::String& value) { SetRecommendationId(value); return *this;} /** *

The ID of the recommendation.

*/ inline GetRecommendationsResult& WithRecommendationId(Aws::String&& value) { SetRecommendationId(std::move(value)); return *this;} /** *

The ID of the recommendation.

*/ inline GetRecommendationsResult& WithRecommendationId(const char* value) { SetRecommendationId(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 GetRecommendationsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetRecommendationsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetRecommendationsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_itemList; Aws::String m_recommendationId; Aws::String m_requestId; }; } // namespace Model } // namespace PersonalizeRuntime } // namespace Aws