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

package v1

// MaxAgePolicyApplyConfiguration represents an declarative configuration of the MaxAgePolicy type for use
// with apply.
type MaxAgePolicyApplyConfiguration struct {
	LargestMaxAge  *int32 `json:"largestMaxAge,omitempty"`
	SmallestMaxAge *int32 `json:"smallestMaxAge,omitempty"`
}

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

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

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