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

package v1alpha1

import (
	configv1alpha1 "github.com/openshift/api/config/v1alpha1"
)

// NodeExporterCollectorDeviceMapperMultipathConfigApplyConfiguration represents a declarative configuration of the NodeExporterCollectorDeviceMapperMultipathConfig type for use
// with apply.
//
// NodeExporterCollectorDeviceMapperMultipathConfig provides configuration for the dmmultipath collector
// of the node-exporter agent. The dmmultipath collector collects statistics about
// DM-Multipath devices.
// It is enabled by default.
type NodeExporterCollectorDeviceMapperMultipathConfigApplyConfiguration struct {
	// collectionPolicy declares whether the dmmultipath collector collects metrics.
	// This field is required.
	// Valid values are "Collect" and "DoNotCollect".
	// When set to "Collect", the dmmultipath collector is active and DM-Multipath device statistics are collected.
	// When set to "DoNotCollect", the dmmultipath collector is inactive and the corresponding metrics become unavailable.
	CollectionPolicy *configv1alpha1.NodeExporterCollectorCollectionPolicy `json:"collectionPolicy,omitempty"`
}

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

// WithCollectionPolicy sets the CollectionPolicy 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 CollectionPolicy field is set to the value of the last call.
func (b *NodeExporterCollectorDeviceMapperMultipathConfigApplyConfiguration) WithCollectionPolicy(value configv1alpha1.NodeExporterCollectorCollectionPolicy) *NodeExporterCollectorDeviceMapperMultipathConfigApplyConfiguration {
	b.CollectionPolicy = &value
	return b
}
