| 1 | /* |
| 2 | Copyright The Kubernetes Authors. |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | // Code generated by applyconfiguration-gen. DO NOT EDIT. |
| 18 | |
| 19 | package v1beta1 |
| 20 | |
| 21 | import ( |
| 22 | metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
| 23 | v1 "k8s.io/client-go/applyconfigurations/core/v1" |
| 24 | ) |
| 25 | |
| 26 | // CronJobStatusApplyConfiguration represents a declarative configuration of the CronJobStatus type for use |
| 27 | // with apply. |
| 28 | type CronJobStatusApplyConfiguration struct { |
| 29 | Active []v1.ObjectReferenceApplyConfiguration `json:"active,omitempty"` |
| 30 | LastScheduleTime *metav1.Time `json:"lastScheduleTime,omitempty"` |
| 31 | LastSuccessfulTime *metav1.Time `json:"lastSuccessfulTime,omitempty"` |
| 32 | } |
| 33 | |
| 34 | // CronJobStatusApplyConfiguration constructs a declarative configuration of the CronJobStatus type for use with |
| 35 | // apply. |
| 36 | func CronJobStatus() *CronJobStatusApplyConfiguration { |
| 37 | return &CronJobStatusApplyConfiguration{} |
| 38 | } |
| 39 | |
| 40 | // WithActive adds the given value to the Active field in the declarative configuration |
| 41 | // and returns the receiver, so that objects can be build by chaining "With" function invocations. |
| 42 | // If called multiple times, values provided by each call will be appended to the Active field. |
| 43 | func (b *CronJobStatusApplyConfiguration) WithActive(values ...*v1.ObjectReferenceApplyConfiguration) *CronJobStatusApplyConfiguration { |
| 44 | for i := range values { |
| 45 | if values[i] == nil { |
| 46 | panic("nil value passed to WithActive") |
| 47 | } |
| 48 | b.Active = append(b.Active, *values[i]) |
| 49 | } |
| 50 | return b |
| 51 | } |
| 52 | |
| 53 | // WithLastScheduleTime sets the LastScheduleTime field in the declarative configuration to the given value |
| 54 | // and returns the receiver, so that objects can be built by chaining "With" function invocations. |
| 55 | // If called multiple times, the LastScheduleTime field is set to the value of the last call. |
| 56 | func (b *CronJobStatusApplyConfiguration) WithLastScheduleTime(value metav1.Time) *CronJobStatusApplyConfiguration { |
| 57 | b.LastScheduleTime = &value |
| 58 | return b |
| 59 | } |
| 60 | |
| 61 | // WithLastSuccessfulTime sets the LastSuccessfulTime field in the declarative configuration to the given value |
| 62 | // and returns the receiver, so that objects can be built by chaining "With" function invocations. |
| 63 | // If called multiple times, the LastSuccessfulTime field is set to the value of the last call. |
| 64 | func (b *CronJobStatusApplyConfiguration) WithLastSuccessfulTime(value metav1.Time) *CronJobStatusApplyConfiguration { |
| 65 | b.LastSuccessfulTime = &value |
| 66 | return b |
| 67 | } |