prioritylevelconfigurationstatus.go 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 v1beta2
  15. // PriorityLevelConfigurationStatusApplyConfiguration represents a declarative configuration of the PriorityLevelConfigurationStatus type for use
  16. // with apply.
  17. //
  18. // PriorityLevelConfigurationStatus represents the current state of a "request-priority".
  19. type PriorityLevelConfigurationStatusApplyConfiguration struct {
  20. // `conditions` is the current state of "request-priority".
  21. Conditions []PriorityLevelConfigurationConditionApplyConfiguration `json:"conditions,omitempty"`
  22. }
  23. // PriorityLevelConfigurationStatusApplyConfiguration constructs a declarative configuration of the PriorityLevelConfigurationStatus type for use with
  24. // apply.
  25. func PriorityLevelConfigurationStatus() *PriorityLevelConfigurationStatusApplyConfiguration {
  26. return &PriorityLevelConfigurationStatusApplyConfiguration{}
  27. }
  28. // WithConditions adds the given value to the Conditions field in the declarative configuration
  29. // and returns the receiver, so that objects can be build by chaining "With" function invocations.
  30. // If called multiple times, values provided by each call will be appended to the Conditions field.
  31. func (b *PriorityLevelConfigurationStatusApplyConfiguration) WithConditions(values ...*PriorityLevelConfigurationConditionApplyConfiguration) *PriorityLevelConfigurationStatusApplyConfiguration {
  32. for i := range values {
  33. if values[i] == nil {
  34. panic("nil value passed to WithConditions")
  35. }
  36. b.Conditions = append(b.Conditions, *values[i])
  37. }
  38. return b
  39. }