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

package v1

import (
	machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
)

// MachineOSImageBuilderApplyConfiguration represents a declarative configuration of the MachineOSImageBuilder type for use
// with apply.
type MachineOSImageBuilderApplyConfiguration struct {
	// imageBuilderType specifies the backend to be used to build the image.
	// Valid options are: Job
	ImageBuilderType *machineconfigurationv1.MachineOSImageBuilderType `json:"imageBuilderType,omitempty"`
}

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

// WithImageBuilderType sets the ImageBuilderType 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 ImageBuilderType field is set to the value of the last call.
func (b *MachineOSImageBuilderApplyConfiguration) WithImageBuilderType(value machineconfigurationv1.MachineOSImageBuilderType) *MachineOSImageBuilderApplyConfiguration {
	b.ImageBuilderType = &value
	return b
}
