/// <summary> /// Updates a subscriber. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateSubscriber service method.</param> /// /// <returns>The response from the UpdateSubscriber service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> public virtual UpdateSubscriberResponse UpdateSubscriber(UpdateSubscriberRequest request) { var marshaller = UpdateSubscriberRequestMarshaller.Instance; var unmarshaller = UpdateSubscriberResponseUnmarshaller.Instance; return(Invoke <UpdateSubscriberRequest, UpdateSubscriberResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the UpdateSubscriber operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateSubscriber operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public virtual Task <UpdateSubscriberResponse> UpdateSubscriberAsync(UpdateSubscriberRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = UpdateSubscriberRequestMarshaller.Instance; var unmarshaller = UpdateSubscriberResponseUnmarshaller.Instance; return(InvokeAsync <UpdateSubscriberRequest, UpdateSubscriberResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Updates a subscriber. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateSubscriber 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 UpdateSubscriber service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.DuplicateRecordException"> /// The budget name already exists. Budget names must be unique within an account. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> public virtual Task <UpdateSubscriberResponse> UpdateSubscriberAsync(UpdateSubscriberRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSubscriberRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSubscriberResponseUnmarshaller.Instance; return(InvokeAsync <UpdateSubscriberResponse>(request, options, cancellationToken)); }
internal virtual UpdateSubscriberResponse UpdateSubscriber(UpdateSubscriberRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSubscriberRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSubscriberResponseUnmarshaller.Instance; return(Invoke <UpdateSubscriberResponse>(request, options)); }