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

package v1

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

// AdditionalLayerStoreApplyConfiguration represents a declarative configuration of the AdditionalLayerStore type for use
// with apply.
//
// AdditionalLayerStore defines a read-only storage location for Open Container Initiative (OCI) container image layers.
type AdditionalLayerStoreApplyConfiguration struct {
	// path specifies the absolute location of the additional layer store.
	// The path must exist on the node before configuration is applied.
	// When a container image is requested, layers found at this location will be used instead of
	// retrieving from the registry.
	// The path is required and must be between 1 and 256 characters long, begin with a forward slash,
	// and only contain the characters a-z, A-Z, 0-9, '/', '.', '_', and '-'.
	// Consecutive forward slashes are not permitted.
	Path *machineconfigurationv1.StorePath `json:"path,omitempty"`
}

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

// WithPath sets the Path 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 Path field is set to the value of the last call.
func (b *AdditionalLayerStoreApplyConfiguration) WithPath(value machineconfigurationv1.StorePath) *AdditionalLayerStoreApplyConfiguration {
	b.Path = &value
	return b
}
