func (o *ReplaceResolverNotFound) WithConfigurationVersion(configurationVersion string) *ReplaceResolverNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
WithConfigurationVersion adds the configurationVersion to the replace resolver not found response
package resolver
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const ReplaceResolverOKCode int = 200
type ReplaceResolverOK struct {
	Payload *models.Resolver `json:"body,omitempty"`
}
func NewReplaceResolverOK() *ReplaceResolverOK {
	return &ReplaceResolverOK{}
}
func (o *ReplaceResolverOK) WithPayload(payload *models.Resolver) *ReplaceResolverOK {
	o.Payload = payload
	return o
}
func (o *ReplaceResolverOK) SetPayload(payload *models.Resolver) {
	o.Payload = payload
}
func (o *ReplaceResolverOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.WriteHeader(200)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const ReplaceResolverAcceptedCode int = 202
type ReplaceResolverAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload *models.Resolver `json:"body,omitempty"`
}
func NewReplaceResolverAccepted() *ReplaceResolverAccepted {
	return &ReplaceResolverAccepted{}
}
func (o *ReplaceResolverAccepted) WithReloadID(reloadID string) *ReplaceResolverAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *ReplaceResolverAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *ReplaceResolverAccepted) WithPayload(payload *models.Resolver) *ReplaceResolverAccepted {
	o.Payload = payload
	return o
}
func (o *ReplaceResolverAccepted) SetPayload(payload *models.Resolver) {
	o.Payload = payload
}
func (o *ReplaceResolverAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	reloadID := o.ReloadID
	if reloadID != "" {
		rw.Header().Set("Reload-ID", reloadID)
	}
	rw.WriteHeader(202)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const ReplaceResolverBadRequestCode int = 400
type ReplaceResolverBadRequest struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewReplaceResolverBadRequest() *ReplaceResolverBadRequest {
	return &ReplaceResolverBadRequest{}
}
func (o *ReplaceResolverBadRequest) WithConfigurationVersion(configurationVersion string) *ReplaceResolverBadRequest {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *ReplaceResolverBadRequest) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *ReplaceResolverBadRequest) WithPayload(payload *models.Error) *ReplaceResolverBadRequest {
	o.Payload = payload
	return o
}
func (o *ReplaceResolverBadRequest) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *ReplaceResolverBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	configurationVersion := o.ConfigurationVersion
	if configurationVersion != "" {
		rw.Header().Set("Configuration-Version", configurationVersion)
	}
	rw.WriteHeader(400)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const ReplaceResolverNotFoundCode int = 404
type ReplaceResolverNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewReplaceResolverNotFound() *ReplaceResolverNotFound {
	return &ReplaceResolverNotFound{}
}