/// <summary> /// <para>Returns communications regarding the support case. You can use the <c>AfterTime</c> and <c>BeforeTime</c> parameters to filter by /// date. The <c>CaseId</c> parameter enables you to identify a specific case by its <c>CaseId</c> value.</para> <para>The <c>MaxResults</c> and /// <c>NextToken</c> parameters enable you to control the pagination of the result set. Set <c>MaxResults</c> to the number of cases you want /// displayed on each page, and use <c>NextToken</c> to specify the resumption of pagination.</para> /// </summary> /// /// <param name="describeCommunicationsRequest">Container for the necessary parameters to execute the DescribeCommunications service method on /// AmazonAWSSupport.</param> /// /// <returns>The response from the DescribeCommunications 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 <DescribeCommunicationsResponse> DescribeCommunicationsAsync(DescribeCommunicationsRequest describeCommunicationsRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeCommunicationsRequestMarshaller(); var unmarshaller = DescribeCommunicationsResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, DescribeCommunicationsRequest, DescribeCommunicationsResponse>(describeCommunicationsRequest, marshaller, unmarshaller, signer, cancellationToken)); }
internal DescribeCommunicationsResponse DescribeCommunications(DescribeCommunicationsRequest request) { var marshaller = new DescribeCommunicationsRequestMarshaller(); var unmarshaller = DescribeCommunicationsResponseUnmarshaller.Instance; return(Invoke <DescribeCommunicationsRequest, DescribeCommunicationsResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeCommunications operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeCommunications 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/DescribeCommunications">REST API Reference for DescribeCommunications Operation</seealso> public Task <DescribeCommunicationsResponse> DescribeCommunicationsAsync(DescribeCommunicationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeCommunicationsRequestMarshaller(); var unmarshaller = DescribeCommunicationsResponseUnmarshaller.Instance; return(InvokeAsync <DescribeCommunicationsRequest, DescribeCommunicationsResponse>(request, marshaller, unmarshaller, cancellationToken)); }
internal virtual DescribeCommunicationsResponse DescribeCommunications(DescribeCommunicationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeCommunicationsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeCommunicationsResponseUnmarshaller.Instance; return(Invoke <DescribeCommunicationsResponse>(request, options)); }
internal DescribeCommunicationsResponse DescribeCommunications(DescribeCommunicationsRequest request) { var task = DescribeCommunicationsAsync(request); try { return(task.Result); } catch (AggregateException e) { ExceptionDispatchInfo.Capture(e.InnerException).Throw(); return(null); } }
/// <summary> /// Initiates the asynchronous execution of the DescribeCommunications operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeCommunications 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/DescribeCommunications">REST API Reference for DescribeCommunications Operation</seealso> public virtual Task <DescribeCommunicationsResponse> DescribeCommunicationsAsync(DescribeCommunicationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeCommunicationsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeCommunicationsResponseUnmarshaller.Instance; return(InvokeAsync <DescribeCommunicationsResponse>(request, options, cancellationToken)); }