...

Source file src/k8s.io/client-go/applyconfigurations/resource/v1alpha2/namedresourcesattribute.go

Documentation: k8s.io/client-go/applyconfigurations/resource/v1alpha2

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

View as plain text