ingressclassparametersreference.go 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. Copyright The Kubernetes Authors.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. // Code generated by applyconfiguration-gen. DO NOT EDIT.
  14. package v1beta1
  15. // IngressClassParametersReferenceApplyConfiguration represents an declarative configuration of the IngressClassParametersReference type for use
  16. // with apply.
  17. type IngressClassParametersReferenceApplyConfiguration struct {
  18. APIGroup *string `json:"apiGroup,omitempty"`
  19. Kind *string `json:"kind,omitempty"`
  20. Name *string `json:"name,omitempty"`
  21. Scope *string `json:"scope,omitempty"`
  22. Namespace *string `json:"namespace,omitempty"`
  23. }
  24. // IngressClassParametersReferenceApplyConfiguration constructs an declarative configuration of the IngressClassParametersReference type for use with
  25. // apply.
  26. func IngressClassParametersReference() *IngressClassParametersReferenceApplyConfiguration {
  27. return &IngressClassParametersReferenceApplyConfiguration{}
  28. }
  29. // WithAPIGroup sets the APIGroup field in the declarative configuration to the given value
  30. // and returns the receiver, so that objects can be built by chaining "With" function invocations.
  31. // If called multiple times, the APIGroup field is set to the value of the last call.
  32. func (b *IngressClassParametersReferenceApplyConfiguration) WithAPIGroup(value string) *IngressClassParametersReferenceApplyConfiguration {
  33. b.APIGroup = &value
  34. return b
  35. }
  36. // WithKind sets the Kind field in the declarative configuration to the given value
  37. // and returns the receiver, so that objects can be built by chaining "With" function invocations.
  38. // If called multiple times, the Kind field is set to the value of the last call.
  39. func (b *IngressClassParametersReferenceApplyConfiguration) WithKind(value string) *IngressClassParametersReferenceApplyConfiguration {
  40. b.Kind = &value
  41. return b
  42. }
  43. // WithName sets the Name 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 Name field is set to the value of the last call.
  46. func (b *IngressClassParametersReferenceApplyConfiguration) WithName(value string) *IngressClassParametersReferenceApplyConfiguration {
  47. b.Name = &value
  48. return b
  49. }
  50. // WithScope sets the Scope field in the declarative configuration to the given value
  51. // and returns the receiver, so that objects can be built by chaining "With" function invocations.
  52. // If called multiple times, the Scope field is set to the value of the last call.
  53. func (b *IngressClassParametersReferenceApplyConfiguration) WithScope(value string) *IngressClassParametersReferenceApplyConfiguration {
  54. b.Scope = &value
  55. return b
  56. }
  57. // WithNamespace sets the Namespace field in the declarative configuration to the given value
  58. // and returns the receiver, so that objects can be built by chaining "With" function invocations.
  59. // If called multiple times, the Namespace field is set to the value of the last call.
  60. func (b *IngressClassParametersReferenceApplyConfiguration) WithNamespace(value string) *IngressClassParametersReferenceApplyConfiguration {
  61. b.Namespace = &value
  62. return b
  63. }