internal UpdateDefaultSearchFieldResponse UpdateDefaultSearchField(UpdateDefaultSearchFieldRequest request)
        {
            var marshaller = new UpdateDefaultSearchFieldRequestMarshaller();
            var unmarshaller = UpdateDefaultSearchFieldResponseUnmarshaller.Instance;

            return Invoke<UpdateDefaultSearchFieldRequest,UpdateDefaultSearchFieldResponse>(request, marshaller, unmarshaller);
        }
        /// <summary>
        /// Initiates the asynchronous execution of the UpdateDefaultSearchField operation.
        /// <seealso cref="Amazon.CloudSearch_2011_02_01.IAmazonCloudSearch.UpdateDefaultSearchField"/>
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the UpdateDefaultSearchField 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>
		public Task<UpdateDefaultSearchFieldResponse> UpdateDefaultSearchFieldAsync(UpdateDefaultSearchFieldRequest request, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new UpdateDefaultSearchFieldRequestMarshaller();
            var unmarshaller = UpdateDefaultSearchFieldResponseUnmarshaller.GetInstance();
            return Invoke<IRequest, UpdateDefaultSearchFieldRequest, UpdateDefaultSearchFieldResponse>(request, marshaller, unmarshaller, signer, cancellationToken);
        }
        /// <summary>
        /// Initiates the asynchronous execution of the UpdateDefaultSearchField operation.
        /// <seealso cref="Amazon.CloudSearch_2011_02_01.IAmazonCloudSearch"/>
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the UpdateDefaultSearchField 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>
        public Task<UpdateDefaultSearchFieldResponse> UpdateDefaultSearchFieldAsync(UpdateDefaultSearchFieldRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new UpdateDefaultSearchFieldRequestMarshaller();
            var unmarshaller = UpdateDefaultSearchFieldResponseUnmarshaller.Instance;

            return InvokeAsync<UpdateDefaultSearchFieldRequest,UpdateDefaultSearchFieldResponse>(request, marshaller,
                unmarshaller, cancellationToken);
        }
        /// <summary>
        /// <para>Configures the default search field for the search domain. The default search field is the text field that is searched when a search
        /// request does not specify which fields to search. By default, it is configured to include the contents of all of the domain's text fields.
        /// </para>
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the UpdateDefaultSearchField service method
        /// on AmazonCloudSearch.</param>
        /// 
        /// <returns>The response from the UpdateDefaultSearchField service method, as returned by AmazonCloudSearch.</returns>
        /// 
        /// <exception cref="T:Amazon.CloudSearch_2011_02_01.Model.BaseException" />
        /// <exception cref="T:Amazon.CloudSearch_2011_02_01.Model.ResourceNotFoundException" />
        /// <exception cref="T:Amazon.CloudSearch_2011_02_01.Model.InternalException" />
        /// <exception cref="T:Amazon.CloudSearch_2011_02_01.Model.InvalidTypeException" />
		public UpdateDefaultSearchFieldResponse UpdateDefaultSearchField(UpdateDefaultSearchFieldRequest request)
        {
            var task = UpdateDefaultSearchFieldAsync(request);
            try
            {
                return task.Result;
            }
            catch(AggregateException e)
            {
                ExceptionDispatchInfo.Capture(e.InnerException).Throw();
                return null;
            }
        }
 IAsyncResult invokeUpdateDefaultSearchField(UpdateDefaultSearchFieldRequest updateDefaultSearchFieldRequest, AsyncCallback callback, object state, bool synchronized)
 {
     IRequest irequest = new UpdateDefaultSearchFieldRequestMarshaller().Marshall(updateDefaultSearchFieldRequest);
     var unmarshaller = UpdateDefaultSearchFieldResponseUnmarshaller.GetInstance();
     AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller);
     Invoke(result);
     return result;
 }
 /// <summary>
 /// Initiates the asynchronous execution of the UpdateDefaultSearchField operation.
 /// <seealso cref="Amazon.CloudSearch_2011_02_01.IAmazonCloudSearch.UpdateDefaultSearchField"/>
 /// </summary>
 /// 
 /// <param name="updateDefaultSearchFieldRequest">Container for the necessary parameters to execute the UpdateDefaultSearchField operation on
 ///          AmazonCloudSearch.</param>
 /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
 /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
 ///          procedure using the AsyncState property.</param>
 /// 
 /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking
 ///         EndUpdateDefaultSearchField operation.</returns>
 public IAsyncResult BeginUpdateDefaultSearchField(UpdateDefaultSearchFieldRequest updateDefaultSearchFieldRequest, AsyncCallback callback, object state)
 {
     return invokeUpdateDefaultSearchField(updateDefaultSearchFieldRequest, callback, state, false);
 }
 /// <summary>
 /// <para>Configures the default search field for the search domain. The default search field is the text field that is searched when a search
 /// request does not specify which fields to search. By default, it is configured to include the contents of all of the domain's text fields.
 /// </para>
 /// </summary>
 /// 
 /// <param name="updateDefaultSearchFieldRequest">Container for the necessary parameters to execute the UpdateDefaultSearchField service method
 ///          on AmazonCloudSearch.</param>
 /// 
 /// <returns>The response from the UpdateDefaultSearchField service method, as returned by AmazonCloudSearch.</returns>
 /// 
 /// <exception cref="BaseException"/>
 /// <exception cref="ResourceNotFoundException"/>
 /// <exception cref="InternalException"/>
 /// <exception cref="InvalidTypeException"/>
 public UpdateDefaultSearchFieldResponse UpdateDefaultSearchField(UpdateDefaultSearchFieldRequest updateDefaultSearchFieldRequest)
 {
     IAsyncResult asyncResult = invokeUpdateDefaultSearchField(updateDefaultSearchFieldRequest, null, null, true);
     return EndUpdateDefaultSearchField(asyncResult);
 }
        /// <summary>
        /// Initiates the asynchronous execution of the UpdateDefaultSearchField operation.
        /// <seealso cref="Amazon.CloudSearch_2011_02_01.IAmazonCloudSearch"/>
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the UpdateDefaultSearchField operation on AmazonCloudSearchClient.</param>
        /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
        /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
        ///          procedure using the AsyncState property.</param>
        /// 
        /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateDefaultSearchField
        ///         operation.</returns>
        public IAsyncResult BeginUpdateDefaultSearchField(UpdateDefaultSearchFieldRequest request, AsyncCallback callback, object state)
        {
            var marshaller = new UpdateDefaultSearchFieldRequestMarshaller();
            var unmarshaller = UpdateDefaultSearchFieldResponseUnmarshaller.Instance;

            return BeginInvoke<UpdateDefaultSearchFieldRequest>(request, marshaller, unmarshaller,
                callback, state);
        }