func (o *CreateStorageSSLCertificateBadRequest) SetPayload(payload *models.Error) {
	o.Payload = payload
}
SetPayload sets the payload to the create storage s s l certificate bad request response
package storage
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const CreateStorageSSLCertificateCreatedCode int = 201
type CreateStorageSSLCertificateCreated struct {
	Payload *models.SslCertificate `json:"body,omitempty"`
}
func NewCreateStorageSSLCertificateCreated() *CreateStorageSSLCertificateCreated {
	return &CreateStorageSSLCertificateCreated{}
}
func (o *CreateStorageSSLCertificateCreated) WithPayload(payload *models.SslCertificate) *CreateStorageSSLCertificateCreated {
	o.Payload = payload
	return o
}
func (o *CreateStorageSSLCertificateCreated) SetPayload(payload *models.SslCertificate) {
	o.Payload = payload
}
func (o *CreateStorageSSLCertificateCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.WriteHeader(201)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const CreateStorageSSLCertificateBadRequestCode int = 400
type CreateStorageSSLCertificateBadRequest struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewCreateStorageSSLCertificateBadRequest() *CreateStorageSSLCertificateBadRequest {
	return &CreateStorageSSLCertificateBadRequest{}
}
func (o *CreateStorageSSLCertificateBadRequest) WithConfigurationVersion(configurationVersion string) *CreateStorageSSLCertificateBadRequest {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *CreateStorageSSLCertificateBadRequest) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *CreateStorageSSLCertificateBadRequest) WithPayload(payload *models.Error) *CreateStorageSSLCertificateBadRequest {
	o.Payload = payload
	return o
}