/// <summary> /// Adds one or more users to a Users dataset. For more information see <a href="https://docs.aws.amazon.com/personalize/latest/dg/importing-users.html">Importing /// Users Incrementally</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutUsers service method.</param> /// /// <returns>The response from the PutUsers service method, as returned by PersonalizeEvents.</returns> /// <exception cref="Amazon.PersonalizeEvents.Model.InvalidInputException"> /// Provide a valid value for the field or parameter. /// </exception> /// <exception cref="Amazon.PersonalizeEvents.Model.ResourceInUseException"> /// The specified resource is in use. /// </exception> /// <exception cref="Amazon.PersonalizeEvents.Model.ResourceNotFoundException"> /// Could not find the specified resource. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/personalize-events-2018-03-22/PutUsers">REST API Reference for PutUsers Operation</seealso> public virtual PutUsersResponse PutUsers(PutUsersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutUsersRequestMarshaller.Instance; options.ResponseUnmarshaller = PutUsersResponseUnmarshaller.Instance; return(Invoke <PutUsersResponse>(request, options)); }
/// <summary> /// Adds one or more users to a Users dataset. For more information see <a href="https://docs.aws.amazon.com/personalize/latest/dg/importing-users.html">Importing /// Users Incrementally</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutUsers service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutUsers service method, as returned by PersonalizeEvents.</returns> /// <exception cref="Amazon.PersonalizeEvents.Model.InvalidInputException"> /// Provide a valid value for the field or parameter. /// </exception> /// <exception cref="Amazon.PersonalizeEvents.Model.ResourceInUseException"> /// The specified resource is in use. /// </exception> /// <exception cref="Amazon.PersonalizeEvents.Model.ResourceNotFoundException"> /// Could not find the specified resource. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/personalize-events-2018-03-22/PutUsers">REST API Reference for PutUsers Operation</seealso> public virtual Task <PutUsersResponse> PutUsersAsync(PutUsersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutUsersRequestMarshaller.Instance; options.ResponseUnmarshaller = PutUsersResponseUnmarshaller.Instance; return(InvokeAsync <PutUsersResponse>(request, options, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the PutUsers operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutUsers operation on AmazonPersonalizeEventsClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutUsers /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/personalize-events-2018-03-22/PutUsers">REST API Reference for PutUsers Operation</seealso> public virtual IAsyncResult BeginPutUsers(PutUsersRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutUsersRequestMarshaller.Instance; options.ResponseUnmarshaller = PutUsersResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }