func (s *XPackWatcherStopService) Do(ctx context.Context) (*XPackWatcherStopResponse, error) {
	if err := s.Validate(); err != nil {
		return nil, err
	}
	path, params, err := s.buildURL()
	if err != nil {
		return nil, err
	}
	res, err := s.client.PerformRequest(ctx, PerformRequestOptions{
		Method:  "POST",
		Path:    path,
		Params:  params,
		Headers: s.headers,
	})
	if err != nil {
		return nil, err
	}
	ret := new(XPackWatcherStopResponse)
	if err := json.Unmarshal(res.Body, ret); err != nil {
		return nil, err
	}
	return ret, nil
}
Do executes the operation.
package elastic
import (
	"context"
	"encoding/json"
	"fmt"
	"net/http"
	"net/url"
	"strings"
)
type XPackWatcherStopService struct {
	client *Client
	pretty     *bool        
	human      *bool        
	errorTrace *bool        
	filterPath []string     
	headers    http.Header  
}
func NewXPackWatcherStopService(client *Client) *XPackWatcherStopService {
	return &XPackWatcherStopService{
		client: client,
	}
}
func (s *XPackWatcherStopService) Pretty(pretty bool) *XPackWatcherStopService {
	s.pretty = &pretty
	return s
}
func (s *XPackWatcherStopService) Human(human bool) *XPackWatcherStopService {
	s.human = &human
	return s
}
func (s *XPackWatcherStopService) ErrorTrace(errorTrace bool) *XPackWatcherStopService {
	s.errorTrace = &errorTrace
	return s
}
func (s *XPackWatcherStopService) FilterPath(filterPath ...string) *XPackWatcherStopService {
	s.filterPath = filterPath
	return s
}
func (s *XPackWatcherStopService) Header(name string, value string) *XPackWatcherStopService {
	if s.headers == nil {
		s.headers = http.Header{}
	}
	s.headers.Add(name, value)
	return s
}
func (s *XPackWatcherStopService) Headers(headers http.Header) *XPackWatcherStopService {
	s.headers = headers
	return s
}
func (s *XPackWatcherStopService) buildURL() (string, url.Values, error) {
	path := "/_watcher/_stop"
	params := url.Values{}
	if v := s.pretty; v != nil {
		params.Set("pretty", fmt.Sprint(*v))
	}
	if v := s.human; v != nil {
		params.Set("human", fmt.Sprint(*v))
	}
	if v := s.errorTrace; v != nil {
		params.Set("error_trace", fmt.Sprint(*v))
	}
	if len(s.filterPath) > 0 {
		params.Set("filter_path", strings.Join(s.filterPath, ","))
	}
	return path, params, nil
}
func (s *XPackWatcherStopService) Validate() error {
	return nil
}