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 v1beta1
20
21import (
22	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
23	v1 "k8s.io/client-go/applyconfigurations/core/v1"
24)
25
26// CronJobStatusApplyConfiguration represents an declarative configuration of the CronJobStatus type for use
27// with apply.
28type 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 an declarative configuration of the CronJobStatus type for use with
35// apply.
36func 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.
43func (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.
56func (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.
64func (b *CronJobStatusApplyConfiguration) WithLastSuccessfulTime(value metav1.Time) *CronJobStatusApplyConfiguration {
65	b.LastSuccessfulTime = &value
66	return b
67}
68