func (s *IngestPutPipelineService) BodyJson(body interface{}) *IngestPutPipelineService {
	s.bodyJson = body
	return s
}
BodyJson is the ingest definition, defined as a JSON-serializable document.
Use e.g. a map[string]interface{} here.
package elastic
import (
	"context"
	"encoding/json"
	"fmt"
	"net/url"
	"github.com/olivere/elastic/uritemplates"
)
type IngestPutPipelineService struct {
	client        *Client
	pretty        bool
	id            string
	masterTimeout string
	timeout       string
	bodyJson      interface{}
	bodyString    string
}
func NewIngestPutPipelineService(client *Client) *IngestPutPipelineService {
	return &IngestPutPipelineService{
		client: client,
	}
}
func (s *IngestPutPipelineService) Id(id string) *IngestPutPipelineService {
	s.id = id
	return s
}
func (s *IngestPutPipelineService) MasterTimeout(masterTimeout string) *IngestPutPipelineService {
	s.masterTimeout = masterTimeout
	return s
}
func (s *IngestPutPipelineService) Timeout(timeout string) *IngestPutPipelineService {
	s.timeout = timeout
	return s
}
func (s *IngestPutPipelineService) Pretty(pretty bool) *IngestPutPipelineService {
	s.pretty = pretty
	return s
}