/
alertrelabelconfigspec.go
28 lines (24 loc) · 1.18 KB
/
alertrelabelconfigspec.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1
// AlertRelabelConfigSpecApplyConfiguration represents an declarative configuration of the AlertRelabelConfigSpec type for use
// with apply.
type AlertRelabelConfigSpecApplyConfiguration struct {
Configs []RelabelConfigApplyConfiguration `json:"configs,omitempty"`
}
// AlertRelabelConfigSpecApplyConfiguration constructs an declarative configuration of the AlertRelabelConfigSpec type for use with
// apply.
func AlertRelabelConfigSpec() *AlertRelabelConfigSpecApplyConfiguration {
return &AlertRelabelConfigSpecApplyConfiguration{}
}
// WithConfigs adds the given value to the Configs 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 Configs field.
func (b *AlertRelabelConfigSpecApplyConfiguration) WithConfigs(values ...*RelabelConfigApplyConfiguration) *AlertRelabelConfigSpecApplyConfiguration {
for i := range values {
if values[i] == nil {
panic("nil value passed to WithConfigs")
}
b.Configs = append(b.Configs, *values[i])
}
return b
}