func (o *UpdateCustomRuleParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
SetContext adds the context to the update custom rule params
package custom_rules
import (
	"context"
	"net/http"
	"time"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	cr "github.com/go-openapi/runtime/client"
	"github.com/go-openapi/strfmt"
	"github.com/fugue/fugue-client/models"
)
func NewUpdateCustomRuleParams() *UpdateCustomRuleParams {
	var ()
	return &UpdateCustomRuleParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewUpdateCustomRuleParamsWithTimeout(timeout time.Duration) *UpdateCustomRuleParams {
	var ()
	return &UpdateCustomRuleParams{
		timeout: timeout,
	}
}
func NewUpdateCustomRuleParamsWithContext(ctx context.Context) *UpdateCustomRuleParams {
	var ()
	return &UpdateCustomRuleParams{
		Context: ctx,
	}
}
func NewUpdateCustomRuleParamsWithHTTPClient(client *http.Client) *UpdateCustomRuleParams {
	var ()
	return &UpdateCustomRuleParams{
		HTTPClient: client,
	}
}
type UpdateCustomRuleParams struct {
	Rule *models.UpdateCustomRuleInput
	RuleID string
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *UpdateCustomRuleParams) WithTimeout(timeout time.Duration) *UpdateCustomRuleParams {
	o.SetTimeout(timeout)
	return o
}
func (o *UpdateCustomRuleParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *UpdateCustomRuleParams) WithContext(ctx context.Context) *UpdateCustomRuleParams {
	o.SetContext(ctx)
	return o
}