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

package v1

import (
	v1 "github.com/openshift/api/operator/v1"
)

// RouteAdmissionPolicyApplyConfiguration represents an declarative configuration of the RouteAdmissionPolicy type for use
// with apply.
type RouteAdmissionPolicyApplyConfiguration struct {
	NamespaceOwnership *v1.NamespaceOwnershipCheck `json:"namespaceOwnership,omitempty"`
	WildcardPolicy     *v1.WildcardPolicy          `json:"wildcardPolicy,omitempty"`
}

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

// WithNamespaceOwnership sets the NamespaceOwnership 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 NamespaceOwnership field is set to the value of the last call.
func (b *RouteAdmissionPolicyApplyConfiguration) WithNamespaceOwnership(value v1.NamespaceOwnershipCheck) *RouteAdmissionPolicyApplyConfiguration {
	b.NamespaceOwnership = &value
	return b
}

// WithWildcardPolicy sets the WildcardPolicy 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 WildcardPolicy field is set to the value of the last call.
func (b *RouteAdmissionPolicyApplyConfiguration) WithWildcardPolicy(value v1.WildcardPolicy) *RouteAdmissionPolicyApplyConfiguration {
	b.WildcardPolicy = &value
	return b
}
