/// <summary> /// Initiates the asynchronous execution of the DeleteDhcpOptions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteDhcpOptions 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 Task<DeleteDhcpOptionsResponse> DeleteDhcpOptionsAsync(DeleteDhcpOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteDhcpOptionsRequestMarshaller(); var unmarshaller = DeleteDhcpOptionsResponseUnmarshaller.Instance; return InvokeAsync<DeleteDhcpOptionsRequest,DeleteDhcpOptionsResponse>(request, marshaller, unmarshaller, cancellationToken); }
public void DeleteDhcpOptionsMarshallTest() { var operation = service_model.FindOperation("DeleteDhcpOptions"); var request = InstantiateClassGenerator.Execute<DeleteDhcpOptionsRequest>(); var marshaller = new DeleteDhcpOptionsRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// Deletes the specified set of DHCP options. You must disassociate the set of DHCP options /// before you can delete it. You can disassociate the set of DHCP options by associating /// either a new set of options or the default set of options with the VPC. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteDhcpOptions service method.</param> /// /// <returns>The response from the DeleteDhcpOptions service method, as returned by EC2.</returns> public DeleteDhcpOptionsResponse DeleteDhcpOptions(DeleteDhcpOptionsRequest request) { var marshaller = new DeleteDhcpOptionsRequestMarshaller(); var unmarshaller = DeleteDhcpOptionsResponseUnmarshaller.Instance; return Invoke<DeleteDhcpOptionsRequest,DeleteDhcpOptionsResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DeleteDhcpOptions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteDhcpOptions operation on AmazonEC2Client.</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 EndDeleteDhcpOptions /// operation.</returns> public IAsyncResult BeginDeleteDhcpOptions(DeleteDhcpOptionsRequest request, AsyncCallback callback, object state) { var marshaller = new DeleteDhcpOptionsRequestMarshaller(); var unmarshaller = DeleteDhcpOptionsResponseUnmarshaller.Instance; return BeginInvoke<DeleteDhcpOptionsRequest>(request, marshaller, unmarshaller, callback, state); }
IAsyncResult invokeDeleteDhcpOptions(DeleteDhcpOptionsRequest deleteDhcpOptionsRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DeleteDhcpOptionsRequestMarshaller().Marshall(deleteDhcpOptionsRequest); var unmarshaller = DeleteDhcpOptionsResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para>Deletes the specified set of DHCP options. You must disassociate the set of DHCP options before you can delete it. You can /// disassociate the set of DHCP options by associating either a new set of options or the default set of options with the VPC.</para> /// </summary> /// /// <param name="deleteDhcpOptionsRequest">Container for the necessary parameters to execute the DeleteDhcpOptions service method on /// AmazonEC2.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<DeleteDhcpOptionsResponse> DeleteDhcpOptionsAsync(DeleteDhcpOptionsRequest deleteDhcpOptionsRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteDhcpOptionsRequestMarshaller(); var unmarshaller = DeleteDhcpOptionsResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DeleteDhcpOptionsRequest, DeleteDhcpOptionsResponse>(deleteDhcpOptionsRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the DeleteDhcpOptions operation. /// <seealso cref="Amazon.EC2.IAmazonEC2.DeleteDhcpOptions"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteDhcpOptions 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 async Task<DeleteDhcpOptionsResponse> DeleteDhcpOptionsAsync(DeleteDhcpOptionsRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteDhcpOptionsRequestMarshaller(); var unmarshaller = DeleteDhcpOptionsResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DeleteDhcpOptionsRequest, DeleteDhcpOptionsResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }