// Code generated by applyconfiguration-gen. DO NOT EDIT.

package v1

import (
	machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
	corev1 "k8s.io/api/core/v1"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

// KubeletConfigConditionApplyConfiguration represents a declarative configuration of the KubeletConfigCondition type for use
// with apply.
//
// KubeletConfigCondition defines the state of the KubeletConfig
type KubeletConfigConditionApplyConfiguration struct {
	// type specifies the state of the operator's reconciliation functionality.
	Type *machineconfigurationv1.KubeletConfigStatusConditionType `json:"type,omitempty"`
	// status of the condition, one of True, False, Unknown.
	Status *corev1.ConditionStatus `json:"status,omitempty"`
	// lastTransitionTime is the time of the last update to the current status object.
	LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
	// reason is the reason for the condition's last transition.  Reasons are PascalCase
	Reason *string `json:"reason,omitempty"`
	// message provides additional information about the current condition.
	// This is only to be consumed by humans.
	Message *string `json:"message,omitempty"`
}

// KubeletConfigConditionApplyConfiguration constructs a declarative configuration of the KubeletConfigCondition type for use with
// apply.
func KubeletConfigCondition() *KubeletConfigConditionApplyConfiguration {
	return &KubeletConfigConditionApplyConfiguration{}
}

// WithType sets the Type field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Type field is set to the value of the last call.
func (b *KubeletConfigConditionApplyConfiguration) WithType(value machineconfigurationv1.KubeletConfigStatusConditionType) *KubeletConfigConditionApplyConfiguration {
	b.Type = &value
	return b
}

// WithStatus sets the Status field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Status field is set to the value of the last call.
func (b *KubeletConfigConditionApplyConfiguration) WithStatus(value corev1.ConditionStatus) *KubeletConfigConditionApplyConfiguration {
	b.Status = &value
	return b
}

// WithLastTransitionTime sets the LastTransitionTime field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the LastTransitionTime field is set to the value of the last call.
func (b *KubeletConfigConditionApplyConfiguration) WithLastTransitionTime(value metav1.Time) *KubeletConfigConditionApplyConfiguration {
	b.LastTransitionTime = &value
	return b
}

// WithReason sets the Reason field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Reason field is set to the value of the last call.
func (b *KubeletConfigConditionApplyConfiguration) WithReason(value string) *KubeletConfigConditionApplyConfiguration {
	b.Reason = &value
	return b
}

// WithMessage sets the Message field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Message field is set to the value of the last call.
func (b *KubeletConfigConditionApplyConfiguration) WithMessage(value string) *KubeletConfigConditionApplyConfiguration {
	b.Message = &value
	return b
}
