func (o *DeleteAWSRegionDefault) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
SetConfigurationVersion sets the configurationVersion to the delete a w s region default response
package service_discovery
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const DeleteAWSRegionNoContentCode int = 204
type DeleteAWSRegionNoContent struct {
}
func NewDeleteAWSRegionNoContent() *DeleteAWSRegionNoContent {
	return &DeleteAWSRegionNoContent{}
}
func (o *DeleteAWSRegionNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.Header().Del(runtime.HeaderContentType)  
	rw.WriteHeader(204)
}
const DeleteAWSRegionNotFoundCode int = 404
type DeleteAWSRegionNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewDeleteAWSRegionNotFound() *DeleteAWSRegionNotFound {
	return &DeleteAWSRegionNotFound{}
}
func (o *DeleteAWSRegionNotFound) WithConfigurationVersion(configurationVersion string) *DeleteAWSRegionNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *DeleteAWSRegionNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *DeleteAWSRegionNotFound) WithPayload(payload *models.Error) *DeleteAWSRegionNotFound {
	o.Payload = payload
	return o
}
func (o *DeleteAWSRegionNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *DeleteAWSRegionNotFound) 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 DeleteAWSRegionDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewDeleteAWSRegionDefault(code int) *DeleteAWSRegionDefault {
	if code <= 0 {
		code = 500
	}
	return &DeleteAWSRegionDefault{
		_statusCode: code,
	}
}
func (o *DeleteAWSRegionDefault) WithStatusCode(code int) *DeleteAWSRegionDefault {
	o._statusCode = code
	return o
}
func (o *DeleteAWSRegionDefault) SetStatusCode(code int) {
	o._statusCode = code
}
func (o *DeleteAWSRegionDefault) WithConfigurationVersion(configurationVersion string) *DeleteAWSRegionDefault {
	o.ConfigurationVersion = configurationVersion
	return o
}