func (o *GetMalQueryRequestV1Params) bindParamIds(formats strfmt.Registry) []string {
	idsIR := o.Ids
	var idsIC []string
	for _, idsIIR := range idsIR {  
		idsIIV := idsIIR  
		idsIC = append(idsIC, idsIIV)
	}
	idsIS := swag.JoinByFormat(idsIC, "csv")
	return idsIS
}
bindParamGetMalQueryRequestV1 binds the parameter ids
package malquery
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 NewGetMalQueryRequestV1Params() *GetMalQueryRequestV1Params {
	return &GetMalQueryRequestV1Params{
		timeout: cr.DefaultTimeout,
	}
}
func NewGetMalQueryRequestV1ParamsWithTimeout(timeout time.Duration) *GetMalQueryRequestV1Params {
	return &GetMalQueryRequestV1Params{
		timeout: timeout,
	}
}
func NewGetMalQueryRequestV1ParamsWithContext(ctx context.Context) *GetMalQueryRequestV1Params {
	return &GetMalQueryRequestV1Params{
		Context: ctx,
	}
}
func NewGetMalQueryRequestV1ParamsWithHTTPClient(client *http.Client) *GetMalQueryRequestV1Params {
	return &GetMalQueryRequestV1Params{
		HTTPClient: client,
	}
}
type GetMalQueryRequestV1Params struct {
	Ids []string
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *GetMalQueryRequestV1Params) WithDefaults() *GetMalQueryRequestV1Params {
	o.SetDefaults()
	return o
}
func (o *GetMalQueryRequestV1Params) SetDefaults() {
}
func (o *GetMalQueryRequestV1Params) WithTimeout(timeout time.Duration) *GetMalQueryRequestV1Params {
	o.SetTimeout(timeout)
	return o
}
func (o *GetMalQueryRequestV1Params) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *GetMalQueryRequestV1Params) WithContext(ctx context.Context) *GetMalQueryRequestV1Params {
	o.SetContext(ctx)
	return o
}
func (o *GetMalQueryRequestV1Params) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *GetMalQueryRequestV1Params) WithHTTPClient(client *http.Client) *GetMalQueryRequestV1Params {
	o.SetHTTPClient(client)
	return o
}
func (o *GetMalQueryRequestV1Params) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *GetMalQueryRequestV1Params) WithIds(ids []string) *GetMalQueryRequestV1Params {
	o.SetIds(ids)
	return o
}
func (o *GetMalQueryRequestV1Params) SetIds(ids []string) {
	o.Ids = ids
}
func (o *GetMalQueryRequestV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error
	if o.Ids != nil {
		joinedIds := o.bindParamIds(reg)
		if err := r.SetQueryParam("ids", joinedIds...); err != nil {
			return err
		}
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}