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

package v1

// AddPageApplyConfiguration represents a declarative configuration of the AddPage type for use
// with apply.
//
// AddPage allows customizing actions on the Add page in developer perspective.
type AddPageApplyConfiguration struct {
	// disabledActions is a list of actions that are not shown to users.
	// Each action in the list is represented by its ID.
	DisabledActions []string `json:"disabledActions,omitempty"`
}

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

// WithDisabledActions adds the given value to the DisabledActions 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 DisabledActions field.
func (b *AddPageApplyConfiguration) WithDisabledActions(values ...string) *AddPageApplyConfiguration {
	for i := range values {
		b.DisabledActions = append(b.DisabledActions, values[i])
	}
	return b
}
