func (s *XPackSecurityPutRoleService) Pretty(pretty bool) *XPackSecurityPutRoleService {
	s.pretty = pretty
	return s
}
Pretty indicates that the JSON response be indented and human readable.
package elastic
import (
	"context"
	"encoding/json"
	"fmt"
	"net/url"
	"github.com/olivere/elastic/uritemplates"
)
type XPackSecurityPutRoleService struct {
	client *Client
	pretty bool
	name   string
	body   interface{}
}
func NewXPackSecurityPutRoleService(client *Client) *XPackSecurityPutRoleService {
	return &XPackSecurityPutRoleService{
		client: client,
	}
}
func (s *XPackSecurityPutRoleService) Name(name string) *XPackSecurityPutRoleService {
	s.name = name
	return s
}