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

package v1

// PersistentVolumeConfigApplyConfiguration represents a declarative configuration of the PersistentVolumeConfig type for use
// with apply.
type PersistentVolumeConfigApplyConfiguration struct {
	Claim     *PersistentVolumeClaimReferenceApplyConfiguration `json:"claim,omitempty"`
	MountPath *string                                           `json:"mountPath,omitempty"`
}

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

// WithClaim sets the Claim 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 Claim field is set to the value of the last call.
func (b *PersistentVolumeConfigApplyConfiguration) WithClaim(value *PersistentVolumeClaimReferenceApplyConfiguration) *PersistentVolumeConfigApplyConfiguration {
	b.Claim = value
	return b
}

// WithMountPath sets the MountPath 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 MountPath field is set to the value of the last call.
func (b *PersistentVolumeConfigApplyConfiguration) WithMountPath(value string) *PersistentVolumeConfigApplyConfiguration {
	b.MountPath = &value
	return b
}
