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

package v1

// ImageSecretObjectReferenceApplyConfiguration represents a declarative configuration of the ImageSecretObjectReference type for use
// with apply.
//
// Refers to the name of an image registry push/pull secret needed in the build process.
type ImageSecretObjectReferenceApplyConfiguration struct {
	// name is the name of the secret used to push or pull this MachineOSConfig object.
	// Must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character.
	// This secret must be in the openshift-machine-config-operator namespace.
	Name *string `json:"name,omitempty"`
}

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

// WithName sets the Name 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 Name field is set to the value of the last call.
func (b *ImageSecretObjectReferenceApplyConfiguration) WithName(value string) *ImageSecretObjectReferenceApplyConfiguration {
	b.Name = &value
	return b
}
