internal virtual BatchMeterUsageResponse BatchMeterUsage(BatchMeterUsageRequest request) { var marshaller = new BatchMeterUsageRequestMarshaller(); var unmarshaller = BatchMeterUsageResponseUnmarshaller.Instance; return(Invoke <BatchMeterUsageRequest, BatchMeterUsageResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the BatchMeterUsage operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the BatchMeterUsage 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> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/BatchMeterUsage">REST API Reference for BatchMeterUsage Operation</seealso> public virtual Task <BatchMeterUsageResponse> BatchMeterUsageAsync(BatchMeterUsageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new BatchMeterUsageRequestMarshaller(); var unmarshaller = BatchMeterUsageResponseUnmarshaller.Instance; return(InvokeAsync <BatchMeterUsageRequest, BatchMeterUsageResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the BatchMeterUsage operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the BatchMeterUsage operation on AmazonAWSMarketplaceMeteringClient.</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 EndBatchMeterUsage /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/BatchMeterUsage">REST API Reference for BatchMeterUsage Operation</seealso> public virtual IAsyncResult BeginBatchMeterUsage(BatchMeterUsageRequest request, AsyncCallback callback, object state) { var marshaller = new BatchMeterUsageRequestMarshaller(); var unmarshaller = BatchMeterUsageResponseUnmarshaller.Instance; return(BeginInvoke <BatchMeterUsageRequest>(request, marshaller, unmarshaller, callback, state)); }
/// <summary> /// BatchMeterUsage is called from a SaaS application listed on the AWS Marketplace to /// post metering records for a set of customers. /// /// /// <para> /// For identical requests, the API is idempotent; requests can be retried with the same /// records or a subset of the input records. /// </para> /// /// <para> /// Every request to BatchMeterUsage is for one product. If you need to meter usage for /// multiple products, you must make multiple calls to BatchMeterUsage. /// </para> /// /// <para> /// BatchMeterUsage can process up to 25 UsageRecords at a time. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchMeterUsage 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 BatchMeterUsage service method, as returned by AWSMarketplaceMetering.</returns> /// <exception cref="Amazon.AWSMarketplaceMetering.Model.DisabledApiException"> /// The API is disabled in the Region. /// </exception> /// <exception cref="Amazon.AWSMarketplaceMetering.Model.InternalServiceErrorException"> /// An internal error has occurred. Retry your request. If the problem persists, post /// a message with details on the AWS forums. /// </exception> /// <exception cref="Amazon.AWSMarketplaceMetering.Model.InvalidCustomerIdentifierException"> /// You have metered usage for a CustomerIdentifier that does not exist. /// </exception> /// <exception cref="Amazon.AWSMarketplaceMetering.Model.InvalidProductCodeException"> /// The product code passed does not match the product code used for publishing the product. /// </exception> /// <exception cref="Amazon.AWSMarketplaceMetering.Model.InvalidUsageDimensionException"> /// The usage dimension does not match one of the UsageDimensions associated with products. /// </exception> /// <exception cref="Amazon.AWSMarketplaceMetering.Model.ThrottlingException"> /// The calls to the API are throttled. /// </exception> /// <exception cref="Amazon.AWSMarketplaceMetering.Model.TimestampOutOfBoundsException"> /// The timestamp value passed in the meterUsage() is out of allowed range. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/BatchMeterUsage">REST API Reference for BatchMeterUsage Operation</seealso> public virtual Task<BatchMeterUsageResponse> BatchMeterUsageAsync(BatchMeterUsageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchMeterUsageRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchMeterUsageResponseUnmarshaller.Instance; return InvokeAsync<BatchMeterUsageResponse>(request, options, cancellationToken); }
internal virtual BatchMeterUsageResponse BatchMeterUsage(BatchMeterUsageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchMeterUsageRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchMeterUsageResponseUnmarshaller.Instance; return Invoke<BatchMeterUsageResponse>(request, options); }
/// <summary> /// Initiates the asynchronous execution of the BatchMeterUsage operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the BatchMeterUsage operation on AmazonAWSMarketplaceMeteringClient.</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 EndBatchMeterUsage /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/BatchMeterUsage">REST API Reference for BatchMeterUsage Operation</seealso> public virtual IAsyncResult BeginBatchMeterUsage(BatchMeterUsageRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = BatchMeterUsageRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchMeterUsageResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }