func (o *GetLocationsParams) WithContext(ctx context.Context) *GetLocationsParams {
	o.SetContext(ctx)
	return o
}
WithContext adds the context to the get locations params
package kubernetes_protection
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 NewGetLocationsParams() *GetLocationsParams {
	return &GetLocationsParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewGetLocationsParamsWithTimeout(timeout time.Duration) *GetLocationsParams {
	return &GetLocationsParams{
		timeout: timeout,
	}
}
func NewGetLocationsParamsWithContext(ctx context.Context) *GetLocationsParams {
	return &GetLocationsParams{
		Context: ctx,
	}
}
func NewGetLocationsParamsWithHTTPClient(client *http.Client) *GetLocationsParams {
	return &GetLocationsParams{
		HTTPClient: client,
	}
}
type GetLocationsParams struct {
	Clouds []string
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *GetLocationsParams) WithDefaults() *GetLocationsParams {
	o.SetDefaults()
	return o
}
func (o *GetLocationsParams) SetDefaults() {
}
func (o *GetLocationsParams) WithTimeout(timeout time.Duration) *GetLocationsParams {
	o.SetTimeout(timeout)
	return o
}
func (o *GetLocationsParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}