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

package v1

// TokenClaimMappingsApplyConfiguration represents an declarative configuration of the TokenClaimMappings type for use
// with apply.
type TokenClaimMappingsApplyConfiguration struct {
	Username *UsernameClaimMappingApplyConfiguration `json:"username,omitempty"`
	Groups   *PrefixedClaimMappingApplyConfiguration `json:"groups,omitempty"`
}

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

// WithUsername sets the Username 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 Username field is set to the value of the last call.
func (b *TokenClaimMappingsApplyConfiguration) WithUsername(value *UsernameClaimMappingApplyConfiguration) *TokenClaimMappingsApplyConfiguration {
	b.Username = value
	return b
}

// WithGroups sets the Groups 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 Groups field is set to the value of the last call.
func (b *TokenClaimMappingsApplyConfiguration) WithGroups(value *PrefixedClaimMappingApplyConfiguration) *TokenClaimMappingsApplyConfiguration {
	b.Groups = value
	return b
}
