// SPDX-License-Identifier: AGPL-3.0-only // Code generated by applyconfiguration-gen. DO NOT EDIT. package v0alpha1 // EditingOptionsApplyConfiguration represents a declarative configuration of the EditingOptions type for use // with apply. type EditingOptionsApplyConfiguration struct { Create *bool `json:"create,omitempty"` Update *bool `json:"update,omitempty"` Delete *bool `json:"delete,omitempty"` } // EditingOptionsApplyConfiguration constructs a declarative configuration of the EditingOptions type for use with // apply. func EditingOptions() *EditingOptionsApplyConfiguration { return &EditingOptionsApplyConfiguration{} } // WithCreate sets the Create 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 Create field is set to the value of the last call. func (b *EditingOptionsApplyConfiguration) WithCreate(value bool) *EditingOptionsApplyConfiguration { b.Create = &value return b } // WithUpdate sets the Update 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 Update field is set to the value of the last call. func (b *EditingOptionsApplyConfiguration) WithUpdate(value bool) *EditingOptionsApplyConfiguration { b.Update = &value return b } // WithDelete sets the Delete 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 Delete field is set to the value of the last call. func (b *EditingOptionsApplyConfiguration) WithDelete(value bool) *EditingOptionsApplyConfiguration { b.Delete = &value return b }