func (o *TestCustomRuleInputParams) WithViaDownload(viaDownload *bool) *TestCustomRuleInputParams {
	o.SetViaDownload(viaDownload)
	return o
}
WithViaDownload adds the viaDownload to the test custom rule input 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/go-openapi/swag"
)
func NewTestCustomRuleInputParams() *TestCustomRuleInputParams {
	var ()
	return &TestCustomRuleInputParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewTestCustomRuleInputParamsWithTimeout(timeout time.Duration) *TestCustomRuleInputParams {
	var ()
	return &TestCustomRuleInputParams{
		timeout: timeout,
	}
}
func NewTestCustomRuleInputParamsWithContext(ctx context.Context) *TestCustomRuleInputParams {
	var ()
	return &TestCustomRuleInputParams{
		Context: ctx,
	}
}
func NewTestCustomRuleInputParamsWithHTTPClient(client *http.Client) *TestCustomRuleInputParams {
	var ()
	return &TestCustomRuleInputParams{
		HTTPClient: client,
	}
}
type TestCustomRuleInputParams struct {
	ScanID string
	ViaDownload *bool
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *TestCustomRuleInputParams) WithTimeout(timeout time.Duration) *TestCustomRuleInputParams {
	o.SetTimeout(timeout)
	return o
}
func (o *TestCustomRuleInputParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *TestCustomRuleInputParams) WithContext(ctx context.Context) *TestCustomRuleInputParams {
	o.SetContext(ctx)
	return o
}
func (o *TestCustomRuleInputParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *TestCustomRuleInputParams) WithHTTPClient(client *http.Client) *TestCustomRuleInputParams {
	o.SetHTTPClient(client)
	return o
}
func (o *TestCustomRuleInputParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *TestCustomRuleInputParams) WithScanID(scanID string) *TestCustomRuleInputParams {
	o.SetScanID(scanID)
	return o
}
func (o *TestCustomRuleInputParams) SetScanID(scanID string) {
	o.ScanID = scanID
}