2024-06-27 01:03:25 +08:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
// Code generated by applyconfiguration-gen. DO NOT EDIT.
|
|
|
|
|
|
|
|
package v0alpha1
|
|
|
|
|
2024-08-14 23:06:37 +08:00
|
|
|
// ReceiverSpecApplyConfiguration represents a declarative configuration of the ReceiverSpec type for use
|
2024-06-27 01:03:25 +08:00
|
|
|
// with apply.
|
|
|
|
type ReceiverSpecApplyConfiguration struct {
|
|
|
|
Integrations []IntegrationApplyConfiguration `json:"integrations,omitempty"`
|
|
|
|
Title *string `json:"title,omitempty"`
|
|
|
|
}
|
|
|
|
|
2024-08-14 23:06:37 +08:00
|
|
|
// ReceiverSpecApplyConfiguration constructs a declarative configuration of the ReceiverSpec type for use with
|
2024-06-27 01:03:25 +08:00
|
|
|
// apply.
|
|
|
|
func ReceiverSpec() *ReceiverSpecApplyConfiguration {
|
|
|
|
return &ReceiverSpecApplyConfiguration{}
|
|
|
|
}
|
|
|
|
|
|
|
|
// WithIntegrations adds the given value to the Integrations 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 Integrations field.
|
|
|
|
func (b *ReceiverSpecApplyConfiguration) WithIntegrations(values ...*IntegrationApplyConfiguration) *ReceiverSpecApplyConfiguration {
|
|
|
|
for i := range values {
|
|
|
|
if values[i] == nil {
|
|
|
|
panic("nil value passed to WithIntegrations")
|
|
|
|
}
|
|
|
|
b.Integrations = append(b.Integrations, *values[i])
|
|
|
|
}
|
|
|
|
return b
|
|
|
|
}
|
|
|
|
|
|
|
|
// WithTitle sets the Title 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 Title field is set to the value of the last call.
|
|
|
|
func (b *ReceiverSpecApplyConfiguration) WithTitle(value string) *ReceiverSpecApplyConfiguration {
|
|
|
|
b.Title = &value
|
|
|
|
return b
|
|
|
|
}
|