internal virtual DescribeUserHierarchyStructureResponse DescribeUserHierarchyStructure(DescribeUserHierarchyStructureRequest request)
        {
            var marshaller   = DescribeUserHierarchyStructureRequestMarshaller.Instance;
            var unmarshaller = DescribeUserHierarchyStructureResponseUnmarshaller.Instance;

            return(Invoke <DescribeUserHierarchyStructureRequest, DescribeUserHierarchyStructureResponse>(request, marshaller, unmarshaller));
        }
        /// <summary>
        /// Initiates the asynchronous execution of the DescribeUserHierarchyStructure operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the DescribeUserHierarchyStructure 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/connect-2017-08-08/DescribeUserHierarchyStructure">REST API Reference for DescribeUserHierarchyStructure Operation</seealso>
        public virtual Task <DescribeUserHierarchyStructureResponse> DescribeUserHierarchyStructureAsync(DescribeUserHierarchyStructureRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = DescribeUserHierarchyStructureRequestMarshaller.Instance;
            var unmarshaller = DescribeUserHierarchyStructureResponseUnmarshaller.Instance;

            return(InvokeAsync <DescribeUserHierarchyStructureRequest, DescribeUserHierarchyStructureResponse>(request, marshaller,
                                                                                                               unmarshaller, cancellationToken));
        }
        internal virtual DescribeUserHierarchyStructureResponse DescribeUserHierarchyStructure(DescribeUserHierarchyStructureRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = DescribeUserHierarchyStructureRequestMarshaller.Instance;
            options.ResponseUnmarshaller = DescribeUserHierarchyStructureResponseUnmarshaller.Instance;

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