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

package v1

import (
	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

// FeatureGateStatusApplyConfiguration represents an declarative configuration of the FeatureGateStatus type for use
// with apply.
type FeatureGateStatusApplyConfiguration struct {
	Conditions   []v1.Condition                         `json:"conditions,omitempty"`
	FeatureGates []FeatureGateDetailsApplyConfiguration `json:"featureGates,omitempty"`
}

// FeatureGateStatusApplyConfiguration constructs an declarative configuration of the FeatureGateStatus type for use with
// apply.
func FeatureGateStatus() *FeatureGateStatusApplyConfiguration {
	return &FeatureGateStatusApplyConfiguration{}
}

// WithConditions adds the given value to the Conditions 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 Conditions field.
func (b *FeatureGateStatusApplyConfiguration) WithConditions(values ...v1.Condition) *FeatureGateStatusApplyConfiguration {
	for i := range values {
		b.Conditions = append(b.Conditions, values[i])
	}
	return b
}

// WithFeatureGates adds the given value to the FeatureGates 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 FeatureGates field.
func (b *FeatureGateStatusApplyConfiguration) WithFeatureGates(values ...*FeatureGateDetailsApplyConfiguration) *FeatureGateStatusApplyConfiguration {
	for i := range values {
		if values[i] == nil {
			panic("nil value passed to WithFeatureGates")
		}
		b.FeatureGates = append(b.FeatureGates, *values[i])
	}
	return b
}
