...

Source file src/k8s.io/client-go/applyconfigurations/core/v1/clustertrustbundleprojection.go

Documentation: k8s.io/client-go/applyconfigurations/core/v1

     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 v1
    20  
    21  import (
    22  	v1 "k8s.io/client-go/applyconfigurations/meta/v1"
    23  )
    24  
    25  // ClusterTrustBundleProjectionApplyConfiguration represents an declarative configuration of the ClusterTrustBundleProjection type for use
    26  // with apply.
    27  type ClusterTrustBundleProjectionApplyConfiguration struct {
    28  	Name          *string                             `json:"name,omitempty"`
    29  	SignerName    *string                             `json:"signerName,omitempty"`
    30  	LabelSelector *v1.LabelSelectorApplyConfiguration `json:"labelSelector,omitempty"`
    31  	Optional      *bool                               `json:"optional,omitempty"`
    32  	Path          *string                             `json:"path,omitempty"`
    33  }
    34  
    35  // ClusterTrustBundleProjectionApplyConfiguration constructs an declarative configuration of the ClusterTrustBundleProjection type for use with
    36  // apply.
    37  func ClusterTrustBundleProjection() *ClusterTrustBundleProjectionApplyConfiguration {
    38  	return &ClusterTrustBundleProjectionApplyConfiguration{}
    39  }
    40  
    41  // WithName sets the Name field in the declarative configuration to the given value
    42  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    43  // If called multiple times, the Name field is set to the value of the last call.
    44  func (b *ClusterTrustBundleProjectionApplyConfiguration) WithName(value string) *ClusterTrustBundleProjectionApplyConfiguration {
    45  	b.Name = &value
    46  	return b
    47  }
    48  
    49  // WithSignerName sets the SignerName field in the declarative configuration to the given value
    50  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    51  // If called multiple times, the SignerName field is set to the value of the last call.
    52  func (b *ClusterTrustBundleProjectionApplyConfiguration) WithSignerName(value string) *ClusterTrustBundleProjectionApplyConfiguration {
    53  	b.SignerName = &value
    54  	return b
    55  }
    56  
    57  // WithLabelSelector sets the LabelSelector field in the declarative configuration to the given value
    58  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    59  // If called multiple times, the LabelSelector field is set to the value of the last call.
    60  func (b *ClusterTrustBundleProjectionApplyConfiguration) WithLabelSelector(value *v1.LabelSelectorApplyConfiguration) *ClusterTrustBundleProjectionApplyConfiguration {
    61  	b.LabelSelector = value
    62  	return b
    63  }
    64  
    65  // WithOptional sets the Optional field in the declarative configuration to the given value
    66  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    67  // If called multiple times, the Optional field is set to the value of the last call.
    68  func (b *ClusterTrustBundleProjectionApplyConfiguration) WithOptional(value bool) *ClusterTrustBundleProjectionApplyConfiguration {
    69  	b.Optional = &value
    70  	return b
    71  }
    72  
    73  // WithPath sets the Path field in the declarative configuration to the given value
    74  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    75  // If called multiple times, the Path field is set to the value of the last call.
    76  func (b *ClusterTrustBundleProjectionApplyConfiguration) WithPath(value string) *ClusterTrustBundleProjectionApplyConfiguration {
    77  	b.Path = &value
    78  	return b
    79  }
    80  

View as plain text