func (o *GetSampleV2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error
	qrIds := o.Ids
	qIds := qrIds
	if qIds != "" {
		if err := r.SetQueryParam("ids", qIds); err != nil {
			return err
		}
	}
	if o.PasswordProtected != nil {
		var qrPasswordProtected bool
		if o.PasswordProtected != nil {
			qrPasswordProtected = *o.PasswordProtected
		}
		qPasswordProtected := swag.FormatBool(qrPasswordProtected)
		if qPasswordProtected != "" {
			if err := r.SetQueryParam("password_protected", qPasswordProtected); err != nil {
				return err
			}
		}
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
WriteToRequest writes these params to a swagger request
package falconx_sandbox
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 NewGetSampleV2Params() *GetSampleV2Params {
	return &GetSampleV2Params{
		timeout: cr.DefaultTimeout,
	}
}
func NewGetSampleV2ParamsWithTimeout(timeout time.Duration) *GetSampleV2Params {
	return &GetSampleV2Params{
		timeout: timeout,
	}
}
func NewGetSampleV2ParamsWithContext(ctx context.Context) *GetSampleV2Params {
	return &GetSampleV2Params{
		Context: ctx,
	}
}
func NewGetSampleV2ParamsWithHTTPClient(client *http.Client) *GetSampleV2Params {
	return &GetSampleV2Params{
		HTTPClient: client,
	}
}
type GetSampleV2Params struct {
	Ids string
	PasswordProtected *bool
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *GetSampleV2Params) WithDefaults() *GetSampleV2Params {
	o.SetDefaults()
	return o
}
func (o *GetSampleV2Params) SetDefaults() {
	var (
		passwordProtectedDefault = bool(false)
	)
	val := GetSampleV2Params{
		PasswordProtected: &passwordProtectedDefault,
	}
	val.timeout = o.timeout
	val.Context = o.Context
	val.HTTPClient = o.HTTPClient
	*o = val
}
func (o *GetSampleV2Params) WithTimeout(timeout time.Duration) *GetSampleV2Params {
	o.SetTimeout(timeout)
	return o
}
func (o *GetSampleV2Params) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *GetSampleV2Params) WithContext(ctx context.Context) *GetSampleV2Params {
	o.SetContext(ctx)
	return o
}
func (o *GetSampleV2Params) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *GetSampleV2Params) WithHTTPClient(client *http.Client) *GetSampleV2Params {
	o.SetHTTPClient(client)
	return o
}
func (o *GetSampleV2Params) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *GetSampleV2Params) WithIds(ids string) *GetSampleV2Params {
	o.SetIds(ids)
	return o
}
func (o *GetSampleV2Params) SetIds(ids string) {
	o.Ids = ids
}
func (o *GetSampleV2Params) WithPasswordProtected(passwordProtected *bool) *GetSampleV2Params {
	o.SetPasswordProtected(passwordProtected)
	return o
}
func (o *GetSampleV2Params) SetPasswordProtected(passwordProtected *bool) {
	o.PasswordProtected = passwordProtected
}