/// <summary> /// Initiates the asynchronous execution of the DescribeSavingsPlansOfferingRates operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeSavingsPlansOfferingRates operation on AmazonSavingsPlansClient.</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 EndDescribeSavingsPlansOfferingRates /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DescribeSavingsPlansOfferingRates">REST API Reference for DescribeSavingsPlansOfferingRates Operation</seealso> public virtual IAsyncResult BeginDescribeSavingsPlansOfferingRates(DescribeSavingsPlansOfferingRatesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSavingsPlansOfferingRatesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSavingsPlansOfferingRatesResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }
/// <summary> /// Describes the specified Savings Plans offering rates. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeSavingsPlansOfferingRates 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 DescribeSavingsPlansOfferingRates service method, as returned by SavingsPlans.</returns> /// <exception cref="Amazon.SavingsPlans.Model.InternalServerException"> /// An unexpected error occurred. /// </exception> /// <exception cref="Amazon.SavingsPlans.Model.ValidationException"> /// One of the input parameters is not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DescribeSavingsPlansOfferingRates">REST API Reference for DescribeSavingsPlansOfferingRates Operation</seealso> public virtual Task <DescribeSavingsPlansOfferingRatesResponse> DescribeSavingsPlansOfferingRatesAsync(DescribeSavingsPlansOfferingRatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSavingsPlansOfferingRatesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSavingsPlansOfferingRatesResponseUnmarshaller.Instance; return(InvokeAsync <DescribeSavingsPlansOfferingRatesResponse>(request, options, cancellationToken)); }
/// <summary> /// Describes the specified Savings Plans offering rates. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeSavingsPlansOfferingRates service method.</param> /// /// <returns>The response from the DescribeSavingsPlansOfferingRates service method, as returned by SavingsPlans.</returns> /// <exception cref="Amazon.SavingsPlans.Model.InternalServerException"> /// An unexpected error occurred. /// </exception> /// <exception cref="Amazon.SavingsPlans.Model.ValidationException"> /// One of the input parameters is not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DescribeSavingsPlansOfferingRates">REST API Reference for DescribeSavingsPlansOfferingRates Operation</seealso> public virtual DescribeSavingsPlansOfferingRatesResponse DescribeSavingsPlansOfferingRates(DescribeSavingsPlansOfferingRatesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSavingsPlansOfferingRatesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSavingsPlansOfferingRatesResponseUnmarshaller.Instance; return(Invoke <DescribeSavingsPlansOfferingRatesResponse>(request, options)); }