/
containerruntimeconfigstatus.go
37 lines (32 loc) · 1.89 KB
/
containerruntimeconfigstatus.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
29
30
31
32
33
34
35
36
37
// Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1
// ContainerRuntimeConfigStatusApplyConfiguration represents an declarative configuration of the ContainerRuntimeConfigStatus type for use
// with apply.
type ContainerRuntimeConfigStatusApplyConfiguration struct {
ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
Conditions []ContainerRuntimeConfigConditionApplyConfiguration `json:"conditions,omitempty"`
}
// ContainerRuntimeConfigStatusApplyConfiguration constructs an declarative configuration of the ContainerRuntimeConfigStatus type for use with
// apply.
func ContainerRuntimeConfigStatus() *ContainerRuntimeConfigStatusApplyConfiguration {
return &ContainerRuntimeConfigStatusApplyConfiguration{}
}
// 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 *ContainerRuntimeConfigStatusApplyConfiguration) WithObservedGeneration(value int64) *ContainerRuntimeConfigStatusApplyConfiguration {
b.ObservedGeneration = &value
return b
}
// WithConditions adds the given value to the Conditions 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 Conditions field.
func (b *ContainerRuntimeConfigStatusApplyConfiguration) WithConditions(values ...*ContainerRuntimeConfigConditionApplyConfiguration) *ContainerRuntimeConfigStatusApplyConfiguration {
for i := range values {
if values[i] == nil {
panic("nil value passed to WithConditions")
}
b.Conditions = append(b.Conditions, *values[i])
}
return b
}