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

package v1alpha1

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

// AlertmanagerConfigApplyConfiguration represents a declarative configuration of the AlertmanagerConfig type for use
// with apply.
//
// alertmanagerConfig provides configuration options for the default Alertmanager instance
// that runs in the `openshift-monitoring` namespace. Use this configuration to control
// whether the default Alertmanager is deployed, how it logs, and how its pods are scheduled.
type AlertmanagerConfigApplyConfiguration struct {
	// deploymentMode determines whether the default Alertmanager instance should be deployed
	// as part of the monitoring stack.
	// Allowed values are Disabled, DefaultConfig, and CustomConfig.
	// When set to Disabled, the Alertmanager instance will not be deployed.
	// When set to DefaultConfig, the platform will deploy Alertmanager with default settings.
	// When set to CustomConfig, the Alertmanager will be deployed with custom configuration.
	DeploymentMode *configv1alpha1.AlertManagerDeployMode `json:"deploymentMode,omitempty"`
	// customConfig must be set when deploymentMode is CustomConfig, and must be unset otherwise.
	// When set to CustomConfig, the Alertmanager will be deployed with custom configuration.
	CustomConfig *AlertmanagerCustomConfigApplyConfiguration `json:"customConfig,omitempty"`
}

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

// WithDeploymentMode sets the DeploymentMode 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 DeploymentMode field is set to the value of the last call.
func (b *AlertmanagerConfigApplyConfiguration) WithDeploymentMode(value configv1alpha1.AlertManagerDeployMode) *AlertmanagerConfigApplyConfiguration {
	b.DeploymentMode = &value
	return b
}

// WithCustomConfig sets the CustomConfig 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 CustomConfig field is set to the value of the last call.
func (b *AlertmanagerConfigApplyConfiguration) WithCustomConfig(value *AlertmanagerCustomConfigApplyConfiguration) *AlertmanagerConfigApplyConfiguration {
	b.CustomConfig = value
	return b
}
