func (o *GetPrivateToggleNotificationsFromSubaccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error
	qrSid := o.Sid
	qSid := swag.FormatInt64(qrSid)
	if qSid != "" {
		if err := r.SetQueryParam("sid", qSid); err != nil {
			return err
		}
	}
	qrState := o.State
	qState := swag.FormatBool(qrState)
	if qState != "" {
		if err := r.SetQueryParam("state", qState); err != nil {
			return err
		}
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
WriteToRequest writes these params to a swagger request
package operations
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/swag"
	strfmt "github.com/go-openapi/strfmt"
)
func NewGetPrivateToggleNotificationsFromSubaccountParams() *GetPrivateToggleNotificationsFromSubaccountParams {
	var ()
	return &GetPrivateToggleNotificationsFromSubaccountParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewGetPrivateToggleNotificationsFromSubaccountParamsWithTimeout(timeout time.Duration) *GetPrivateToggleNotificationsFromSubaccountParams {
	var ()
	return &GetPrivateToggleNotificationsFromSubaccountParams{
		timeout: timeout,
	}
}
func NewGetPrivateToggleNotificationsFromSubaccountParamsWithContext(ctx context.Context) *GetPrivateToggleNotificationsFromSubaccountParams {
	var ()
	return &GetPrivateToggleNotificationsFromSubaccountParams{
		Context: ctx,
	}
}
func NewGetPrivateToggleNotificationsFromSubaccountParamsWithHTTPClient(client *http.Client) *GetPrivateToggleNotificationsFromSubaccountParams {
	var ()
	return &GetPrivateToggleNotificationsFromSubaccountParams{
		HTTPClient: client,
	}
}
type GetPrivateToggleNotificationsFromSubaccountParams struct {
	Sid int64
	State bool
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *GetPrivateToggleNotificationsFromSubaccountParams) WithTimeout(timeout time.Duration) *GetPrivateToggleNotificationsFromSubaccountParams {
	o.SetTimeout(timeout)
	return o
}
func (o *GetPrivateToggleNotificationsFromSubaccountParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *GetPrivateToggleNotificationsFromSubaccountParams) WithContext(ctx context.Context) *GetPrivateToggleNotificationsFromSubaccountParams {
	o.SetContext(ctx)
	return o
}
func (o *GetPrivateToggleNotificationsFromSubaccountParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *GetPrivateToggleNotificationsFromSubaccountParams) WithHTTPClient(client *http.Client) *GetPrivateToggleNotificationsFromSubaccountParams {
	o.SetHTTPClient(client)
	return o
}
func (o *GetPrivateToggleNotificationsFromSubaccountParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *GetPrivateToggleNotificationsFromSubaccountParams) WithSid(sid int64) *GetPrivateToggleNotificationsFromSubaccountParams {
	o.SetSid(sid)
	return o
}
func (o *GetPrivateToggleNotificationsFromSubaccountParams) SetSid(sid int64) {
	o.Sid = sid
}
func (o *GetPrivateToggleNotificationsFromSubaccountParams) WithState(state bool) *GetPrivateToggleNotificationsFromSubaccountParams {
	o.SetState(state)
	return o
}
func (o *GetPrivateToggleNotificationsFromSubaccountParams) SetState(state bool) {
	o.State = state
}