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

package v1

import (
	metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
)

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

// FeatureGateStatusApplyConfiguration constructs a 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 ...*metav1.ConditionApplyConfiguration) *FeatureGateStatusApplyConfiguration {
	for i := range values {
		if values[i] == nil {
			panic("nil value passed to WithConditions")
		}
		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
}
