1/*
2Copyright The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8    http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17// Code generated by applyconfiguration-gen. DO NOT EDIT.
18
19package v1beta2
20
21// DaemonSetStatusApplyConfiguration represents an declarative configuration of the DaemonSetStatus type for use
22// with apply.
23type DaemonSetStatusApplyConfiguration struct {
24	CurrentNumberScheduled *int32                                 `json:"currentNumberScheduled,omitempty"`
25	NumberMisscheduled     *int32                                 `json:"numberMisscheduled,omitempty"`
26	DesiredNumberScheduled *int32                                 `json:"desiredNumberScheduled,omitempty"`
27	NumberReady            *int32                                 `json:"numberReady,omitempty"`
28	ObservedGeneration     *int64                                 `json:"observedGeneration,omitempty"`
29	UpdatedNumberScheduled *int32                                 `json:"updatedNumberScheduled,omitempty"`
30	NumberAvailable        *int32                                 `json:"numberAvailable,omitempty"`
31	NumberUnavailable      *int32                                 `json:"numberUnavailable,omitempty"`
32	CollisionCount         *int32                                 `json:"collisionCount,omitempty"`
33	Conditions             []DaemonSetConditionApplyConfiguration `json:"conditions,omitempty"`
34}
35
36// DaemonSetStatusApplyConfiguration constructs an declarative configuration of the DaemonSetStatus type for use with
37// apply.
38func DaemonSetStatus() *DaemonSetStatusApplyConfiguration {
39	return &DaemonSetStatusApplyConfiguration{}
40}
41
42// WithCurrentNumberScheduled sets the CurrentNumberScheduled field in the declarative configuration to the given value
43// and returns the receiver, so that objects can be built by chaining "With" function invocations.
44// If called multiple times, the CurrentNumberScheduled field is set to the value of the last call.
45func (b *DaemonSetStatusApplyConfiguration) WithCurrentNumberScheduled(value int32) *DaemonSetStatusApplyConfiguration {
46	b.CurrentNumberScheduled = &value
47	return b
48}
49
50// WithNumberMisscheduled sets the NumberMisscheduled field in the declarative configuration to the given value
51// and returns the receiver, so that objects can be built by chaining "With" function invocations.
52// If called multiple times, the NumberMisscheduled field is set to the value of the last call.
53func (b *DaemonSetStatusApplyConfiguration) WithNumberMisscheduled(value int32) *DaemonSetStatusApplyConfiguration {
54	b.NumberMisscheduled = &value
55	return b
56}
57
58// WithDesiredNumberScheduled sets the DesiredNumberScheduled field in the declarative configuration to the given value
59// and returns the receiver, so that objects can be built by chaining "With" function invocations.
60// If called multiple times, the DesiredNumberScheduled field is set to the value of the last call.
61func (b *DaemonSetStatusApplyConfiguration) WithDesiredNumberScheduled(value int32) *DaemonSetStatusApplyConfiguration {
62	b.DesiredNumberScheduled = &value
63	return b
64}
65
66// WithNumberReady sets the NumberReady field in the declarative configuration to the given value
67// and returns the receiver, so that objects can be built by chaining "With" function invocations.
68// If called multiple times, the NumberReady field is set to the value of the last call.
69func (b *DaemonSetStatusApplyConfiguration) WithNumberReady(value int32) *DaemonSetStatusApplyConfiguration {
70	b.NumberReady = &value
71	return b
72}
73
74// WithObservedGeneration sets the ObservedGeneration field in the declarative configuration to the given value
75// and returns the receiver, so that objects can be built by chaining "With" function invocations.
76// If called multiple times, the ObservedGeneration field is set to the value of the last call.
77func (b *DaemonSetStatusApplyConfiguration) WithObservedGeneration(value int64) *DaemonSetStatusApplyConfiguration {
78	b.ObservedGeneration = &value
79	return b
80}
81
82// WithUpdatedNumberScheduled sets the UpdatedNumberScheduled field in the declarative configuration to the given value
83// and returns the receiver, so that objects can be built by chaining "With" function invocations.
84// If called multiple times, the UpdatedNumberScheduled field is set to the value of the last call.
85func (b *DaemonSetStatusApplyConfiguration) WithUpdatedNumberScheduled(value int32) *DaemonSetStatusApplyConfiguration {
86	b.UpdatedNumberScheduled = &value
87	return b
88}
89
90// WithNumberAvailable sets the NumberAvailable field in the declarative configuration to the given value
91// and returns the receiver, so that objects can be built by chaining "With" function invocations.
92// If called multiple times, the NumberAvailable field is set to the value of the last call.
93func (b *DaemonSetStatusApplyConfiguration) WithNumberAvailable(value int32) *DaemonSetStatusApplyConfiguration {
94	b.NumberAvailable = &value
95	return b
96}
97
98// WithNumberUnavailable sets the NumberUnavailable field in the declarative configuration to the given value
99// and returns the receiver, so that objects can be built by chaining "With" function invocations.
100// If called multiple times, the NumberUnavailable field is set to the value of the last call.
101func (b *DaemonSetStatusApplyConfiguration) WithNumberUnavailable(value int32) *DaemonSetStatusApplyConfiguration {
102	b.NumberUnavailable = &value
103	return b
104}
105
106// WithCollisionCount sets the CollisionCount field in the declarative configuration to the given value
107// and returns the receiver, so that objects can be built by chaining "With" function invocations.
108// If called multiple times, the CollisionCount field is set to the value of the last call.
109func (b *DaemonSetStatusApplyConfiguration) WithCollisionCount(value int32) *DaemonSetStatusApplyConfiguration {
110	b.CollisionCount = &value
111	return b
112}
113
114// WithConditions adds the given value to the Conditions field in the declarative configuration
115// and returns the receiver, so that objects can be build by chaining "With" function invocations.
116// If called multiple times, values provided by each call will be appended to the Conditions field.
117func (b *DaemonSetStatusApplyConfiguration) WithConditions(values ...*DaemonSetConditionApplyConfiguration) *DaemonSetStatusApplyConfiguration {
118	for i := range values {
119		if values[i] == nil {
120			panic("nil value passed to WithConditions")
121		}
122		b.Conditions = append(b.Conditions, *values[i])
123	}
124	return b
125}
126