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

package v1alpha1

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

// NodeExporterCollectorZoneinfoConfigApplyConfiguration represents a declarative configuration of the NodeExporterCollectorZoneinfoConfig type for use
// with apply.
//
// NodeExporterCollectorZoneinfoConfig provides configuration for the zoneinfo collector
// of the node-exporter agent. The zoneinfo collector exposes per-zone memory page counts,
// watermarks, and protection thresholds from /proc/zoneinfo.
// By default, the zoneinfo collector does not collect metrics.
type NodeExporterCollectorZoneinfoConfigApplyConfiguration struct {
	// collectionPolicy declares whether the zoneinfo collector collects metrics.
	// This field is required.
	// Valid values are "Collect" and "DoNotCollect".
	// When set to "Collect", the zoneinfo collector is active and zone memory statistics are collected.
	// When set to "DoNotCollect", the zoneinfo collector is inactive.
	CollectionPolicy *configv1alpha1.NodeExporterCollectorCollectionPolicy `json:"collectionPolicy,omitempty"`
}

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

// 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 *NodeExporterCollectorZoneinfoConfigApplyConfiguration) WithCollectionPolicy(value configv1alpha1.NodeExporterCollectorCollectionPolicy) *NodeExporterCollectorZoneinfoConfigApplyConfiguration {
	b.CollectionPolicy = &value
	return b
}
