// Code generated by go-swagger; DO NOT EDIT.

package bluemix_service_instances

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"context"
	"net/http"
	"time"

	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	cr "github.com/go-openapi/runtime/client"

	strfmt "github.com/go-openapi/strfmt"
)

// NewBluemixServiceInstanceGetParams creates a new BluemixServiceInstanceGetParams object
// with the default values initialized.
func NewBluemixServiceInstanceGetParams() *BluemixServiceInstanceGetParams {
	var ()
	return &BluemixServiceInstanceGetParams{

		timeout: cr.DefaultTimeout,
	}
}

// NewBluemixServiceInstanceGetParamsWithTimeout creates a new BluemixServiceInstanceGetParams object
// with the default values initialized, and the ability to set a timeout on a request
func NewBluemixServiceInstanceGetParamsWithTimeout(timeout time.Duration) *BluemixServiceInstanceGetParams {
	var ()
	return &BluemixServiceInstanceGetParams{

		timeout: timeout,
	}
}

// NewBluemixServiceInstanceGetParamsWithContext creates a new BluemixServiceInstanceGetParams object
// with the default values initialized, and the ability to set a context for a request
func NewBluemixServiceInstanceGetParamsWithContext(ctx context.Context) *BluemixServiceInstanceGetParams {
	var ()
	return &BluemixServiceInstanceGetParams{

		Context: ctx,
	}
}

// NewBluemixServiceInstanceGetParamsWithHTTPClient creates a new BluemixServiceInstanceGetParams object
// with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewBluemixServiceInstanceGetParamsWithHTTPClient(client *http.Client) *BluemixServiceInstanceGetParams {
	var ()
	return &BluemixServiceInstanceGetParams{
		HTTPClient: client,
	}
}

/*BluemixServiceInstanceGetParams contains all the parameters to send to the API endpoint
for the bluemix service instance get operation typically these are written to a http.Request
*/
type BluemixServiceInstanceGetParams struct {

	/*InstanceID
	  instance id of instance to provision

	*/
	InstanceID string

	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}

// WithTimeout adds the timeout to the bluemix service instance get params
func (o *BluemixServiceInstanceGetParams) WithTimeout(timeout time.Duration) *BluemixServiceInstanceGetParams {
	o.SetTimeout(timeout)
	return o
}

// SetTimeout adds the timeout to the bluemix service instance get params
func (o *BluemixServiceInstanceGetParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}

// WithContext adds the context to the bluemix service instance get params
func (o *BluemixServiceInstanceGetParams) WithContext(ctx context.Context) *BluemixServiceInstanceGetParams {
	o.SetContext(ctx)
	return o
}

// SetContext adds the context to the bluemix service instance get params
func (o *BluemixServiceInstanceGetParams) SetContext(ctx context.Context) {
	o.Context = ctx
}

// WithHTTPClient adds the HTTPClient to the bluemix service instance get params
func (o *BluemixServiceInstanceGetParams) WithHTTPClient(client *http.Client) *BluemixServiceInstanceGetParams {
	o.SetHTTPClient(client)
	return o
}

// SetHTTPClient adds the HTTPClient to the bluemix service instance get params
func (o *BluemixServiceInstanceGetParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}

// WithInstanceID adds the instanceID to the bluemix service instance get params
func (o *BluemixServiceInstanceGetParams) WithInstanceID(instanceID string) *BluemixServiceInstanceGetParams {
	o.SetInstanceID(instanceID)
	return o
}

// SetInstanceID adds the instanceId to the bluemix service instance get params
func (o *BluemixServiceInstanceGetParams) SetInstanceID(instanceID string) {
	o.InstanceID = instanceID
}

// WriteToRequest writes these params to a swagger request
func (o *BluemixServiceInstanceGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {

	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error

	// path param instance_id
	if err := r.SetPathParam("instance_id", o.InstanceID); err != nil {
		return err
	}

	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
