func (o *GetAWSRegionsDefault) SetStatusCode(code int) {
	o._statusCode = code
}
SetStatusCode sets the status to the get a w s regions default response
package service_discovery
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const GetAWSRegionsOKCode int = 200
type GetAWSRegionsOK struct {
	Payload *GetAWSRegionsOKBody `json:"body,omitempty"`
}
func NewGetAWSRegionsOK() *GetAWSRegionsOK {
	return &GetAWSRegionsOK{}
}
func (o *GetAWSRegionsOK) WithPayload(payload *GetAWSRegionsOKBody) *GetAWSRegionsOK {
	o.Payload = payload
	return o
}
func (o *GetAWSRegionsOK) SetPayload(payload *GetAWSRegionsOKBody) {
	o.Payload = payload
}
func (o *GetAWSRegionsOK) 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)  
		}
	}
}
type GetAWSRegionsDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetAWSRegionsDefault(code int) *GetAWSRegionsDefault {
	if code <= 0 {
		code = 500
	}
	return &GetAWSRegionsDefault{
		_statusCode: code,
	}
}
func (o *GetAWSRegionsDefault) WithStatusCode(code int) *GetAWSRegionsDefault {
	o._statusCode = code
	return o
}