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

package v1

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

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

// IngressControllerHTTPHeadersApplyConfiguration constructs an 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 v1.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 ...v1.IngressControllerHTTPHeaderNameCaseAdjustment) *IngressControllerHTTPHeadersApplyConfiguration {
	for i := range values {
		b.HeaderNameCaseAdjustments = append(b.HeaderNameCaseAdjustments, values[i])
	}
	return b
}
