func (o *GetSiteDefault) SetStatusCode(code int) {
	o._statusCode = code
}
SetStatusCode sets the status to the get site default response
package sites
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const GetSiteOKCode int = 200
type GetSiteOK struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *GetSiteOKBody `json:"body,omitempty"`
}
func NewGetSiteOK() *GetSiteOK {
	return &GetSiteOK{}
}
func (o *GetSiteOK) WithConfigurationVersion(configurationVersion string) *GetSiteOK {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetSiteOK) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetSiteOK) WithPayload(payload *GetSiteOKBody) *GetSiteOK {
	o.Payload = payload
	return o
}
func (o *GetSiteOK) SetPayload(payload *GetSiteOKBody) {
	o.Payload = payload
}
func (o *GetSiteOK) 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 GetSiteNotFoundCode int = 404
type GetSiteNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetSiteNotFound() *GetSiteNotFound {
	return &GetSiteNotFound{}
}
func (o *GetSiteNotFound) WithConfigurationVersion(configurationVersion string) *GetSiteNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetSiteNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetSiteNotFound) WithPayload(payload *models.Error) *GetSiteNotFound {
	o.Payload = payload
	return o
}
func (o *GetSiteNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *GetSiteNotFound) 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 GetSiteDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetSiteDefault(code int) *GetSiteDefault {
	if code <= 0 {
		code = 500
	}
	return &GetSiteDefault{
		_statusCode: code,
	}
}
func (o *GetSiteDefault) WithStatusCode(code int) *GetSiteDefault {
	o._statusCode = code
	return o
}