func (o *GetCSPMCGPAccountParams) 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 o.ScanType != nil {
		var qrScanType string
		if o.ScanType != nil {
			qrScanType = *o.ScanType
		}
		qScanType := qrScanType
		if qScanType != "" {
			if err := r.SetQueryParam("scan-type", qScanType); err != nil {
				return err
			}
		}
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
WriteToRequest writes these params to a swagger request
package d4c_registration
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 NewGetCSPMCGPAccountParams() *GetCSPMCGPAccountParams {
	return &GetCSPMCGPAccountParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewGetCSPMCGPAccountParamsWithTimeout(timeout time.Duration) *GetCSPMCGPAccountParams {
	return &GetCSPMCGPAccountParams{
		timeout: timeout,
	}
}
func NewGetCSPMCGPAccountParamsWithContext(ctx context.Context) *GetCSPMCGPAccountParams {
	return &GetCSPMCGPAccountParams{
		Context: ctx,
	}
}
func NewGetCSPMCGPAccountParamsWithHTTPClient(client *http.Client) *GetCSPMCGPAccountParams {
	return &GetCSPMCGPAccountParams{
		HTTPClient: client,
	}
}
type GetCSPMCGPAccountParams struct {
	Ids []string
	ScanType *string
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *GetCSPMCGPAccountParams) WithDefaults() *GetCSPMCGPAccountParams {
	o.SetDefaults()
	return o
}
func (o *GetCSPMCGPAccountParams) SetDefaults() {
}
func (o *GetCSPMCGPAccountParams) WithTimeout(timeout time.Duration) *GetCSPMCGPAccountParams {
	o.SetTimeout(timeout)
	return o
}
func (o *GetCSPMCGPAccountParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *GetCSPMCGPAccountParams) WithContext(ctx context.Context) *GetCSPMCGPAccountParams {
	o.SetContext(ctx)
	return o
}
func (o *GetCSPMCGPAccountParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *GetCSPMCGPAccountParams) WithHTTPClient(client *http.Client) *GetCSPMCGPAccountParams {
	o.SetHTTPClient(client)
	return o
}
func (o *GetCSPMCGPAccountParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *GetCSPMCGPAccountParams) WithIds(ids []string) *GetCSPMCGPAccountParams {
	o.SetIds(ids)
	return o
}
func (o *GetCSPMCGPAccountParams) SetIds(ids []string) {
	o.Ids = ids
}
func (o *GetCSPMCGPAccountParams) WithScanType(scanType *string) *GetCSPMCGPAccountParams {
	o.SetScanType(scanType)
	return o
}
func (o *GetCSPMCGPAccountParams) SetScanType(scanType *string) {
	o.ScanType = scanType
}