func (o *GetOneStorageSSLCertificateDefault) SetPayload(payload *models.Error) {
	o.Payload = payload
}
SetPayload sets the payload to the get one 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 GetOneStorageSSLCertificateOKCode int = 200
type GetOneStorageSSLCertificateOK struct {
	Payload *models.SslCertificate `json:"body,omitempty"`
}
func NewGetOneStorageSSLCertificateOK() *GetOneStorageSSLCertificateOK {
	return &GetOneStorageSSLCertificateOK{}
}
func (o *GetOneStorageSSLCertificateOK) WithPayload(payload *models.SslCertificate) *GetOneStorageSSLCertificateOK {
	o.Payload = payload
	return o
}
func (o *GetOneStorageSSLCertificateOK) SetPayload(payload *models.SslCertificate) {
	o.Payload = payload
}
func (o *GetOneStorageSSLCertificateOK) 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 GetOneStorageSSLCertificateNotFoundCode int = 404
type GetOneStorageSSLCertificateNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetOneStorageSSLCertificateNotFound() *GetOneStorageSSLCertificateNotFound {
	return &GetOneStorageSSLCertificateNotFound{}
}
func (o *GetOneStorageSSLCertificateNotFound) WithConfigurationVersion(configurationVersion string) *GetOneStorageSSLCertificateNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetOneStorageSSLCertificateNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetOneStorageSSLCertificateNotFound) WithPayload(payload *models.Error) *GetOneStorageSSLCertificateNotFound {
	o.Payload = payload
	return o
}
func (o *GetOneStorageSSLCertificateNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *GetOneStorageSSLCertificateNotFound) 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 GetOneStorageSSLCertificateDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetOneStorageSSLCertificateDefault(code int) *GetOneStorageSSLCertificateDefault {
	if code <= 0 {
		code = 500
	}
	return &GetOneStorageSSLCertificateDefault{
		_statusCode: code,
	}
}
func (o *GetOneStorageSSLCertificateDefault) WithStatusCode(code int) *GetOneStorageSSLCertificateDefault {
	o._statusCode = code
	return o
}
func (o *GetOneStorageSSLCertificateDefault) SetStatusCode(code int) {
	o._statusCode = code
}
func (o *GetOneStorageSSLCertificateDefault) WithConfigurationVersion(configurationVersion string) *GetOneStorageSSLCertificateDefault {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetOneStorageSSLCertificateDefault) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetOneStorageSSLCertificateDefault) WithPayload(payload *models.Error) *GetOneStorageSSLCertificateDefault {
	o.Payload = payload
	return o
}