// SPDX-License-Identifier: AGPL-3.0-only // Code generated by applyconfiguration-gen. DO NOT EDIT. package v0alpha1 // RepositoryStatusApplyConfiguration represents a declarative configuration of the RepositoryStatus type for use // with apply. type RepositoryStatusApplyConfiguration struct { ObservedGeneration *int64 `json:"observedGeneration,omitempty"` Health *HealthStatusApplyConfiguration `json:"health,omitempty"` Sync *SyncStatusApplyConfiguration `json:"sync,omitempty"` Stats []ResourceCountApplyConfiguration `json:"stats,omitempty"` Webhook *WebhookStatusApplyConfiguration `json:"webhook,omitempty"` } // RepositoryStatusApplyConfiguration constructs a declarative configuration of the RepositoryStatus type for use with // apply. func RepositoryStatus() *RepositoryStatusApplyConfiguration { return &RepositoryStatusApplyConfiguration{} } // WithObservedGeneration sets the ObservedGeneration 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 ObservedGeneration field is set to the value of the last call. func (b *RepositoryStatusApplyConfiguration) WithObservedGeneration(value int64) *RepositoryStatusApplyConfiguration { b.ObservedGeneration = &value return b } // WithHealth sets the Health 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 Health field is set to the value of the last call. func (b *RepositoryStatusApplyConfiguration) WithHealth(value *HealthStatusApplyConfiguration) *RepositoryStatusApplyConfiguration { b.Health = value return b } // WithSync sets the Sync 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 Sync field is set to the value of the last call. func (b *RepositoryStatusApplyConfiguration) WithSync(value *SyncStatusApplyConfiguration) *RepositoryStatusApplyConfiguration { b.Sync = value return b } // WithStats adds the given value to the Stats 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 Stats field. func (b *RepositoryStatusApplyConfiguration) WithStats(values ...*ResourceCountApplyConfiguration) *RepositoryStatusApplyConfiguration { for i := range values { if values[i] == nil { panic("nil value passed to WithStats") } b.Stats = append(b.Stats, *values[i]) } return b } // WithWebhook sets the Webhook 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 Webhook field is set to the value of the last call. func (b *RepositoryStatusApplyConfiguration) WithWebhook(value *WebhookStatusApplyConfiguration) *RepositoryStatusApplyConfiguration { b.Webhook = value return b }