func (o *ReplaceStorageSSLCertificateDefault) WithConfigurationVersion(configurationVersion string) *ReplaceStorageSSLCertificateDefault {
	o.ConfigurationVersion = configurationVersion
	return o
}
WithConfigurationVersion adds the configurationVersion to the replace storage s s l certificate default response
package storage
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const ReplaceStorageSSLCertificateOKCode int = 200
type ReplaceStorageSSLCertificateOK struct {
	Payload *models.SslCertificate `json:"body,omitempty"`
}
func NewReplaceStorageSSLCertificateOK() *ReplaceStorageSSLCertificateOK {
	return &ReplaceStorageSSLCertificateOK{}
}
func (o *ReplaceStorageSSLCertificateOK) WithPayload(payload *models.SslCertificate) *ReplaceStorageSSLCertificateOK {
	o.Payload = payload
	return o
}
func (o *ReplaceStorageSSLCertificateOK) SetPayload(payload *models.SslCertificate) {
	o.Payload = payload
}
func (o *ReplaceStorageSSLCertificateOK) 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 ReplaceStorageSSLCertificateAcceptedCode int = 202
type ReplaceStorageSSLCertificateAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload *models.SslCertificate `json:"body,omitempty"`
}
func NewReplaceStorageSSLCertificateAccepted() *ReplaceStorageSSLCertificateAccepted {
	return &ReplaceStorageSSLCertificateAccepted{}
}
func (o *ReplaceStorageSSLCertificateAccepted) WithReloadID(reloadID string) *ReplaceStorageSSLCertificateAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *ReplaceStorageSSLCertificateAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *ReplaceStorageSSLCertificateAccepted) WithPayload(payload *models.SslCertificate) *ReplaceStorageSSLCertificateAccepted {
	o.Payload = payload
	return o
}
func (o *ReplaceStorageSSLCertificateAccepted) SetPayload(payload *models.SslCertificate) {
	o.Payload = payload
}
func (o *ReplaceStorageSSLCertificateAccepted) 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 ReplaceStorageSSLCertificateBadRequestCode int = 400
type ReplaceStorageSSLCertificateBadRequest struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewReplaceStorageSSLCertificateBadRequest() *ReplaceStorageSSLCertificateBadRequest {
	return &ReplaceStorageSSLCertificateBadRequest{}
}
func (o *ReplaceStorageSSLCertificateBadRequest) WithConfigurationVersion(configurationVersion string) *ReplaceStorageSSLCertificateBadRequest {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *ReplaceStorageSSLCertificateBadRequest) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *ReplaceStorageSSLCertificateBadRequest) WithPayload(payload *models.Error) *ReplaceStorageSSLCertificateBadRequest {
	o.Payload = payload
	return o
}
func (o *ReplaceStorageSSLCertificateBadRequest) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *ReplaceStorageSSLCertificateBadRequest) 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 ReplaceStorageSSLCertificateNotFoundCode int = 404
type ReplaceStorageSSLCertificateNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewReplaceStorageSSLCertificateNotFound() *ReplaceStorageSSLCertificateNotFound {
	return &ReplaceStorageSSLCertificateNotFound{}
}
func (o *ReplaceStorageSSLCertificateNotFound) WithConfigurationVersion(configurationVersion string) *ReplaceStorageSSLCertificateNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *ReplaceStorageSSLCertificateNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *ReplaceStorageSSLCertificateNotFound) WithPayload(payload *models.Error) *ReplaceStorageSSLCertificateNotFound {
	o.Payload = payload
	return o
}
func (o *ReplaceStorageSSLCertificateNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *ReplaceStorageSSLCertificateNotFound) 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 ReplaceStorageSSLCertificateDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewReplaceStorageSSLCertificateDefault(code int) *ReplaceStorageSSLCertificateDefault {
	if code <= 0 {
		code = 500
	}
	return &ReplaceStorageSSLCertificateDefault{
		_statusCode: code,
	}
}
func (o *ReplaceStorageSSLCertificateDefault) WithStatusCode(code int) *ReplaceStorageSSLCertificateDefault {
	o._statusCode = code
	return o
}
func (o *ReplaceStorageSSLCertificateDefault) SetStatusCode(code int) {
	o._statusCode = code
}