/// <summary> /// <para>Adds additional customer communication to an AWS Support case. You use the <c>CaseId</c> value to identify the case to add /// communication to. You can list a set of email addresses to copy on the communication using the <c>CcEmailAddresses</c> value. The /// <c>CommunicationBody</c> value contains the text of the communication.</para> <para>The response indicates the success or failure of the /// request.</para> <para>This operation implements a subset of the behavior on the AWS Support <a href="https://aws.amazon.com/support">Your /// Support Cases</a> web form.</para> /// </summary> /// /// <param name="addCommunicationToCaseRequest">Container for the necessary parameters to execute the AddCommunicationToCase service method on /// AmazonAWSSupport.</param> /// /// <returns>The response from the AddCommunicationToCase service method, as returned by AmazonAWSSupport.</returns> /// /// <exception cref="T:Amazon.AWSSupport.Model.InternalServerErrorException" /> /// <exception cref="T:Amazon.AWSSupport.Model.CaseIdNotFoundException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task <AddCommunicationToCaseResponse> AddCommunicationToCaseAsync(AddCommunicationToCaseRequest addCommunicationToCaseRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new AddCommunicationToCaseRequestMarshaller(); var unmarshaller = AddCommunicationToCaseResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, AddCommunicationToCaseRequest, AddCommunicationToCaseResponse>(addCommunicationToCaseRequest, marshaller, unmarshaller, signer, cancellationToken)); }
internal AddCommunicationToCaseResponse AddCommunicationToCase(AddCommunicationToCaseRequest request) { var marshaller = new AddCommunicationToCaseRequestMarshaller(); var unmarshaller = AddCommunicationToCaseResponseUnmarshaller.Instance; return(Invoke <AddCommunicationToCaseRequest, AddCommunicationToCaseResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the AddCommunicationToCase operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AddCommunicationToCase 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/support-2013-04-15/AddCommunicationToCase">REST API Reference for AddCommunicationToCase Operation</seealso> public Task <AddCommunicationToCaseResponse> AddCommunicationToCaseAsync(AddCommunicationToCaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new AddCommunicationToCaseRequestMarshaller(); var unmarshaller = AddCommunicationToCaseResponseUnmarshaller.Instance; return(InvokeAsync <AddCommunicationToCaseRequest, AddCommunicationToCaseResponse>(request, marshaller, unmarshaller, cancellationToken)); }
internal virtual AddCommunicationToCaseResponse AddCommunicationToCase(AddCommunicationToCaseRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AddCommunicationToCaseRequestMarshaller.Instance; options.ResponseUnmarshaller = AddCommunicationToCaseResponseUnmarshaller.Instance; return(Invoke <AddCommunicationToCaseResponse>(request, options)); }
internal AddCommunicationToCaseResponse AddCommunicationToCase(AddCommunicationToCaseRequest request) { var task = AddCommunicationToCaseAsync(request); try { return(task.Result); } catch (AggregateException e) { ExceptionDispatchInfo.Capture(e.InnerException).Throw(); return(null); } }
/// <summary> /// Initiates the asynchronous execution of the AddCommunicationToCase operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AddCommunicationToCase 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/support-2013-04-15/AddCommunicationToCase">REST API Reference for AddCommunicationToCase Operation</seealso> public virtual Task <AddCommunicationToCaseResponse> AddCommunicationToCaseAsync(AddCommunicationToCaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AddCommunicationToCaseRequestMarshaller.Instance; options.ResponseUnmarshaller = AddCommunicationToCaseResponseUnmarshaller.Instance; return(InvokeAsync <AddCommunicationToCaseResponse>(request, options, cancellationToken)); }