// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package components

type Postgres struct {
	// The error received in response to a StartupMessage with an unexpected protocol version.
	ProtocolError map[string]string `json:"protocol_error,omitempty"`
	// The error received in response to a StartupMessage without providing the User field.
	StartupError      map[string]string `json:"startup_error,omitempty"`
	SupportedVersions *string           `json:"supported_versions,omitempty"`
}

func (o *Postgres) GetProtocolError() map[string]string {
	if o == nil {
		return nil
	}
	return o.ProtocolError
}

func (o *Postgres) GetStartupError() map[string]string {
	if o == nil {
		return nil
	}
	return o.StartupError
}

func (o *Postgres) GetSupportedVersions() *string {
	if o == nil {
		return nil
	}
	return o.SupportedVersions
}
