func (o *CreateMessageParams) WithBody(body *models.MessageExternal) *CreateMessageParams {
	o.SetBody(body)
	return o
}
WithBody adds the body to the create message params
package message
import (
	"context"
	"net/http"
	"time"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	cr "github.com/go-openapi/runtime/client"
	strfmt "github.com/go-openapi/strfmt"
	models "github.com/gotify/go-api-client/v2/models"
)
func NewCreateMessageParams() *CreateMessageParams {
	var ()
	return &CreateMessageParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewCreateMessageParamsWithTimeout(timeout time.Duration) *CreateMessageParams {
	var ()
	return &CreateMessageParams{
		timeout: timeout,
	}
}
func NewCreateMessageParamsWithContext(ctx context.Context) *CreateMessageParams {
	var ()
	return &CreateMessageParams{
		Context: ctx,
	}
}
func NewCreateMessageParamsWithHTTPClient(client *http.Client) *CreateMessageParams {
	var ()
	return &CreateMessageParams{
		HTTPClient: client,
	}
}
type CreateMessageParams struct {
	Body *models.MessageExternal
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *CreateMessageParams) WithTimeout(timeout time.Duration) *CreateMessageParams {
	o.SetTimeout(timeout)
	return o
}
func (o *CreateMessageParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *CreateMessageParams) WithContext(ctx context.Context) *CreateMessageParams {
	o.SetContext(ctx)
	return o
}
func (o *CreateMessageParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *CreateMessageParams) WithHTTPClient(client *http.Client) *CreateMessageParams {
	o.SetHTTPClient(client)
	return o
}
func (o *CreateMessageParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}