func (o *GetResolverNotFound) WithPayload(payload *models.Error) *GetResolverNotFound {
	o.Payload = payload
	return o
}
WithPayload adds the payload to the get resolver not found response
package resolver
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const GetResolverOKCode int = 200
type GetResolverOK struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *GetResolverOKBody `json:"body,omitempty"`
}
func NewGetResolverOK() *GetResolverOK {
	return &GetResolverOK{}
}
func (o *GetResolverOK) WithConfigurationVersion(configurationVersion string) *GetResolverOK {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetResolverOK) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetResolverOK) WithPayload(payload *GetResolverOKBody) *GetResolverOK {
	o.Payload = payload
	return o
}
func (o *GetResolverOK) SetPayload(payload *GetResolverOKBody) {
	o.Payload = payload
}
func (o *GetResolverOK) 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 GetResolverNotFoundCode int = 404
type GetResolverNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetResolverNotFound() *GetResolverNotFound {
	return &GetResolverNotFound{}
}
func (o *GetResolverNotFound) WithConfigurationVersion(configurationVersion string) *GetResolverNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetResolverNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}