/// <summary>
        /// Initiates the asynchronous execution of the AssociateNode operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the AssociateNode 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/opsworkscm-2016-11-01/AssociateNode">REST API Reference for AssociateNode Operation</seealso>
        public virtual Task <AssociateNodeResponse> AssociateNodeAsync(AssociateNodeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new AssociateNodeRequestMarshaller();
            var unmarshaller = AssociateNodeResponseUnmarshaller.Instance;

            return(InvokeAsync <AssociateNodeRequest, AssociateNodeResponse>(request, marshaller,
                                                                             unmarshaller, cancellationToken));
        }
        /// <summary>
        /// Initiates the asynchronous execution of the AssociateNode operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the AssociateNode 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/opsworkscm-2016-11-01/AssociateNode">REST API Reference for AssociateNode Operation</seealso>
        public virtual Task <AssociateNodeResponse> AssociateNodeAsync(AssociateNodeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = AssociateNodeRequestMarshaller.Instance;
            options.ResponseUnmarshaller = AssociateNodeResponseUnmarshaller.Instance;

            return(InvokeAsync <AssociateNodeResponse>(request, options, cancellationToken));
        }
        internal virtual AssociateNodeResponse AssociateNode(AssociateNodeRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = AssociateNodeRequestMarshaller.Instance;
            options.ResponseUnmarshaller = AssociateNodeResponseUnmarshaller.Instance;

            return(Invoke <AssociateNodeResponse>(request, options));
        }