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

package v1

import (
	apioperatorv1 "github.com/openshift/api/operator/v1"
	operatorv1 "github.com/openshift/client-go/operator/applyconfigurations/operator/v1"
	runtime "k8s.io/apimachinery/pkg/runtime"
)

// CliManagerSpecApplyConfiguration represents a declarative configuration of the CliManagerSpec type for use
// with apply.
type CliManagerSpecApplyConfiguration struct {
	operatorv1.OperatorSpecApplyConfiguration `json:",inline"`
}

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

// WithManagementState sets the ManagementState 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 ManagementState field is set to the value of the last call.
func (b *CliManagerSpecApplyConfiguration) WithManagementState(value apioperatorv1.ManagementState) *CliManagerSpecApplyConfiguration {
	b.OperatorSpecApplyConfiguration.ManagementState = &value
	return b
}

// WithLogLevel sets the LogLevel 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 LogLevel field is set to the value of the last call.
func (b *CliManagerSpecApplyConfiguration) WithLogLevel(value apioperatorv1.LogLevel) *CliManagerSpecApplyConfiguration {
	b.OperatorSpecApplyConfiguration.LogLevel = &value
	return b
}

// WithOperatorLogLevel sets the OperatorLogLevel 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 OperatorLogLevel field is set to the value of the last call.
func (b *CliManagerSpecApplyConfiguration) WithOperatorLogLevel(value apioperatorv1.LogLevel) *CliManagerSpecApplyConfiguration {
	b.OperatorSpecApplyConfiguration.OperatorLogLevel = &value
	return b
}

// WithUnsupportedConfigOverrides sets the UnsupportedConfigOverrides 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 UnsupportedConfigOverrides field is set to the value of the last call.
func (b *CliManagerSpecApplyConfiguration) WithUnsupportedConfigOverrides(value runtime.RawExtension) *CliManagerSpecApplyConfiguration {
	b.OperatorSpecApplyConfiguration.UnsupportedConfigOverrides = &value
	return b
}

// WithObservedConfig sets the ObservedConfig 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 ObservedConfig field is set to the value of the last call.
func (b *CliManagerSpecApplyConfiguration) WithObservedConfig(value runtime.RawExtension) *CliManagerSpecApplyConfiguration {
	b.OperatorSpecApplyConfiguration.ObservedConfig = &value
	return b
}
