func NewGetAWSRegionsDefault(code int) *GetAWSRegionsDefault {
	if code <= 0 {
		code = 500
	}
	return &GetAWSRegionsDefault{
		_statusCode: code,
	}
}
NewGetAWSRegionsDefault creates GetAWSRegionsDefault with default headers values
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"`
}