// 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"
)

// MachineConfigPoolConditionApplyConfiguration represents a declarative configuration of the MachineConfigPoolCondition type for use
// with apply.
//
// MachineConfigPoolCondition contains condition information for an MachineConfigPool.
type MachineConfigPoolConditionApplyConfiguration struct {
	// type of the condition, currently ('Done', 'Updating', 'Failed').
	Type *machineconfigurationv1.MachineConfigPoolConditionType `json:"type,omitempty"`
	// status of the condition, one of ('True', 'False', 'Unknown').
	Status *corev1.ConditionStatus `json:"status,omitempty"`
	// lastTransitionTime is the timestamp corresponding to the last status
	// change of this condition.
	LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
	// reason is a brief machine readable explanation for the condition's last
	// transition.
	Reason *string `json:"reason,omitempty"`
	// message is a human readable description of the details of the last
	// transition, complementing reason.
	Message *string `json:"message,omitempty"`
}

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

// 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 *MachineConfigPoolConditionApplyConfiguration) WithType(value machineconfigurationv1.MachineConfigPoolConditionType) *MachineConfigPoolConditionApplyConfiguration {
	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 *MachineConfigPoolConditionApplyConfiguration) WithStatus(value corev1.ConditionStatus) *MachineConfigPoolConditionApplyConfiguration {
	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 *MachineConfigPoolConditionApplyConfiguration) WithLastTransitionTime(value metav1.Time) *MachineConfigPoolConditionApplyConfiguration {
	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 *MachineConfigPoolConditionApplyConfiguration) WithReason(value string) *MachineConfigPoolConditionApplyConfiguration {
	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 *MachineConfigPoolConditionApplyConfiguration) WithMessage(value string) *MachineConfigPoolConditionApplyConfiguration {
	b.Message = &value
	return b
}
