flowschemacondition.go 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 v1alpha1
  15. import (
  16. v1alpha1 "k8s.io/api/flowcontrol/v1alpha1"
  17. v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  18. )
  19. // FlowSchemaConditionApplyConfiguration represents an declarative configuration of the FlowSchemaCondition type for use
  20. // with apply.
  21. type FlowSchemaConditionApplyConfiguration struct {
  22. Type *v1alpha1.FlowSchemaConditionType `json:"type,omitempty"`
  23. Status *v1alpha1.ConditionStatus `json:"status,omitempty"`
  24. LastTransitionTime *v1.Time `json:"lastTransitionTime,omitempty"`
  25. Reason *string `json:"reason,omitempty"`
  26. Message *string `json:"message,omitempty"`
  27. }
  28. // FlowSchemaConditionApplyConfiguration constructs an declarative configuration of the FlowSchemaCondition type for use with
  29. // apply.
  30. func FlowSchemaCondition() *FlowSchemaConditionApplyConfiguration {
  31. return &FlowSchemaConditionApplyConfiguration{}
  32. }
  33. // WithType sets the Type field in the declarative configuration to the given value
  34. // and returns the receiver, so that objects can be built by chaining "With" function invocations.
  35. // If called multiple times, the Type field is set to the value of the last call.
  36. func (b *FlowSchemaConditionApplyConfiguration) WithType(value v1alpha1.FlowSchemaConditionType) *FlowSchemaConditionApplyConfiguration {
  37. b.Type = &value
  38. return b
  39. }
  40. // WithStatus sets the Status field in the declarative configuration to the given value
  41. // and returns the receiver, so that objects can be built by chaining "With" function invocations.
  42. // If called multiple times, the Status field is set to the value of the last call.
  43. func (b *FlowSchemaConditionApplyConfiguration) WithStatus(value v1alpha1.ConditionStatus) *FlowSchemaConditionApplyConfiguration {
  44. b.Status = &value
  45. return b
  46. }
  47. // WithLastTransitionTime sets the LastTransitionTime field in the declarative configuration to the given value
  48. // and returns the receiver, so that objects can be built by chaining "With" function invocations.
  49. // If called multiple times, the LastTransitionTime field is set to the value of the last call.
  50. func (b *FlowSchemaConditionApplyConfiguration) WithLastTransitionTime(value v1.Time) *FlowSchemaConditionApplyConfiguration {
  51. b.LastTransitionTime = &value
  52. return b
  53. }
  54. // WithReason sets the Reason 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 Reason field is set to the value of the last call.
  57. func (b *FlowSchemaConditionApplyConfiguration) WithReason(value string) *FlowSchemaConditionApplyConfiguration {
  58. b.Reason = &value
  59. return b
  60. }
  61. // WithMessage sets the Message field in the declarative configuration to the given value
  62. // and returns the receiver, so that objects can be built by chaining "With" function invocations.
  63. // If called multiple times, the Message field is set to the value of the last call.
  64. func (b *FlowSchemaConditionApplyConfiguration) WithMessage(value string) *FlowSchemaConditionApplyConfiguration {
  65. b.Message = &value
  66. return b
  67. }