func (o *PutCallbacksIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error
	if o.Body == nil {
		o.Body = new(models.CallbackResponse)
	}
	if err := r.SetBodyParam(o.Body); err != nil {
		return err
	}
	if err := r.SetPathParam("id", o.ID); err != nil {
		return err
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
WriteToRequest writes these params to a swagger request
package callback
import (
	"net/http"
	"time"
	"golang.org/x/net/context"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	cr "github.com/go-openapi/runtime/client"
	strfmt "github.com/go-openapi/strfmt"
	"github.com/manifoldco/grafton/generated/connector/models"
)
func NewPutCallbacksIDParams() *PutCallbacksIDParams {
	var ()
	return &PutCallbacksIDParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewPutCallbacksIDParamsWithTimeout(timeout time.Duration) *PutCallbacksIDParams {
	var ()
	return &PutCallbacksIDParams{
		timeout: timeout,
	}
}
func NewPutCallbacksIDParamsWithContext(ctx context.Context) *PutCallbacksIDParams {
	var ()
	return &PutCallbacksIDParams{
		Context: ctx,
	}
}
func NewPutCallbacksIDParamsWithHTTPClient(client *http.Client) *PutCallbacksIDParams {
	var ()
	return &PutCallbacksIDParams{
		HTTPClient: client,
	}
}
type PutCallbacksIDParams struct {
	Body *models.CallbackResponse
	ID string
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *PutCallbacksIDParams) WithTimeout(timeout time.Duration) *PutCallbacksIDParams {
	o.SetTimeout(timeout)
	return o
}
func (o *PutCallbacksIDParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *PutCallbacksIDParams) WithContext(ctx context.Context) *PutCallbacksIDParams {
	o.SetContext(ctx)
	return o
}
func (o *PutCallbacksIDParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *PutCallbacksIDParams) WithHTTPClient(client *http.Client) *PutCallbacksIDParams {
	o.SetHTTPClient(client)
	return o
}
func (o *PutCallbacksIDParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *PutCallbacksIDParams) WithBody(body *models.CallbackResponse) *PutCallbacksIDParams {
	o.SetBody(body)
	return o
}
func (o *PutCallbacksIDParams) SetBody(body *models.CallbackResponse) {
	o.Body = body
}
func (o *PutCallbacksIDParams) WithID(id string) *PutCallbacksIDParams {
	o.SetID(id)
	return o
}
func (o *PutCallbacksIDParams) SetID(id string) {
	o.ID = id
}