// 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.
type AlertmanagerConfigApplyConfiguration struct {
	DeploymentMode *configv1alpha1.AlertManagerDeployMode      `json:"deploymentMode,omitempty"`
	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
}
