// Copyright (c) 2026 Tigera, Inc. All rights reserved.

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

package v3

// BGPFilterPrefixLengthV6ApplyConfiguration represents a declarative configuration of the BGPFilterPrefixLengthV6 type for use
// with apply.
type BGPFilterPrefixLengthV6ApplyConfiguration struct {
	Min *int32 `json:"min,omitempty"`
	Max *int32 `json:"max,omitempty"`
}

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

// WithMin sets the Min 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 Min field is set to the value of the last call.
func (b *BGPFilterPrefixLengthV6ApplyConfiguration) WithMin(value int32) *BGPFilterPrefixLengthV6ApplyConfiguration {
	b.Min = &value
	return b
}

// WithMax sets the Max 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 Max field is set to the value of the last call.
func (b *BGPFilterPrefixLengthV6ApplyConfiguration) WithMax(value int32) *BGPFilterPrefixLengthV6ApplyConfiguration {
	b.Max = &value
	return b
}
