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

package v1

import (
	configv1 "github.com/openshift/api/config/v1"
)

// ClusterVersionCapabilitiesSpecApplyConfiguration represents a declarative configuration of the ClusterVersionCapabilitiesSpec type for use
// with apply.
type ClusterVersionCapabilitiesSpecApplyConfiguration struct {
	BaselineCapabilitySet         *configv1.ClusterVersionCapabilitySet `json:"baselineCapabilitySet,omitempty"`
	AdditionalEnabledCapabilities []configv1.ClusterVersionCapability   `json:"additionalEnabledCapabilities,omitempty"`
}

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

// WithBaselineCapabilitySet sets the BaselineCapabilitySet 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 BaselineCapabilitySet field is set to the value of the last call.
func (b *ClusterVersionCapabilitiesSpecApplyConfiguration) WithBaselineCapabilitySet(value configv1.ClusterVersionCapabilitySet) *ClusterVersionCapabilitiesSpecApplyConfiguration {
	b.BaselineCapabilitySet = &value
	return b
}

// WithAdditionalEnabledCapabilities adds the given value to the AdditionalEnabledCapabilities field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the AdditionalEnabledCapabilities field.
func (b *ClusterVersionCapabilitiesSpecApplyConfiguration) WithAdditionalEnabledCapabilities(values ...configv1.ClusterVersionCapability) *ClusterVersionCapabilitiesSpecApplyConfiguration {
	for i := range values {
		b.AdditionalEnabledCapabilities = append(b.AdditionalEnabledCapabilities, values[i])
	}
	return b
}
