func (b *EvictionApplyConfiguration) WithKind(value string) *EvictionApplyConfiguration {
	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 (
	policyv1 "k8s.io/api/policy/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 EvictionApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	DeleteOptions                    *v1.DeleteOptionsApplyConfiguration `json:"deleteOptions,omitempty"`
}
func Eviction(name, namespace string) *EvictionApplyConfiguration {
	b := &EvictionApplyConfiguration{}
	b.WithName(name)
	b.WithNamespace(namespace)
	b.WithKind("Eviction")
	b.WithAPIVersion("policy/v1")
	return b
}
func ExtractEviction(eviction *policyv1.Eviction, fieldManager string) (*EvictionApplyConfiguration, error) {
	return extractEviction(eviction, fieldManager, "")
}
func ExtractEvictionStatus(eviction *policyv1.Eviction, fieldManager string) (*EvictionApplyConfiguration, error) {
	return extractEviction(eviction, fieldManager, "status")
}
func extractEviction(eviction *policyv1.Eviction, fieldManager string, subresource string) (*EvictionApplyConfiguration, error) {
	b := &EvictionApplyConfiguration{}
	err := managedfields.ExtractInto(eviction, internal.Parser().Type("io.k8s.api.policy.v1.Eviction"), fieldManager, b, subresource)
	if err != nil {
		return nil, err
	}
	b.WithName(eviction.Name)
	b.WithNamespace(eviction.Namespace)
	b.WithKind("Eviction")
	b.WithAPIVersion("policy/v1")
	return b, nil
}