sigs.k8s.io/kueue@v0.6.2/client-go/applyconfiguration/kueue/v1beta1/clusterqueuependingworkloadsstatus.go (about)

     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  // Code generated by applyconfiguration-gen. DO NOT EDIT.
    17  
    18  package v1beta1
    19  
    20  import (
    21  	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    22  )
    23  
    24  // ClusterQueuePendingWorkloadsStatusApplyConfiguration represents an declarative configuration of the ClusterQueuePendingWorkloadsStatus type for use
    25  // with apply.
    26  type ClusterQueuePendingWorkloadsStatusApplyConfiguration struct {
    27  	Head           []ClusterQueuePendingWorkloadApplyConfiguration `json:"clusterQueuePendingWorkload,omitempty"`
    28  	LastChangeTime *v1.Time                                        `json:"lastChangeTime,omitempty"`
    29  }
    30  
    31  // ClusterQueuePendingWorkloadsStatusApplyConfiguration constructs an declarative configuration of the ClusterQueuePendingWorkloadsStatus type for use with
    32  // apply.
    33  func ClusterQueuePendingWorkloadsStatus() *ClusterQueuePendingWorkloadsStatusApplyConfiguration {
    34  	return &ClusterQueuePendingWorkloadsStatusApplyConfiguration{}
    35  }
    36  
    37  // WithHead adds the given value to the Head field in the declarative configuration
    38  // and returns the receiver, so that objects can be build by chaining "With" function invocations.
    39  // If called multiple times, values provided by each call will be appended to the Head field.
    40  func (b *ClusterQueuePendingWorkloadsStatusApplyConfiguration) WithHead(values ...*ClusterQueuePendingWorkloadApplyConfiguration) *ClusterQueuePendingWorkloadsStatusApplyConfiguration {
    41  	for i := range values {
    42  		if values[i] == nil {
    43  			panic("nil value passed to WithHead")
    44  		}
    45  		b.Head = append(b.Head, *values[i])
    46  	}
    47  	return b
    48  }
    49  
    50  // WithLastChangeTime sets the LastChangeTime 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 LastChangeTime field is set to the value of the last call.
    53  func (b *ClusterQueuePendingWorkloadsStatusApplyConfiguration) WithLastChangeTime(value v1.Time) *ClusterQueuePendingWorkloadsStatusApplyConfiguration {
    54  	b.LastChangeTime = &value
    55  	return b
    56  }