/// <summary> /// Initiates the asynchronous execution of the DescribeSavingsPlansOfferings operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeSavingsPlansOfferings 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 EndDescribeSavingsPlansOfferings /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DescribeSavingsPlansOfferings">REST API Reference for DescribeSavingsPlansOfferings Operation</seealso> public virtual IAsyncResult BeginDescribeSavingsPlansOfferings(DescribeSavingsPlansOfferingsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSavingsPlansOfferingsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSavingsPlansOfferingsResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }
/// <summary> /// Describes the specified Savings Plans offerings. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeSavingsPlansOfferings 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 DescribeSavingsPlansOfferings 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/DescribeSavingsPlansOfferings">REST API Reference for DescribeSavingsPlansOfferings Operation</seealso> public virtual Task <DescribeSavingsPlansOfferingsResponse> DescribeSavingsPlansOfferingsAsync(DescribeSavingsPlansOfferingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSavingsPlansOfferingsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSavingsPlansOfferingsResponseUnmarshaller.Instance; return(InvokeAsync <DescribeSavingsPlansOfferingsResponse>(request, options, cancellationToken)); }
/// <summary> /// Describes the specified Savings Plans offerings. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeSavingsPlansOfferings service method.</param> /// /// <returns>The response from the DescribeSavingsPlansOfferings 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/DescribeSavingsPlansOfferings">REST API Reference for DescribeSavingsPlansOfferings Operation</seealso> public virtual DescribeSavingsPlansOfferingsResponse DescribeSavingsPlansOfferings(DescribeSavingsPlansOfferingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSavingsPlansOfferingsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSavingsPlansOfferingsResponseUnmarshaller.Instance; return(Invoke <DescribeSavingsPlansOfferingsResponse>(request, options)); }