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

package v1alpha1

import (
	v1alpha1 "github.com/openshift/api/config/v1alpha1"
)

// PolicyIdentityApplyConfiguration represents an declarative configuration of the PolicyIdentity type for use
// with apply.
type PolicyIdentityApplyConfiguration struct {
	MatchPolicy                *v1alpha1.IdentityMatchPolicy                 `json:"matchPolicy,omitempty"`
	PolicyMatchExactRepository *PolicyMatchExactRepositoryApplyConfiguration `json:"exactRepository,omitempty"`
	PolicyMatchRemapIdentity   *PolicyMatchRemapIdentityApplyConfiguration   `json:"remapIdentity,omitempty"`
}

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

// WithMatchPolicy sets the MatchPolicy 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 MatchPolicy field is set to the value of the last call.
func (b *PolicyIdentityApplyConfiguration) WithMatchPolicy(value v1alpha1.IdentityMatchPolicy) *PolicyIdentityApplyConfiguration {
	b.MatchPolicy = &value
	return b
}

// WithPolicyMatchExactRepository sets the PolicyMatchExactRepository 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 PolicyMatchExactRepository field is set to the value of the last call.
func (b *PolicyIdentityApplyConfiguration) WithPolicyMatchExactRepository(value *PolicyMatchExactRepositoryApplyConfiguration) *PolicyIdentityApplyConfiguration {
	b.PolicyMatchExactRepository = value
	return b
}

// WithPolicyMatchRemapIdentity sets the PolicyMatchRemapIdentity 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 PolicyMatchRemapIdentity field is set to the value of the last call.
func (b *PolicyIdentityApplyConfiguration) WithPolicyMatchRemapIdentity(value *PolicyMatchRemapIdentityApplyConfiguration) *PolicyIdentityApplyConfiguration {
	b.PolicyMatchRemapIdentity = value
	return b
}
