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

package v1

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

// IngressControllerHTTPHeadersApplyConfiguration represents a declarative configuration of the IngressControllerHTTPHeaders type for use
// with apply.
type IngressControllerHTTPHeadersApplyConfiguration struct {
	ForwardedHeaderPolicy     *operatorv1.IngressControllerHTTPHeaderPolicy                `json:"forwardedHeaderPolicy,omitempty"`
	UniqueId                  *IngressControllerHTTPUniqueIdHeaderPolicyApplyConfiguration `json:"uniqueId,omitempty"`
	HeaderNameCaseAdjustments []operatorv1.IngressControllerHTTPHeaderNameCaseAdjustment   `json:"headerNameCaseAdjustments,omitempty"`
	Actions                   *IngressControllerHTTPHeaderActionsApplyConfiguration        `json:"actions,omitempty"`
}

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

// WithForwardedHeaderPolicy sets the ForwardedHeaderPolicy 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 ForwardedHeaderPolicy field is set to the value of the last call.
func (b *IngressControllerHTTPHeadersApplyConfiguration) WithForwardedHeaderPolicy(value operatorv1.IngressControllerHTTPHeaderPolicy) *IngressControllerHTTPHeadersApplyConfiguration {
	b.ForwardedHeaderPolicy = &value
	return b
}

// WithUniqueId sets the UniqueId 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 UniqueId field is set to the value of the last call.
func (b *IngressControllerHTTPHeadersApplyConfiguration) WithUniqueId(value *IngressControllerHTTPUniqueIdHeaderPolicyApplyConfiguration) *IngressControllerHTTPHeadersApplyConfiguration {
	b.UniqueId = value
	return b
}

// WithHeaderNameCaseAdjustments adds the given value to the HeaderNameCaseAdjustments field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the HeaderNameCaseAdjustments field.
func (b *IngressControllerHTTPHeadersApplyConfiguration) WithHeaderNameCaseAdjustments(values ...operatorv1.IngressControllerHTTPHeaderNameCaseAdjustment) *IngressControllerHTTPHeadersApplyConfiguration {
	for i := range values {
		b.HeaderNameCaseAdjustments = append(b.HeaderNameCaseAdjustments, values[i])
	}
	return b
}

// WithActions sets the Actions 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 Actions field is set to the value of the last call.
func (b *IngressControllerHTTPHeadersApplyConfiguration) WithActions(value *IngressControllerHTTPHeaderActionsApplyConfiguration) *IngressControllerHTTPHeadersApplyConfiguration {
	b.Actions = value
	return b
}
