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

A list of items in order of most likely interest to the user. The maximum is * 500.

*/ inline const Aws::Vector& GetPersonalizedRanking() const{ return m_personalizedRanking; } /** *

A list of items in order of most likely interest to the user. The maximum is * 500.

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

A list of items in order of most likely interest to the user. The maximum is * 500.

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

A list of items in order of most likely interest to the user. The maximum is * 500.

*/ inline GetPersonalizedRankingResult& WithPersonalizedRanking(const Aws::Vector& value) { SetPersonalizedRanking(value); return *this;} /** *

A list of items in order of most likely interest to the user. The maximum is * 500.

*/ inline GetPersonalizedRankingResult& WithPersonalizedRanking(Aws::Vector&& value) { SetPersonalizedRanking(std::move(value)); return *this;} /** *

A list of items in order of most likely interest to the user. The maximum is * 500.

*/ inline GetPersonalizedRankingResult& AddPersonalizedRanking(const PredictedItem& value) { m_personalizedRanking.push_back(value); return *this; } /** *

A list of items in order of most likely interest to the user. The maximum is * 500.

*/ inline GetPersonalizedRankingResult& AddPersonalizedRanking(PredictedItem&& value) { m_personalizedRanking.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 GetPersonalizedRankingResult& WithRecommendationId(const Aws::String& value) { SetRecommendationId(value); return *this;} /** *

The ID of the recommendation.

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

The ID of the recommendation.

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