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

package v1

// MTUMigrationValuesApplyConfiguration represents a declarative configuration of the MTUMigrationValues type for use
// with apply.
//
// MTUMigrationValues contains the values for a MTU migration.
type MTUMigrationValuesApplyConfiguration struct {
	// to is the MTU to migrate to.
	To *uint32 `json:"to,omitempty"`
	// from is the MTU to migrate from.
	From *uint32 `json:"from,omitempty"`
}

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

// WithTo sets the To 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 To field is set to the value of the last call.
func (b *MTUMigrationValuesApplyConfiguration) WithTo(value uint32) *MTUMigrationValuesApplyConfiguration {
	b.To = &value
	return b
}

// WithFrom sets the From 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 From field is set to the value of the last call.
func (b *MTUMigrationValuesApplyConfiguration) WithFrom(value uint32) *MTUMigrationValuesApplyConfiguration {
	b.From = &value
	return b
}
