...

Source file src/k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1beta1/jsonschemaprops.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  import (
    22  	v1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
    23  )
    24  
    25  // JSONSchemaPropsApplyConfiguration represents an declarative configuration of the JSONSchemaProps type for use
    26  // with apply.
    27  type JSONSchemaPropsApplyConfiguration struct {
    28  	ID                     *string                                      `json:"id,omitempty"`
    29  	Schema                 *v1beta1.JSONSchemaURL                       `json:"$schema,omitempty"`
    30  	Ref                    *string                                      `json:"$ref,omitempty"`
    31  	Description            *string                                      `json:"description,omitempty"`
    32  	Type                   *string                                      `json:"type,omitempty"`
    33  	Format                 *string                                      `json:"format,omitempty"`
    34  	Title                  *string                                      `json:"title,omitempty"`
    35  	Default                *v1beta1.JSON                                `json:"default,omitempty"`
    36  	Maximum                *float64                                     `json:"maximum,omitempty"`
    37  	ExclusiveMaximum       *bool                                        `json:"exclusiveMaximum,omitempty"`
    38  	Minimum                *float64                                     `json:"minimum,omitempty"`
    39  	ExclusiveMinimum       *bool                                        `json:"exclusiveMinimum,omitempty"`
    40  	MaxLength              *int64                                       `json:"maxLength,omitempty"`
    41  	MinLength              *int64                                       `json:"minLength,omitempty"`
    42  	Pattern                *string                                      `json:"pattern,omitempty"`
    43  	MaxItems               *int64                                       `json:"maxItems,omitempty"`
    44  	MinItems               *int64                                       `json:"minItems,omitempty"`
    45  	UniqueItems            *bool                                        `json:"uniqueItems,omitempty"`
    46  	MultipleOf             *float64                                     `json:"multipleOf,omitempty"`
    47  	Enum                   []v1beta1.JSON                               `json:"enum,omitempty"`
    48  	MaxProperties          *int64                                       `json:"maxProperties,omitempty"`
    49  	MinProperties          *int64                                       `json:"minProperties,omitempty"`
    50  	Required               []string                                     `json:"required,omitempty"`
    51  	Items                  *v1beta1.JSONSchemaPropsOrArray              `json:"items,omitempty"`
    52  	AllOf                  []JSONSchemaPropsApplyConfiguration          `json:"allOf,omitempty"`
    53  	OneOf                  []JSONSchemaPropsApplyConfiguration          `json:"oneOf,omitempty"`
    54  	AnyOf                  []JSONSchemaPropsApplyConfiguration          `json:"anyOf,omitempty"`
    55  	Not                    *JSONSchemaPropsApplyConfiguration           `json:"not,omitempty"`
    56  	Properties             map[string]JSONSchemaPropsApplyConfiguration `json:"properties,omitempty"`
    57  	AdditionalProperties   *v1beta1.JSONSchemaPropsOrBool               `json:"additionalProperties,omitempty"`
    58  	PatternProperties      map[string]JSONSchemaPropsApplyConfiguration `json:"patternProperties,omitempty"`
    59  	Dependencies           *v1beta1.JSONSchemaDependencies              `json:"dependencies,omitempty"`
    60  	AdditionalItems        *v1beta1.JSONSchemaPropsOrBool               `json:"additionalItems,omitempty"`
    61  	Definitions            *v1beta1.JSONSchemaDefinitions               `json:"definitions,omitempty"`
    62  	ExternalDocs           *ExternalDocumentationApplyConfiguration     `json:"externalDocs,omitempty"`
    63  	Example                *v1beta1.JSON                                `json:"example,omitempty"`
    64  	Nullable               *bool                                        `json:"nullable,omitempty"`
    65  	XPreserveUnknownFields *bool                                        `json:"x-kubernetes-preserve-unknown-fields,omitempty"`
    66  	XEmbeddedResource      *bool                                        `json:"x-kubernetes-embedded-resource,omitempty"`
    67  	XIntOrString           *bool                                        `json:"x-kubernetes-int-or-string,omitempty"`
    68  	XListMapKeys           []string                                     `json:"x-kubernetes-list-map-keys,omitempty"`
    69  	XListType              *string                                      `json:"x-kubernetes-list-type,omitempty"`
    70  	XMapType               *string                                      `json:"x-kubernetes-map-type,omitempty"`
    71  	XValidations           *v1beta1.ValidationRules                     `json:"x-kubernetes-validations,omitempty"`
    72  }
    73  
    74  // JSONSchemaPropsApplyConfiguration constructs an declarative configuration of the JSONSchemaProps type for use with
    75  // apply.
    76  func JSONSchemaProps() *JSONSchemaPropsApplyConfiguration {
    77  	return &JSONSchemaPropsApplyConfiguration{}
    78  }
    79  
    80  // WithID sets the ID field in the declarative configuration to the given value
    81  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    82  // If called multiple times, the ID field is set to the value of the last call.
    83  func (b *JSONSchemaPropsApplyConfiguration) WithID(value string) *JSONSchemaPropsApplyConfiguration {
    84  	b.ID = &value
    85  	return b
    86  }
    87  
    88  // WithSchema sets the Schema field in the declarative configuration to the given value
    89  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    90  // If called multiple times, the Schema field is set to the value of the last call.
    91  func (b *JSONSchemaPropsApplyConfiguration) WithSchema(value v1beta1.JSONSchemaURL) *JSONSchemaPropsApplyConfiguration {
    92  	b.Schema = &value
    93  	return b
    94  }
    95  
    96  // WithRef sets the Ref field in the declarative configuration to the given value
    97  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    98  // If called multiple times, the Ref field is set to the value of the last call.
    99  func (b *JSONSchemaPropsApplyConfiguration) WithRef(value string) *JSONSchemaPropsApplyConfiguration {
   100  	b.Ref = &value
   101  	return b
   102  }
   103  
   104  // WithDescription sets the Description field in the declarative configuration to the given value
   105  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   106  // If called multiple times, the Description field is set to the value of the last call.
   107  func (b *JSONSchemaPropsApplyConfiguration) WithDescription(value string) *JSONSchemaPropsApplyConfiguration {
   108  	b.Description = &value
   109  	return b
   110  }
   111  
   112  // WithType sets the Type field in the declarative configuration to the given value
   113  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   114  // If called multiple times, the Type field is set to the value of the last call.
   115  func (b *JSONSchemaPropsApplyConfiguration) WithType(value string) *JSONSchemaPropsApplyConfiguration {
   116  	b.Type = &value
   117  	return b
   118  }
   119  
   120  // WithFormat sets the Format field in the declarative configuration to the given value
   121  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   122  // If called multiple times, the Format field is set to the value of the last call.
   123  func (b *JSONSchemaPropsApplyConfiguration) WithFormat(value string) *JSONSchemaPropsApplyConfiguration {
   124  	b.Format = &value
   125  	return b
   126  }
   127  
   128  // WithTitle sets the Title field in the declarative configuration to the given value
   129  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   130  // If called multiple times, the Title field is set to the value of the last call.
   131  func (b *JSONSchemaPropsApplyConfiguration) WithTitle(value string) *JSONSchemaPropsApplyConfiguration {
   132  	b.Title = &value
   133  	return b
   134  }
   135  
   136  // WithDefault sets the Default field in the declarative configuration to the given value
   137  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   138  // If called multiple times, the Default field is set to the value of the last call.
   139  func (b *JSONSchemaPropsApplyConfiguration) WithDefault(value v1beta1.JSON) *JSONSchemaPropsApplyConfiguration {
   140  	b.Default = &value
   141  	return b
   142  }
   143  
   144  // WithMaximum sets the Maximum field in the declarative configuration to the given value
   145  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   146  // If called multiple times, the Maximum field is set to the value of the last call.
   147  func (b *JSONSchemaPropsApplyConfiguration) WithMaximum(value float64) *JSONSchemaPropsApplyConfiguration {
   148  	b.Maximum = &value
   149  	return b
   150  }
   151  
   152  // WithExclusiveMaximum sets the ExclusiveMaximum field in the declarative configuration to the given value
   153  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   154  // If called multiple times, the ExclusiveMaximum field is set to the value of the last call.
   155  func (b *JSONSchemaPropsApplyConfiguration) WithExclusiveMaximum(value bool) *JSONSchemaPropsApplyConfiguration {
   156  	b.ExclusiveMaximum = &value
   157  	return b
   158  }
   159  
   160  // WithMinimum sets the Minimum field in the declarative configuration to the given value
   161  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   162  // If called multiple times, the Minimum field is set to the value of the last call.
   163  func (b *JSONSchemaPropsApplyConfiguration) WithMinimum(value float64) *JSONSchemaPropsApplyConfiguration {
   164  	b.Minimum = &value
   165  	return b
   166  }
   167  
   168  // WithExclusiveMinimum sets the ExclusiveMinimum field in the declarative configuration to the given value
   169  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   170  // If called multiple times, the ExclusiveMinimum field is set to the value of the last call.
   171  func (b *JSONSchemaPropsApplyConfiguration) WithExclusiveMinimum(value bool) *JSONSchemaPropsApplyConfiguration {
   172  	b.ExclusiveMinimum = &value
   173  	return b
   174  }
   175  
   176  // WithMaxLength sets the MaxLength field in the declarative configuration to the given value
   177  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   178  // If called multiple times, the MaxLength field is set to the value of the last call.
   179  func (b *JSONSchemaPropsApplyConfiguration) WithMaxLength(value int64) *JSONSchemaPropsApplyConfiguration {
   180  	b.MaxLength = &value
   181  	return b
   182  }
   183  
   184  // WithMinLength sets the MinLength field in the declarative configuration to the given value
   185  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   186  // If called multiple times, the MinLength field is set to the value of the last call.
   187  func (b *JSONSchemaPropsApplyConfiguration) WithMinLength(value int64) *JSONSchemaPropsApplyConfiguration {
   188  	b.MinLength = &value
   189  	return b
   190  }
   191  
   192  // WithPattern sets the Pattern field in the declarative configuration to the given value
   193  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   194  // If called multiple times, the Pattern field is set to the value of the last call.
   195  func (b *JSONSchemaPropsApplyConfiguration) WithPattern(value string) *JSONSchemaPropsApplyConfiguration {
   196  	b.Pattern = &value
   197  	return b
   198  }
   199  
   200  // WithMaxItems sets the MaxItems field in the declarative configuration to the given value
   201  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   202  // If called multiple times, the MaxItems field is set to the value of the last call.
   203  func (b *JSONSchemaPropsApplyConfiguration) WithMaxItems(value int64) *JSONSchemaPropsApplyConfiguration {
   204  	b.MaxItems = &value
   205  	return b
   206  }
   207  
   208  // WithMinItems sets the MinItems field in the declarative configuration to the given value
   209  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   210  // If called multiple times, the MinItems field is set to the value of the last call.
   211  func (b *JSONSchemaPropsApplyConfiguration) WithMinItems(value int64) *JSONSchemaPropsApplyConfiguration {
   212  	b.MinItems = &value
   213  	return b
   214  }
   215  
   216  // WithUniqueItems sets the UniqueItems field in the declarative configuration to the given value
   217  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   218  // If called multiple times, the UniqueItems field is set to the value of the last call.
   219  func (b *JSONSchemaPropsApplyConfiguration) WithUniqueItems(value bool) *JSONSchemaPropsApplyConfiguration {
   220  	b.UniqueItems = &value
   221  	return b
   222  }
   223  
   224  // WithMultipleOf sets the MultipleOf field in the declarative configuration to the given value
   225  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   226  // If called multiple times, the MultipleOf field is set to the value of the last call.
   227  func (b *JSONSchemaPropsApplyConfiguration) WithMultipleOf(value float64) *JSONSchemaPropsApplyConfiguration {
   228  	b.MultipleOf = &value
   229  	return b
   230  }
   231  
   232  // WithEnum adds the given value to the Enum field in the declarative configuration
   233  // and returns the receiver, so that objects can be build by chaining "With" function invocations.
   234  // If called multiple times, values provided by each call will be appended to the Enum field.
   235  func (b *JSONSchemaPropsApplyConfiguration) WithEnum(values ...v1beta1.JSON) *JSONSchemaPropsApplyConfiguration {
   236  	for i := range values {
   237  		b.Enum = append(b.Enum, values[i])
   238  	}
   239  	return b
   240  }
   241  
   242  // WithMaxProperties sets the MaxProperties field in the declarative configuration to the given value
   243  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   244  // If called multiple times, the MaxProperties field is set to the value of the last call.
   245  func (b *JSONSchemaPropsApplyConfiguration) WithMaxProperties(value int64) *JSONSchemaPropsApplyConfiguration {
   246  	b.MaxProperties = &value
   247  	return b
   248  }
   249  
   250  // WithMinProperties sets the MinProperties field in the declarative configuration to the given value
   251  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   252  // If called multiple times, the MinProperties field is set to the value of the last call.
   253  func (b *JSONSchemaPropsApplyConfiguration) WithMinProperties(value int64) *JSONSchemaPropsApplyConfiguration {
   254  	b.MinProperties = &value
   255  	return b
   256  }
   257  
   258  // WithRequired adds the given value to the Required field in the declarative configuration
   259  // and returns the receiver, so that objects can be build by chaining "With" function invocations.
   260  // If called multiple times, values provided by each call will be appended to the Required field.
   261  func (b *JSONSchemaPropsApplyConfiguration) WithRequired(values ...string) *JSONSchemaPropsApplyConfiguration {
   262  	for i := range values {
   263  		b.Required = append(b.Required, values[i])
   264  	}
   265  	return b
   266  }
   267  
   268  // WithItems sets the Items field in the declarative configuration to the given value
   269  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   270  // If called multiple times, the Items field is set to the value of the last call.
   271  func (b *JSONSchemaPropsApplyConfiguration) WithItems(value v1beta1.JSONSchemaPropsOrArray) *JSONSchemaPropsApplyConfiguration {
   272  	b.Items = &value
   273  	return b
   274  }
   275  
   276  // WithAllOf adds the given value to the AllOf field in the declarative configuration
   277  // and returns the receiver, so that objects can be build by chaining "With" function invocations.
   278  // If called multiple times, values provided by each call will be appended to the AllOf field.
   279  func (b *JSONSchemaPropsApplyConfiguration) WithAllOf(values ...*JSONSchemaPropsApplyConfiguration) *JSONSchemaPropsApplyConfiguration {
   280  	for i := range values {
   281  		if values[i] == nil {
   282  			panic("nil value passed to WithAllOf")
   283  		}
   284  		b.AllOf = append(b.AllOf, *values[i])
   285  	}
   286  	return b
   287  }
   288  
   289  // WithOneOf adds the given value to the OneOf field in the declarative configuration
   290  // and returns the receiver, so that objects can be build by chaining "With" function invocations.
   291  // If called multiple times, values provided by each call will be appended to the OneOf field.
   292  func (b *JSONSchemaPropsApplyConfiguration) WithOneOf(values ...*JSONSchemaPropsApplyConfiguration) *JSONSchemaPropsApplyConfiguration {
   293  	for i := range values {
   294  		if values[i] == nil {
   295  			panic("nil value passed to WithOneOf")
   296  		}
   297  		b.OneOf = append(b.OneOf, *values[i])
   298  	}
   299  	return b
   300  }
   301  
   302  // WithAnyOf adds the given value to the AnyOf field in the declarative configuration
   303  // and returns the receiver, so that objects can be build by chaining "With" function invocations.
   304  // If called multiple times, values provided by each call will be appended to the AnyOf field.
   305  func (b *JSONSchemaPropsApplyConfiguration) WithAnyOf(values ...*JSONSchemaPropsApplyConfiguration) *JSONSchemaPropsApplyConfiguration {
   306  	for i := range values {
   307  		if values[i] == nil {
   308  			panic("nil value passed to WithAnyOf")
   309  		}
   310  		b.AnyOf = append(b.AnyOf, *values[i])
   311  	}
   312  	return b
   313  }
   314  
   315  // WithNot sets the Not field in the declarative configuration to the given value
   316  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   317  // If called multiple times, the Not field is set to the value of the last call.
   318  func (b *JSONSchemaPropsApplyConfiguration) WithNot(value *JSONSchemaPropsApplyConfiguration) *JSONSchemaPropsApplyConfiguration {
   319  	b.Not = value
   320  	return b
   321  }
   322  
   323  // WithProperties puts the entries into the Properties field in the declarative configuration
   324  // and returns the receiver, so that objects can be build by chaining "With" function invocations.
   325  // If called multiple times, the entries provided by each call will be put on the Properties field,
   326  // overwriting an existing map entries in Properties field with the same key.
   327  func (b *JSONSchemaPropsApplyConfiguration) WithProperties(entries map[string]JSONSchemaPropsApplyConfiguration) *JSONSchemaPropsApplyConfiguration {
   328  	if b.Properties == nil && len(entries) > 0 {
   329  		b.Properties = make(map[string]JSONSchemaPropsApplyConfiguration, len(entries))
   330  	}
   331  	for k, v := range entries {
   332  		b.Properties[k] = v
   333  	}
   334  	return b
   335  }
   336  
   337  // WithAdditionalProperties sets the AdditionalProperties field in the declarative configuration to the given value
   338  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   339  // If called multiple times, the AdditionalProperties field is set to the value of the last call.
   340  func (b *JSONSchemaPropsApplyConfiguration) WithAdditionalProperties(value v1beta1.JSONSchemaPropsOrBool) *JSONSchemaPropsApplyConfiguration {
   341  	b.AdditionalProperties = &value
   342  	return b
   343  }
   344  
   345  // WithPatternProperties puts the entries into the PatternProperties field in the declarative configuration
   346  // and returns the receiver, so that objects can be build by chaining "With" function invocations.
   347  // If called multiple times, the entries provided by each call will be put on the PatternProperties field,
   348  // overwriting an existing map entries in PatternProperties field with the same key.
   349  func (b *JSONSchemaPropsApplyConfiguration) WithPatternProperties(entries map[string]JSONSchemaPropsApplyConfiguration) *JSONSchemaPropsApplyConfiguration {
   350  	if b.PatternProperties == nil && len(entries) > 0 {
   351  		b.PatternProperties = make(map[string]JSONSchemaPropsApplyConfiguration, len(entries))
   352  	}
   353  	for k, v := range entries {
   354  		b.PatternProperties[k] = v
   355  	}
   356  	return b
   357  }
   358  
   359  // WithDependencies sets the Dependencies field in the declarative configuration to the given value
   360  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   361  // If called multiple times, the Dependencies field is set to the value of the last call.
   362  func (b *JSONSchemaPropsApplyConfiguration) WithDependencies(value v1beta1.JSONSchemaDependencies) *JSONSchemaPropsApplyConfiguration {
   363  	b.Dependencies = &value
   364  	return b
   365  }
   366  
   367  // WithAdditionalItems sets the AdditionalItems field in the declarative configuration to the given value
   368  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   369  // If called multiple times, the AdditionalItems field is set to the value of the last call.
   370  func (b *JSONSchemaPropsApplyConfiguration) WithAdditionalItems(value v1beta1.JSONSchemaPropsOrBool) *JSONSchemaPropsApplyConfiguration {
   371  	b.AdditionalItems = &value
   372  	return b
   373  }
   374  
   375  // WithDefinitions sets the Definitions field in the declarative configuration to the given value
   376  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   377  // If called multiple times, the Definitions field is set to the value of the last call.
   378  func (b *JSONSchemaPropsApplyConfiguration) WithDefinitions(value v1beta1.JSONSchemaDefinitions) *JSONSchemaPropsApplyConfiguration {
   379  	b.Definitions = &value
   380  	return b
   381  }
   382  
   383  // WithExternalDocs sets the ExternalDocs field in the declarative configuration to the given value
   384  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   385  // If called multiple times, the ExternalDocs field is set to the value of the last call.
   386  func (b *JSONSchemaPropsApplyConfiguration) WithExternalDocs(value *ExternalDocumentationApplyConfiguration) *JSONSchemaPropsApplyConfiguration {
   387  	b.ExternalDocs = value
   388  	return b
   389  }
   390  
   391  // WithExample sets the Example field in the declarative configuration to the given value
   392  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   393  // If called multiple times, the Example field is set to the value of the last call.
   394  func (b *JSONSchemaPropsApplyConfiguration) WithExample(value v1beta1.JSON) *JSONSchemaPropsApplyConfiguration {
   395  	b.Example = &value
   396  	return b
   397  }
   398  
   399  // WithNullable sets the Nullable field in the declarative configuration to the given value
   400  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   401  // If called multiple times, the Nullable field is set to the value of the last call.
   402  func (b *JSONSchemaPropsApplyConfiguration) WithNullable(value bool) *JSONSchemaPropsApplyConfiguration {
   403  	b.Nullable = &value
   404  	return b
   405  }
   406  
   407  // WithXPreserveUnknownFields sets the XPreserveUnknownFields field in the declarative configuration to the given value
   408  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   409  // If called multiple times, the XPreserveUnknownFields field is set to the value of the last call.
   410  func (b *JSONSchemaPropsApplyConfiguration) WithXPreserveUnknownFields(value bool) *JSONSchemaPropsApplyConfiguration {
   411  	b.XPreserveUnknownFields = &value
   412  	return b
   413  }
   414  
   415  // WithXEmbeddedResource sets the XEmbeddedResource field in the declarative configuration to the given value
   416  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   417  // If called multiple times, the XEmbeddedResource field is set to the value of the last call.
   418  func (b *JSONSchemaPropsApplyConfiguration) WithXEmbeddedResource(value bool) *JSONSchemaPropsApplyConfiguration {
   419  	b.XEmbeddedResource = &value
   420  	return b
   421  }
   422  
   423  // WithXIntOrString sets the XIntOrString field in the declarative configuration to the given value
   424  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   425  // If called multiple times, the XIntOrString field is set to the value of the last call.
   426  func (b *JSONSchemaPropsApplyConfiguration) WithXIntOrString(value bool) *JSONSchemaPropsApplyConfiguration {
   427  	b.XIntOrString = &value
   428  	return b
   429  }
   430  
   431  // WithXListMapKeys adds the given value to the XListMapKeys field in the declarative configuration
   432  // and returns the receiver, so that objects can be build by chaining "With" function invocations.
   433  // If called multiple times, values provided by each call will be appended to the XListMapKeys field.
   434  func (b *JSONSchemaPropsApplyConfiguration) WithXListMapKeys(values ...string) *JSONSchemaPropsApplyConfiguration {
   435  	for i := range values {
   436  		b.XListMapKeys = append(b.XListMapKeys, values[i])
   437  	}
   438  	return b
   439  }
   440  
   441  // WithXListType sets the XListType field in the declarative configuration to the given value
   442  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   443  // If called multiple times, the XListType field is set to the value of the last call.
   444  func (b *JSONSchemaPropsApplyConfiguration) WithXListType(value string) *JSONSchemaPropsApplyConfiguration {
   445  	b.XListType = &value
   446  	return b
   447  }
   448  
   449  // WithXMapType sets the XMapType field in the declarative configuration to the given value
   450  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   451  // If called multiple times, the XMapType field is set to the value of the last call.
   452  func (b *JSONSchemaPropsApplyConfiguration) WithXMapType(value string) *JSONSchemaPropsApplyConfiguration {
   453  	b.XMapType = &value
   454  	return b
   455  }
   456  
   457  // WithXValidations sets the XValidations field in the declarative configuration to the given value
   458  // and returns the receiver, so that objects can be built by chaining "With" function invocations.
   459  // If called multiple times, the XValidations field is set to the value of the last call.
   460  func (b *JSONSchemaPropsApplyConfiguration) WithXValidations(value v1beta1.ValidationRules) *JSONSchemaPropsApplyConfiguration {
   461  	b.XValidations = &value
   462  	return b
   463  }
   464  

View as plain text