func (o *GetAWSRegionDefault) WithStatusCode(code int) *GetAWSRegionDefault {
	o._statusCode = code
	return o
}
WithStatusCode adds the status to the get 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 GetAWSRegionOKCode int = 200
type GetAWSRegionOK struct {
	Payload *GetAWSRegionOKBody `json:"body,omitempty"`
}
func NewGetAWSRegionOK() *GetAWSRegionOK {
	return &GetAWSRegionOK{}
}
func (o *GetAWSRegionOK) WithPayload(payload *GetAWSRegionOKBody) *GetAWSRegionOK {
	o.Payload = payload
	return o
}
func (o *GetAWSRegionOK) SetPayload(payload *GetAWSRegionOKBody) {
	o.Payload = payload
}
func (o *GetAWSRegionOK) 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 GetAWSRegionNotFoundCode int = 404
type GetAWSRegionNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetAWSRegionNotFound() *GetAWSRegionNotFound {
	return &GetAWSRegionNotFound{}
}
func (o *GetAWSRegionNotFound) WithConfigurationVersion(configurationVersion string) *GetAWSRegionNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetAWSRegionNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetAWSRegionNotFound) WithPayload(payload *models.Error) *GetAWSRegionNotFound {
	o.Payload = payload
	return o
}
func (o *GetAWSRegionNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *GetAWSRegionNotFound) 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 GetAWSRegionDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetAWSRegionDefault(code int) *GetAWSRegionDefault {
	if code <= 0 {
		code = 500
	}
	return &GetAWSRegionDefault{
		_statusCode: code,
	}
}