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

package v1alpha1

// PKISpecApplyConfiguration represents a declarative configuration of the PKISpec type for use
// with apply.
//
// PKISpec holds the specification for PKI configuration.
type PKISpecApplyConfiguration struct {
	// certificateManagement specifies how PKI configuration is managed for internally-generated certificates.
	// This controls the certificate generation approach for all OpenShift components that create
	// certificates internally, including certificate authorities, serving certificates, and client certificates.
	CertificateManagement *PKICertificateManagementApplyConfiguration `json:"certificateManagement,omitempty"`
}

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

// WithCertificateManagement sets the CertificateManagement 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 CertificateManagement field is set to the value of the last call.
func (b *PKISpecApplyConfiguration) WithCertificateManagement(value *PKICertificateManagementApplyConfiguration) *PKISpecApplyConfiguration {
	b.CertificateManagement = value
	return b
}
