// Code generated by applyconfiguration-gen. DO NOT EDIT.

package v1

// AWSPlatformSpecApplyConfiguration represents a declarative configuration of the AWSPlatformSpec type for use
// with apply.
type AWSPlatformSpecApplyConfiguration struct {
	ServiceEndpoints []AWSServiceEndpointApplyConfiguration `json:"serviceEndpoints,omitempty"`
}

// AWSPlatformSpecApplyConfiguration constructs a declarative configuration of the AWSPlatformSpec type for use with
// apply.
func AWSPlatformSpec() *AWSPlatformSpecApplyConfiguration {
	return &AWSPlatformSpecApplyConfiguration{}
}

// WithServiceEndpoints adds the given value to the ServiceEndpoints field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the ServiceEndpoints field.
func (b *AWSPlatformSpecApplyConfiguration) WithServiceEndpoints(values ...*AWSServiceEndpointApplyConfiguration) *AWSPlatformSpecApplyConfiguration {
	for i := range values {
		if values[i] == nil {
			panic("nil value passed to WithServiceEndpoints")
		}
		b.ServiceEndpoints = append(b.ServiceEndpoints, *values[i])
	}
	return b
}
