/// <summary> /// Initiates the asynchronous execution of the BatchUpdateDetector operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the BatchUpdateDetector operation on AmazonIoTEventsDataClient.</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 EndBatchUpdateDetector /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/BatchUpdateDetector">REST API Reference for BatchUpdateDetector Operation</seealso> public virtual IAsyncResult BeginBatchUpdateDetector(BatchUpdateDetectorRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = BatchUpdateDetectorRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchUpdateDetectorResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); }
/// <summary> /// Updates the state, variable values, and timer settings of one or more detectors (instances) /// of a specified detector model. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchUpdateDetector service method.</param> /// /// <returns>The response from the BatchUpdateDetector service method, as returned by IoTEventsData.</returns> /// <exception cref="Amazon.IoTEventsData.Model.InternalFailureException"> /// An internal failure occured. /// </exception> /// <exception cref="Amazon.IoTEventsData.Model.InvalidRequestException"> /// The request was invalid. /// </exception> /// <exception cref="Amazon.IoTEventsData.Model.ServiceUnavailableException"> /// The service is currently unavailable. /// </exception> /// <exception cref="Amazon.IoTEventsData.Model.ThrottlingException"> /// The request could not be completed due to throttling. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/BatchUpdateDetector">REST API Reference for BatchUpdateDetector Operation</seealso> public virtual BatchUpdateDetectorResponse BatchUpdateDetector(BatchUpdateDetectorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchUpdateDetectorRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchUpdateDetectorResponseUnmarshaller.Instance; return Invoke<BatchUpdateDetectorResponse>(request, options); }
/// <summary> /// Updates the state, variable values, and timer settings of one or more detectors (instances) /// of a specified detector model. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchUpdateDetector 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 BatchUpdateDetector service method, as returned by IoTEventsData.</returns> /// <exception cref="Amazon.IoTEventsData.Model.InternalFailureException"> /// An internal failure occured. /// </exception> /// <exception cref="Amazon.IoTEventsData.Model.InvalidRequestException"> /// The request was invalid. /// </exception> /// <exception cref="Amazon.IoTEventsData.Model.ServiceUnavailableException"> /// The service is currently unavailable. /// </exception> /// <exception cref="Amazon.IoTEventsData.Model.ThrottlingException"> /// The request could not be completed due to throttling. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/BatchUpdateDetector">REST API Reference for BatchUpdateDetector Operation</seealso> public virtual Task <BatchUpdateDetectorResponse> BatchUpdateDetectorAsync(BatchUpdateDetectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchUpdateDetectorRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchUpdateDetectorResponseUnmarshaller.Instance; return(InvokeAsync <BatchUpdateDetectorResponse>(request, options, cancellationToken)); }