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

package v1

import (
	configv1 "github.com/openshift/api/config/v1"
)

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

// PolicyIdentityApplyConfiguration constructs a 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 configv1.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
}
