internal DescribeAttachmentResponse DescribeAttachment(DescribeAttachmentRequest request) { var marshaller = new DescribeAttachmentRequestMarshaller(); var unmarshaller = DescribeAttachmentResponseUnmarshaller.Instance; return(Invoke <DescribeAttachmentRequest, DescribeAttachmentResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Returns the attachment that has the specified ID. Attachment IDs are generated by /// the case management system when you add an attachment to a case or case communication. /// Attachment IDs are returned in the <a>AttachmentDetails</a> objects that are returned /// by the <a>DescribeCommunications</a> operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAttachment service method.</param> /// /// <returns>The response from the DescribeAttachment service method, as returned by AWSSupport.</returns> /// <exception cref="T:Amazon.AWSSupport.Model.AttachmentIdNotFoundException"> /// An attachment with the specified ID could not be found. /// </exception> /// <exception cref="T:Amazon.AWSSupport.Model.DescribeAttachmentLimitExceededException"> /// The limit for the number of <a>DescribeAttachment</a> requests in a short period of /// time has been exceeded. /// </exception> /// <exception cref="T:Amazon.AWSSupport.Model.InternalServerErrorException"> /// An internal server error occurred. /// </exception> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task <DescribeAttachmentResponse> DescribeAttachmentAsync(DescribeAttachmentRequest describeAttachmentRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeAttachmentRequestMarshaller(); var unmarshaller = DescribeAttachmentResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, DescribeAttachmentRequest, DescribeAttachmentResponse>(describeAttachmentRequest, marshaller, unmarshaller, signer, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeAttachment operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAttachment 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/DescribeAttachment">REST API Reference for DescribeAttachment Operation</seealso> public Task <DescribeAttachmentResponse> DescribeAttachmentAsync(DescribeAttachmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeAttachmentRequestMarshaller(); var unmarshaller = DescribeAttachmentResponseUnmarshaller.Instance; return(InvokeAsync <DescribeAttachmentRequest, DescribeAttachmentResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeAttachment operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAttachment 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/DescribeAttachment">REST API Reference for DescribeAttachment Operation</seealso> public virtual Task <DescribeAttachmentResponse> DescribeAttachmentAsync(DescribeAttachmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAttachmentRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAttachmentResponseUnmarshaller.Instance; return(InvokeAsync <DescribeAttachmentResponse>(request, options, cancellationToken)); }
internal virtual DescribeAttachmentResponse DescribeAttachment(DescribeAttachmentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAttachmentRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAttachmentResponseUnmarshaller.Instance; return(Invoke <DescribeAttachmentResponse>(request, options)); }
internal DescribeAttachmentResponse DescribeAttachment(DescribeAttachmentRequest request) { var task = DescribeAttachmentAsync(request); try { return(task.Result); } catch (AggregateException e) { ExceptionDispatchInfo.Capture(e.InnerException).Throw(); return(null); } }