internal virtual DescribeUserHierarchyGroupResponse DescribeUserHierarchyGroup(DescribeUserHierarchyGroupRequest request)
        {
            var marshaller   = DescribeUserHierarchyGroupRequestMarshaller.Instance;
            var unmarshaller = DescribeUserHierarchyGroupResponseUnmarshaller.Instance;

            return(Invoke <DescribeUserHierarchyGroupRequest, DescribeUserHierarchyGroupResponse>(request, marshaller, unmarshaller));
        }
        /// <summary>
        /// Initiates the asynchronous execution of the DescribeUserHierarchyGroup operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the DescribeUserHierarchyGroup 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/DescribeUserHierarchyGroup">REST API Reference for DescribeUserHierarchyGroup Operation</seealso>
        public virtual Task <DescribeUserHierarchyGroupResponse> DescribeUserHierarchyGroupAsync(DescribeUserHierarchyGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = DescribeUserHierarchyGroupRequestMarshaller.Instance;
            var unmarshaller = DescribeUserHierarchyGroupResponseUnmarshaller.Instance;

            return(InvokeAsync <DescribeUserHierarchyGroupRequest, DescribeUserHierarchyGroupResponse>(request, marshaller,
                                                                                                       unmarshaller, cancellationToken));
        }
        internal virtual DescribeUserHierarchyGroupResponse DescribeUserHierarchyGroup(DescribeUserHierarchyGroupRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = DescribeUserHierarchyGroupRequestMarshaller.Instance;
            options.ResponseUnmarshaller = DescribeUserHierarchyGroupResponseUnmarshaller.Instance;

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