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

package v1

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

// ClusterVersionCapabilitiesStatusApplyConfiguration represents a declarative configuration of the ClusterVersionCapabilitiesStatus type for use
// with apply.
//
// ClusterVersionCapabilitiesStatus describes the state of optional,
// core cluster components.
type ClusterVersionCapabilitiesStatusApplyConfiguration struct {
	// enabledCapabilities lists all the capabilities that are currently managed.
	EnabledCapabilities []configv1.ClusterVersionCapability `json:"enabledCapabilities,omitempty"`
	// knownCapabilities lists all the capabilities known to the current cluster.
	KnownCapabilities []configv1.ClusterVersionCapability `json:"knownCapabilities,omitempty"`
}

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

// WithEnabledCapabilities adds the given value to the EnabledCapabilities 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 EnabledCapabilities field.
func (b *ClusterVersionCapabilitiesStatusApplyConfiguration) WithEnabledCapabilities(values ...configv1.ClusterVersionCapability) *ClusterVersionCapabilitiesStatusApplyConfiguration {
	for i := range values {
		b.EnabledCapabilities = append(b.EnabledCapabilities, values[i])
	}
	return b
}

// WithKnownCapabilities adds the given value to the KnownCapabilities 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 KnownCapabilities field.
func (b *ClusterVersionCapabilitiesStatusApplyConfiguration) WithKnownCapabilities(values ...configv1.ClusterVersionCapability) *ClusterVersionCapabilitiesStatusApplyConfiguration {
	for i := range values {
		b.KnownCapabilities = append(b.KnownCapabilities, values[i])
	}
	return b
}
