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

package v1

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

// AdditionalArtifactStoreApplyConfiguration represents a declarative configuration of the AdditionalArtifactStore type for use
// with apply.
//
// AdditionalArtifactStore defines an additional read-only storage location for Open Container Initiative (OCI) artifacts.
type AdditionalArtifactStoreApplyConfiguration struct {
	// path specifies the absolute location of the additional artifact store.
	// The path must exist on the node before configuration is applied.
	// When an artifact is requested, artifacts 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"`
}

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

// 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 *AdditionalArtifactStoreApplyConfiguration) WithPath(value machineconfigurationv1.StorePath) *AdditionalArtifactStoreApplyConfiguration {
	b.Path = &value
	return b
}
