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

package v1

// APIServerNamedServingCertApplyConfiguration represents an declarative configuration of the APIServerNamedServingCert type for use
// with apply.
type APIServerNamedServingCertApplyConfiguration struct {
	Names              []string                               `json:"names,omitempty"`
	ServingCertificate *SecretNameReferenceApplyConfiguration `json:"servingCertificate,omitempty"`
}

// APIServerNamedServingCertApplyConfiguration constructs an declarative configuration of the APIServerNamedServingCert type for use with
// apply.
func APIServerNamedServingCert() *APIServerNamedServingCertApplyConfiguration {
	return &APIServerNamedServingCertApplyConfiguration{}
}

// WithNames adds the given value to the Names 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 Names field.
func (b *APIServerNamedServingCertApplyConfiguration) WithNames(values ...string) *APIServerNamedServingCertApplyConfiguration {
	for i := range values {
		b.Names = append(b.Names, values[i])
	}
	return b
}

// WithServingCertificate sets the ServingCertificate field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the ServingCertificate field is set to the value of the last call.
func (b *APIServerNamedServingCertApplyConfiguration) WithServingCertificate(value *SecretNameReferenceApplyConfiguration) *APIServerNamedServingCertApplyConfiguration {
	b.ServingCertificate = value
	return b
}
