...

Source file src/k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1beta1/customresourcedefinitionnames.go

Documentation: k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1beta1

     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  // CustomResourceDefinitionNamesApplyConfiguration represents an declarative configuration of the CustomResourceDefinitionNames type for use
    22  // with apply.
    23  type CustomResourceDefinitionNamesApplyConfiguration struct {
    24  	Plural     *string  `json:"plural,omitempty"`
    25  	Singular   *string  `json:"singular,omitempty"`
    26  	ShortNames []string `json:"shortNames,omitempty"`
    27  	Kind       *string  `json:"kind,omitempty"`
    28  	ListKind   *string  `json:"listKind,omitempty"`
    29  	Categories []string `json:"categories,omitempty"`
    30  }
    31  
    32  // CustomResourceDefinitionNamesApplyConfiguration constructs an declarative configuration of the CustomResourceDefinitionNames type for use with
    33  // apply.
    34  func CustomResourceDefinitionNames() *CustomResourceDefinitionNamesApplyConfiguration {
    35  	return &CustomResourceDefinitionNamesApplyConfiguration{}
    36  }
    37  
    38  // WithPlural sets the Plural field in the declarative configuration to the given value
    39  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    40  // If called multiple times, the Plural field is set to the value of the last call.
    41  func (b *CustomResourceDefinitionNamesApplyConfiguration) WithPlural(value string) *CustomResourceDefinitionNamesApplyConfiguration {
    42  	b.Plural = &value
    43  	return b
    44  }
    45  
    46  // WithSingular sets the Singular field in the declarative configuration to the given value
    47  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    48  // If called multiple times, the Singular field is set to the value of the last call.
    49  func (b *CustomResourceDefinitionNamesApplyConfiguration) WithSingular(value string) *CustomResourceDefinitionNamesApplyConfiguration {
    50  	b.Singular = &value
    51  	return b
    52  }
    53  
    54  // WithShortNames adds the given value to the ShortNames field in the declarative configuration
    55  // and returns the receiver, so that objects can be build by chaining "With" function invocations.
    56  // If called multiple times, values provided by each call will be appended to the ShortNames field.
    57  func (b *CustomResourceDefinitionNamesApplyConfiguration) WithShortNames(values ...string) *CustomResourceDefinitionNamesApplyConfiguration {
    58  	for i := range values {
    59  		b.ShortNames = append(b.ShortNames, values[i])
    60  	}
    61  	return b
    62  }
    63  
    64  // WithKind sets the Kind field in the declarative configuration to the given value
    65  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    66  // If called multiple times, the Kind field is set to the value of the last call.
    67  func (b *CustomResourceDefinitionNamesApplyConfiguration) WithKind(value string) *CustomResourceDefinitionNamesApplyConfiguration {
    68  	b.Kind = &value
    69  	return b
    70  }
    71  
    72  // WithListKind sets the ListKind field in the declarative configuration to the given value
    73  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    74  // If called multiple times, the ListKind field is set to the value of the last call.
    75  func (b *CustomResourceDefinitionNamesApplyConfiguration) WithListKind(value string) *CustomResourceDefinitionNamesApplyConfiguration {
    76  	b.ListKind = &value
    77  	return b
    78  }
    79  
    80  // WithCategories adds the given value to the Categories field in the declarative configuration
    81  // and returns the receiver, so that objects can be build by chaining "With" function invocations.
    82  // If called multiple times, values provided by each call will be appended to the Categories field.
    83  func (b *CustomResourceDefinitionNamesApplyConfiguration) WithCategories(values ...string) *CustomResourceDefinitionNamesApplyConfiguration {
    84  	for i := range values {
    85  		b.Categories = append(b.Categories, values[i])
    86  	}
    87  	return b
    88  }
    89  

View as plain text