func (b *CronJobApplyConfiguration) WithKind(value string) *CronJobApplyConfiguration {
	b.Kind = &value
	return b
}
WithKind sets the Kind 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 Kind field is set to the value of the last call.
package v1
import (
	apibatchv1 "k8s.io/api/batch/v1"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	types "k8s.io/apimachinery/pkg/types"
	managedfields "k8s.io/apimachinery/pkg/util/managedfields"
	internal "k8s.io/client-go/applyconfigurations/internal"
	v1 "k8s.io/client-go/applyconfigurations/meta/v1"
)
type CronJobApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *CronJobSpecApplyConfiguration   `json:"spec,omitempty"`
	Status                           *CronJobStatusApplyConfiguration `json:"status,omitempty"`
}
func CronJob(name, namespace string) *CronJobApplyConfiguration {
	b := &CronJobApplyConfiguration{}
	b.WithName(name)
	b.WithNamespace(namespace)
	b.WithKind("CronJob")
	b.WithAPIVersion("batch/v1")
	return b
}
func ExtractCronJob(cronJob *apibatchv1.CronJob, fieldManager string) (*CronJobApplyConfiguration, error) {
	return extractCronJob(cronJob, fieldManager, "")
}
func ExtractCronJobStatus(cronJob *apibatchv1.CronJob, fieldManager string) (*CronJobApplyConfiguration, error) {
	return extractCronJob(cronJob, fieldManager, "status")
}
func extractCronJob(cronJob *apibatchv1.CronJob, fieldManager string, subresource string) (*CronJobApplyConfiguration, error) {
	b := &CronJobApplyConfiguration{}
	err := managedfields.ExtractInto(cronJob, internal.Parser().Type("io.k8s.api.batch.v1.CronJob"), fieldManager, b, subresource)
	if err != nil {
		return nil, err
	}
	b.WithName(cronJob.Name)
	b.WithNamespace(cronJob.Namespace)
	b.WithKind("CronJob")
	b.WithAPIVersion("batch/v1")
	return b, nil
}