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 // IngressClassParametersReferenceApplyConfiguration represents an declarative configuration of the IngressClassParametersReference type for use 22 // with apply. 23 type IngressClassParametersReferenceApplyConfiguration struct { 24 APIGroup *string `json:"apiGroup,omitempty"` 25 Kind *string `json:"kind,omitempty"` 26 Name *string `json:"name,omitempty"` 27 Scope *string `json:"scope,omitempty"` 28 Namespace *string `json:"namespace,omitempty"` 29 } 30 31 // IngressClassParametersReferenceApplyConfiguration constructs an declarative configuration of the IngressClassParametersReference type for use with 32 // apply. 33 func IngressClassParametersReference() *IngressClassParametersReferenceApplyConfiguration { 34 return &IngressClassParametersReferenceApplyConfiguration{} 35 } 36 37 // WithAPIGroup sets the APIGroup field in the declarative configuration to the given value 38 // and returns the receiver, so that objects can be built by chaining "With" function invocations. 39 // If called multiple times, the APIGroup field is set to the value of the last call. 40 func (b *IngressClassParametersReferenceApplyConfiguration) WithAPIGroup(value string) *IngressClassParametersReferenceApplyConfiguration { 41 b.APIGroup = &value 42 return b 43 } 44 45 // WithKind sets the Kind field in the declarative configuration to the given value 46 // and returns the receiver, so that objects can be built by chaining "With" function invocations. 47 // If called multiple times, the Kind field is set to the value of the last call. 48 func (b *IngressClassParametersReferenceApplyConfiguration) WithKind(value string) *IngressClassParametersReferenceApplyConfiguration { 49 b.Kind = &value 50 return b 51 } 52 53 // WithName sets the Name 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 Name field is set to the value of the last call. 56 func (b *IngressClassParametersReferenceApplyConfiguration) WithName(value string) *IngressClassParametersReferenceApplyConfiguration { 57 b.Name = &value 58 return b 59 } 60 61 // WithScope sets the Scope 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 Scope field is set to the value of the last call. 64 func (b *IngressClassParametersReferenceApplyConfiguration) WithScope(value string) *IngressClassParametersReferenceApplyConfiguration { 65 b.Scope = &value 66 return b 67 } 68 69 // WithNamespace sets the Namespace field in the declarative configuration to the given value 70 // and returns the receiver, so that objects can be built by chaining "With" function invocations. 71 // If called multiple times, the Namespace field is set to the value of the last call. 72 func (b *IngressClassParametersReferenceApplyConfiguration) WithNamespace(value string) *IngressClassParametersReferenceApplyConfiguration { 73 b.Namespace = &value 74 return b 75 } 76