func NewGetBindDefault(code int) *GetBindDefault {
	if code <= 0 {
		code = 500
	}
	return &GetBindDefault{
		_statusCode: code,
	}
}
NewGetBindDefault creates GetBindDefault with default headers values
package bind
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const GetBindOKCode int = 200
type GetBindOK struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *GetBindOKBody `json:"body,omitempty"`
}
func NewGetBindOK() *GetBindOK {
	return &GetBindOK{}
}
func (o *GetBindOK) WithConfigurationVersion(configurationVersion string) *GetBindOK {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetBindOK) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetBindOK) WithPayload(payload *GetBindOKBody) *GetBindOK {
	o.Payload = payload
	return o
}
func (o *GetBindOK) SetPayload(payload *GetBindOKBody) {
	o.Payload = payload
}
func (o *GetBindOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	configurationVersion := o.ConfigurationVersion
	if configurationVersion != "" {
		rw.Header().Set("Configuration-Version", configurationVersion)
	}
	rw.WriteHeader(200)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const GetBindNotFoundCode int = 404
type GetBindNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetBindNotFound() *GetBindNotFound {
	return &GetBindNotFound{}
}
func (o *GetBindNotFound) WithConfigurationVersion(configurationVersion string) *GetBindNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetBindNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetBindNotFound) WithPayload(payload *models.Error) *GetBindNotFound {
	o.Payload = payload
	return o
}
func (o *GetBindNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *GetBindNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	configurationVersion := o.ConfigurationVersion
	if configurationVersion != "" {
		rw.Header().Set("Configuration-Version", configurationVersion)
	}
	rw.WriteHeader(404)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
type GetBindDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}