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

package v1

// TokenClaimOrExpressionMappingApplyConfiguration represents a declarative configuration of the TokenClaimOrExpressionMapping type for use
// with apply.
type TokenClaimOrExpressionMappingApplyConfiguration struct {
	Claim      *string `json:"claim,omitempty"`
	Expression *string `json:"expression,omitempty"`
}

// TokenClaimOrExpressionMappingApplyConfiguration constructs a declarative configuration of the TokenClaimOrExpressionMapping type for use with
// apply.
func TokenClaimOrExpressionMapping() *TokenClaimOrExpressionMappingApplyConfiguration {
	return &TokenClaimOrExpressionMappingApplyConfiguration{}
}

// WithClaim sets the Claim 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 Claim field is set to the value of the last call.
func (b *TokenClaimOrExpressionMappingApplyConfiguration) WithClaim(value string) *TokenClaimOrExpressionMappingApplyConfiguration {
	b.Claim = &value
	return b
}

// WithExpression sets the Expression 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 Expression field is set to the value of the last call.
func (b *TokenClaimOrExpressionMappingApplyConfiguration) WithExpression(value string) *TokenClaimOrExpressionMappingApplyConfiguration {
	b.Expression = &value
	return b
}
