/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the personalize-runtime-2018-05-22.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.PersonalizeRuntime.Model; namespace Amazon.PersonalizeRuntime { /// /// Interface for accessing PersonalizeRuntime /// /// /// public partial interface IAmazonPersonalizeRuntime : IAmazonService, IDisposable { #region GetPersonalizedRanking /// /// Re-ranks a list of recommended items for the given user. The first item in the list /// is deemed the most likely item to be of interest to the user. /// /// /// /// The solution backing the campaign must have been created using a recipe of type PERSONALIZED_RANKING. /// /// /// /// Container for the necessary parameters to execute the GetPersonalizedRanking service method. /// /// The response from the GetPersonalizedRanking service method, as returned by PersonalizeRuntime. /// /// Provide a valid value for the field or parameter. /// /// /// The specified resource does not exist. /// /// REST API Reference for GetPersonalizedRanking Operation GetPersonalizedRankingResponse GetPersonalizedRanking(GetPersonalizedRankingRequest request); /// /// Initiates the asynchronous execution of the GetPersonalizedRanking operation. /// /// /// Container for the necessary parameters to execute the GetPersonalizedRanking operation on AmazonPersonalizeRuntimeClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetPersonalizedRanking /// operation. /// REST API Reference for GetPersonalizedRanking Operation IAsyncResult BeginGetPersonalizedRanking(GetPersonalizedRankingRequest request, AsyncCallback callback, object state); /// /// Finishes the asynchronous execution of the GetPersonalizedRanking operation. /// /// /// The IAsyncResult returned by the call to BeginGetPersonalizedRanking. /// /// Returns a GetPersonalizedRankingResult from PersonalizeRuntime. /// REST API Reference for GetPersonalizedRanking Operation GetPersonalizedRankingResponse EndGetPersonalizedRanking(IAsyncResult asyncResult); #endregion #region GetRecommendations /// /// Returns a list of recommended items. For campaigns, the campaign's Amazon Resource /// Name (ARN) is required and the required user and item input depends on the recipe /// type used to create the solution backing the campaign as follows: /// /// /// /// Campaigns that are backed by a solution created using a recipe of type PERSONALIZED_RANKING /// use the API. /// /// /// /// For recommenders, the recommender's ARN is required and the required item and user /// input depends on the use case (domain-based recipe) backing the recommender. For information /// on use case requirements see Choosing /// recommender use cases. /// /// /// Container for the necessary parameters to execute the GetRecommendations service method. /// /// The response from the GetRecommendations service method, as returned by PersonalizeRuntime. /// /// Provide a valid value for the field or parameter. /// /// /// The specified resource does not exist. /// /// REST API Reference for GetRecommendations Operation GetRecommendationsResponse GetRecommendations(GetRecommendationsRequest request); /// /// Initiates the asynchronous execution of the GetRecommendations operation. /// /// /// Container for the necessary parameters to execute the GetRecommendations operation on AmazonPersonalizeRuntimeClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetRecommendations /// operation. /// REST API Reference for GetRecommendations Operation IAsyncResult BeginGetRecommendations(GetRecommendationsRequest request, AsyncCallback callback, object state); /// /// Finishes the asynchronous execution of the GetRecommendations operation. /// /// /// The IAsyncResult returned by the call to BeginGetRecommendations. /// /// Returns a GetRecommendationsResult from PersonalizeRuntime. /// REST API Reference for GetRecommendations Operation GetRecommendationsResponse EndGetRecommendations(IAsyncResult asyncResult); #endregion } }