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 v1alpha2 20 21 import ( 22 resource "k8s.io/apimachinery/pkg/api/resource" 23 ) 24 25 // NamedResourcesAttributeValueApplyConfiguration represents an declarative configuration of the NamedResourcesAttributeValue type for use 26 // with apply. 27 type NamedResourcesAttributeValueApplyConfiguration struct { 28 QuantityValue *resource.Quantity `json:"quantity,omitempty"` 29 BoolValue *bool `json:"bool,omitempty"` 30 IntValue *int64 `json:"int,omitempty"` 31 IntSliceValue *NamedResourcesIntSliceApplyConfiguration `json:"intSlice,omitempty"` 32 StringValue *string `json:"string,omitempty"` 33 StringSliceValue *NamedResourcesStringSliceApplyConfiguration `json:"stringSlice,omitempty"` 34 VersionValue *string `json:"version,omitempty"` 35 } 36 37 // NamedResourcesAttributeValueApplyConfiguration constructs an declarative configuration of the NamedResourcesAttributeValue type for use with 38 // apply. 39 func NamedResourcesAttributeValue() *NamedResourcesAttributeValueApplyConfiguration { 40 return &NamedResourcesAttributeValueApplyConfiguration{} 41 } 42 43 // WithQuantityValue sets the QuantityValue field in the declarative configuration to the given value 44 // and returns the receiver, so that objects can be built by chaining "With" function invocations. 45 // If called multiple times, the QuantityValue field is set to the value of the last call. 46 func (b *NamedResourcesAttributeValueApplyConfiguration) WithQuantityValue(value resource.Quantity) *NamedResourcesAttributeValueApplyConfiguration { 47 b.QuantityValue = &value 48 return b 49 } 50 51 // WithBoolValue sets the BoolValue field in the declarative configuration to the given value 52 // and returns the receiver, so that objects can be built by chaining "With" function invocations. 53 // If called multiple times, the BoolValue field is set to the value of the last call. 54 func (b *NamedResourcesAttributeValueApplyConfiguration) WithBoolValue(value bool) *NamedResourcesAttributeValueApplyConfiguration { 55 b.BoolValue = &value 56 return b 57 } 58 59 // WithIntValue sets the IntValue field in the declarative configuration to the given value 60 // and returns the receiver, so that objects can be built by chaining "With" function invocations. 61 // If called multiple times, the IntValue field is set to the value of the last call. 62 func (b *NamedResourcesAttributeValueApplyConfiguration) WithIntValue(value int64) *NamedResourcesAttributeValueApplyConfiguration { 63 b.IntValue = &value 64 return b 65 } 66 67 // WithIntSliceValue sets the IntSliceValue field in the declarative configuration to the given value 68 // and returns the receiver, so that objects can be built by chaining "With" function invocations. 69 // If called multiple times, the IntSliceValue field is set to the value of the last call. 70 func (b *NamedResourcesAttributeValueApplyConfiguration) WithIntSliceValue(value *NamedResourcesIntSliceApplyConfiguration) *NamedResourcesAttributeValueApplyConfiguration { 71 b.IntSliceValue = value 72 return b 73 } 74 75 // WithStringValue sets the StringValue field in the declarative configuration to the given value 76 // and returns the receiver, so that objects can be built by chaining "With" function invocations. 77 // If called multiple times, the StringValue field is set to the value of the last call. 78 func (b *NamedResourcesAttributeValueApplyConfiguration) WithStringValue(value string) *NamedResourcesAttributeValueApplyConfiguration { 79 b.StringValue = &value 80 return b 81 } 82 83 // WithStringSliceValue sets the StringSliceValue field in the declarative configuration to the given value 84 // and returns the receiver, so that objects can be built by chaining "With" function invocations. 85 // If called multiple times, the StringSliceValue field is set to the value of the last call. 86 func (b *NamedResourcesAttributeValueApplyConfiguration) WithStringSliceValue(value *NamedResourcesStringSliceApplyConfiguration) *NamedResourcesAttributeValueApplyConfiguration { 87 b.StringSliceValue = value 88 return b 89 } 90 91 // WithVersionValue sets the VersionValue field in the declarative configuration to the given value 92 // and returns the receiver, so that objects can be built by chaining "With" function invocations. 93 // If called multiple times, the VersionValue field is set to the value of the last call. 94 func (b *NamedResourcesAttributeValueApplyConfiguration) WithVersionValue(value string) *NamedResourcesAttributeValueApplyConfiguration { 95 b.VersionValue = &value 96 return b 97 } 98